flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
<palomer> oh wait, it writes to stdout
<palomer> I have to create my own file_descr
<palomer> No implementations provided for the following modules:
<palomer> Unix referenced from test.cmx
<mfp> palomer: you probably want Unix.open_process_full : string -> string array -> in_channel * out_channel * in_channel
<palomer> whoa!
<palomer> what about open_process_in ?
<mfp> that only gives you the stdout
<palomer> that's all I need!
<mfp> OK then
<palomer> but, erm, Unix is not implemented in my system
<mfp> you have to link against unix.cmxa
<palomer> ahh, got it
<palomer> ocaml-libs wasn't installed
<palomer> silly me
<palomer> hrmph
<palomer> still no worky
<palomer> isn't everything linked against the standard library?
<palomer> by default?
<mbishop> unix is seperate
<mfp> <mfp> you have to link against unix.cmxa
<mbishop> as is Str
<mbishop> notice http://caml.inria.fr/pub/docs/manual-ocaml/manual034.html lists all the modules of Standard Library
<mbishop> but there are seperate links for Unix and Str
<mbishop> and num
<palomer> ahh, got it
<palomer> so -I unix.cmxa?
<hcarty> palomer: No -I, just unix.cma
<hcarty> Sorry, .cmxa
<Smerdyakov> palomer, just read the manual.
<Smerdyakov> palomer, over library included with OCaml has a manual section front page telling how to link it.
<Smerdyakov> s/over/every
<palomer> http://pastebin.eu/pastebin.php?show=8247 <--this is really weird
<palomer> figured out how to link, but ubuntu is giving me a ton of strange errors
<palomer> if I change test2.o to test.o, I get link errors
<palomer> ahh, programming error
<bluestorm> ocamlfind ocamlopt -package unix (-linkpkg) ...
jlouis has quit ["Leaving"]
landonf has quit []
jeddhaberstro has quit []
Proteus has quit [Read error: 104 (Connection reset by peer)]
<palomer> >:O!
<palomer> thx
Proteus has joined #ocaml
<palomer> btw, anyone know how to link an in_channel to a buffer so that everytime an in_channel gets updated it displays it in the buffer ?
<palomer> (buffer in the sense of lablgtk)
r0bby_ has joined #ocaml
Proteus has quit [Read error: 104 (Connection reset by peer)]
Proteus has joined #ocaml
<palomer> looks like I'm going to have to attach select to some lablgtk tomfoolery
<palomer> now...what's that idling signal called...
thelema has joined #ocaml
Proteus has quit [Read error: 104 (Connection reset by peer)]
Proteus has joined #ocaml
Proteus_ has joined #ocaml
Proteus has quit [Read error: 104 (Connection reset by peer)]
<palomer> how do I know if input_line removed a newline?
vixey has quit []
jeddhaberstro has joined #ocaml
jeddhaberstro has quit [Remote closed the connection]
vixey has joined #ocaml
vixey has quit [No route to host]
vixey has joined #ocaml
<palomer> man, all this unix stuff is giving me an error
<palomer> a headache
<palomer> http://pastebin.eu/pastebin.php?show=8261 <-- code that is supposed to run a program to completion and then return its output. if it ended with an error, return the error instead
<palomer> however, it is flawed, for if the process ended with an error and then shut down, the file descriptor is no longer valid and I can't read from it!
<palomer> right?
seafood has joined #ocaml
<palomer> hrmph
Associat0r has quit []
Associat0r has joined #ocaml
<palomer> how do I find out if my process has finished?
<palomer> using open_process_full
Associat0r has quit []
r0bby_ is now known as r0bby
r0bby has quit [Client Quit]
r0bby has joined #ocaml
<palomer> oh my my my
<palomer> http://pastebin.eu/pastebin.php?show=8281 <-- im running this with Unix.open_process_full and it can't find ld!
<palomer> open_process_full doesn't use my environment variables!
Philonous1 has joined #ocaml
bluestorm has quit [Remote closed the connection]
det has quit [Remote closed the connection]
det has joined #ocaml
Philonous has quit [Read error: 110 (Connection timed out)]
netx has joined #ocaml
Kopophex has quit ["Leaving"]
seafood has quit [Read error: 104 (Connection reset by peer)]
Proteus has joined #ocaml
seafood has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood has quit [Read error: 104 (Connection reset by peer)]
jeremiah has quit []
Proteus_ has quit [Read error: 113 (No route to host)]
seafood has joined #ocaml
<tsuyoshi> hrm.. can't you just fork and read the output?
<tsuyoshi> if the read fails because it died or whatever, just catch the exception and either give up or try again
haveo has quit [Remote closed the connection]
palomer has quit [Client Quit]
BipedMan_ has joined #ocaml
GustNG has joined #ocaml
Snark has joined #ocaml
seafood has quit []
gdmfsob has joined #ocaml
filp has joined #ocaml
hcarty has quit [clarke.freenode.net irc.freenode.net]
shortc|desk has quit [clarke.freenode.net irc.freenode.net]
RobertFischer has quit [clarke.freenode.net irc.freenode.net]
Amorphous has quit [clarke.freenode.net irc.freenode.net]
RobertFischer has joined #ocaml
Amorphous has joined #ocaml
shortc|desk has joined #ocaml
hcarty has joined #ocaml
gdmfsob is now known as mishok13
seafood has joined #ocaml
Amorphous has quit [No route to host]
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Client Quit]
Amorphous has joined #ocaml
shortc|desk has quit [SendQ exceeded]
seafood has joined #ocaml
guillem has joined #ocaml
vixey has quit []
vixey has joined #ocaml
Yoric[DT] has joined #ocaml
seafood_ has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
Watza has joined #ocaml
Watza has quit ["Quitte"]
Associat0r has joined #ocaml
bluestorm has joined #ocaml
seafood_ has quit []
aeolist has quit [Read error: 110 (Connection timed out)]
Jedai has joined #ocaml
m3ga has joined #ocaml
OChameau has joined #ocaml
<ertai> bluestorm: (about OcamlReloaded), the answer is basically no.
<vixey> is there some GUI program written in ocaml I can try out?
<bluestorm> ertai: because you're not interested anymore ?
<m3ga> vixey: mldonkey
<vixey> thank m3ga
<vixey> thank you
<bluestorm> (i thought of it because it could actually be a handy base syntax for the extension i'm writing)
<ertai> bluestorm: I'm still intersted to have a better syntax, than the current one
<bluestorm> i could see value in a syntax with more closing constructs than the classical one, and the revised curryfication goodies
<ertai> bluestorm: However I'm tired of these syntax discussions/religions, and I now use the orginal syntax (when I'm doing OCaml)
<bluestorm> Yoric[DT] w
<bluestorm> err, fail
<bluestorm> i think Yoric[DT] has been teaching the revised syntax to his students, and they were doing quite good
Philonous1 is now known as Philonous
<bluestorm> ah
<bluestorm> ertai: while you're there, i have another question
<vixey> are you changing ocaml?
<bluestorm> vixey: probably not
<bluestorm> are you (= the camlp4 code) open to extern submissions ?
<ertai> bluestorm: I don't want to spend to much time on camlp4 until now
<bluestorm> for example, i thought recently that a record type (instead of that ugly tuple) for external Loc.t access would be nice : it is imaginable that such a patch could make it into the main distribution ?
<ertai> bluestorm: however I'm open to bug fixes
<bluestorm> hm
<bluestorm> sounds bad :p
<ertai> bluestorm: The loc type is a record inside, but an abstract type hide it, the tuple is here for interfacing.
<bluestorm> we could still use a record for interfacing
<bluestorm> (yes, i just looked at the source, and the intern representation is actually even better than the plain record i was thinking of)
<bluestorm> it's as sensible to change as the tuple is, while much more syntaxically pleasant
<bluestorm> (are you still working on caml things at INRIA ?)
<Yoric[DT]> bluestorm: indeed.
<ertai> bluestorm: I'm still working at INRIA, on stuffs written in OCaml
<ertai> My work on Camlp4 (starting as an intership) and on ocamlbuild was a kind of "extra work" for "fun".
<ertai> I'm starting a PhD on september still at INRIA.
<bluestorm> (the way you say it, it seems it was not that fun)
<ertai> That's more fun at the beggining in fact
<ertai> Indeed I don't consider camlp4 nighmare bugs, and ocamlbuild on windows as fun stuffs
<bluestorm> hm
<bluestorm> and writing documentation :--'
<ertai> bluestorm: Indeed I forgot that one :)
Lalu has joined #ocaml
<ertai> bluestorm: What kind of camlp4 changes do you have in mind?
<Lalu> i tryed to compile some downloaded ocaml program, but getting this error by trying to run the make command: http://rafb.net/p/nHV6QU26.html Line 4 of screen.ml : let _ = GMain.init ()
<bluestorm> ertai: i was just thinking of that record thing
<bluestorm> and hm
<Lalu> can anyone give me some advice, or an hint if it's a missing library or something else?
<bluestorm> i'm considering writing a library for camlp4 extension writers, that would expose some of the most-used operations
<bluestorm> (but i guess that doesn't need to be included in the main distribution)
<bluestorm> in the spirit of the similar type-conv module, but more general
<bluestorm> i have the impression that extension writers tends to rewrite the same things a lot
thelema has quit [Read error: 110 (Connection timed out)]
<flux> lalu, ocamlfind list | grep labl, does it list some .gtkmain .gtkinit or similar module?
<Lalu> flux, no
vixey has quit []
<Lalu> now i installed a labl-gtk package and now there ist the output: lablgtk2 (version: 2.10.0)
<Lalu> wow, new error :)
asmanur has joined #ocaml
<flux> funny how it says nothing about missing packages
<flux> but I suppose installing lablgl will fix that
<Lalu> no, i've installed lablgl
<flux> sorry, but I'll be going now for a minute
<flux> perhaps someone else will be able to help :)
<flux> (for a while, actually, perhaps a few hours)
<flux> good luck..
<Lalu> okay, thx
seafood has joined #ocaml
jlouis has joined #ocaml
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
seafood has quit [Client Quit]
<ertai> bluestorm: type-conv, derving, OCamlTemplate... So much attempts...
m3ga has quit ["disappearing into the sunset"]
<bluestorm> ertai: not so much
<bluestorm> they're more like frameworks aimed at specific things
<ertai> bluestorm: a matter of point of view in fact
<bluestorm> (and there is patterns that i haven't looked at yet)
<bluestorm> and i consider type-conv as successful in what it does : i've written a few type-conv-extensions myself and found it valuable
<bluestorm> i was thinking of a "low-level" lib of AST manipulation functions
<flux> bluestorm, maybe a tree manipulation library with ast-support?
<flux> os something more specific..
<bluestorm> hm
<bluestorm> the idea was only to look at the different camlp4 extensions avaiable right now, see if they share some common auxiliary functions (modulo some changes maybe), and factor them out in a common library
<bluestorm> for example, both Jacques Carette's pa_monad define a patt_to_expr function
<bluestorm> this was caused by a real need, and is likely to be useful in other extensions
<ertai> bluestorm: that kind of auxillary function over camlp4 ast can be integrated
<bluestorm> (iirc. pa_bitmatch do something similar, but i'm not sure)
<ertai> bluestorm: There is perhaps one also in camlp4 itself
mikezackles has joined #ocaml
Philonous has quit [Read error: 113 (No route to host)]
Philonous has joined #ocaml
thelema has joined #ocaml
asmanur has quit [Remote closed the connection]
asmanur has joined #ocaml
marmotine has joined #ocaml
thelema has quit [Read error: 110 (Connection timed out)]
jeddhaberstro has joined #ocaml
bluestorm has quit [Remote closed the connection]
bluestorm has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
rwmjones_ has joined #ocaml
asmanur has quit [Remote closed the connection]
rwmjones has quit [Read error: 104 (Connection reset by peer)]
filp has quit ["Bye"]
pec1 has joined #ocaml
rwmjones_ has quit ["Closed connection"]
rwmjones has joined #ocaml
guillem has quit [Remote closed the connection]
itouch has joined #ocaml
itouch has quit ["le devoir m'appel ..."]
itouch has joined #ocaml
OChameau has quit ["Leaving"]
mishok13 has quit [Read error: 104 (Connection reset by peer)]
itouch has quit ["le devoir m'appel ..."]
Kopophex has joined #ocaml
asmanur has joined #ocaml
Jedai has quit ["KVIrc 3.2.4 Anomalies http://www.kvirc.net/"]
rwmjones has quit ["Closed connection"]
rwmjones has joined #ocaml
guillem has joined #ocaml
Linktim has joined #ocaml
Snark has quit [Read error: 60 (Operation timed out)]
BipedMan_ has left #ocaml []
filp has joined #ocaml
rstites has joined #ocaml
rwmjones has quit ["Closed connection"]
Linktim has quit [Read error: 110 (Connection timed out)]
redocdam has joined #ocaml
jeddhaberstro has quit []
landonf has joined #ocaml
GustNG has quit [Read error: 104 (Connection reset by peer)]
ygrek has joined #ocaml
asmanur has quit [Read error: 110 (Connection timed out)]
asmanur has joined #ocaml
asmanur has quit [Read error: 60 (Operation timed out)]
tomh- has joined #ocaml
smimou has joined #ocaml
filp has quit ["Bye"]
asmanur has joined #ocaml
itouch has joined #ocaml
rogo has joined #ocaml
ygrek has quit [Remote closed the connection]
Linktim has joined #ocaml
itouch has quit ["le devoir m'appel ..."]
landonf has quit []
Yoric[DT] has quit ["Ex-Chat"]
Linktim has quit [Read error: 110 (Connection timed out)]
guillem_ has joined #ocaml
jeddhaberstro has joined #ocaml
tomh- has quit ["http://www.mibbit.com ajax IRC Client"]
tomh- has joined #ocaml
guillem_ has quit [Read error: 54 (Connection reset by peer)]
asmanur has quit [Remote closed the connection]
guillem has quit [Read error: 110 (Connection timed out)]
jlouis has quit ["Leaving"]
pec1 has left #ocaml []
tomh- has quit ["http://www.mibbit.com ajax IRC Client"]
tomh- has joined #ocaml
gaja has quit ["leaving"]
tomh- has quit ["http://www.mibbit.com ajax IRC Client"]
seafood has joined #ocaml
Philonous has left #ocaml []
Kopophex has quit ["Leaving"]
ertai_ has joined #ocaml
marmotine has quit ["mv marmotine Laurie"]
ertai has quit [Connection timed out]
gim_ has joined #ocaml
gim has quit [Read error: 110 (Connection timed out)]