authentic has quit [Read error: 60 (Operation timed out)]
authentic has joined #ocaml
Cromulent has joined #ocaml
orbitz has joined #ocaml
_andre has quit ["Zz"]
jeddhaberstro has quit []
julm has quit [Read error: 60 (Operation timed out)]
julm has joined #ocaml
caligula__ has joined #ocaml
caligula_ has quit [Read error: 110 (Connection timed out)]
<nanothief>
with the ocaml debugger, can you print expression like (3 + 4) instead of just variables with the print command?
stevan has joined #ocaml
animist has joined #ocaml
stevan has left #ocaml []
animist has quit [Read error: 60 (Operation timed out)]
BiDOrD has joined #ocaml
julm_ has joined #ocaml
ulfdoz has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
ulfdoz has quit [Remote closed the connection]
ulfdoz has joined #ocaml
pwned_ has left #ocaml []
julm_ is now known as julm
Cromulent has quit []
Anarchos has joined #ocaml
<Anarchos>
would be fun if ocamlyacc could detect the ocaml keywords instead of creating type variable of form 'keyword which generate a compile error on the generated .ml file
Beelsebob has quit ["Leaving."]
Beelsebob has joined #ocaml
ulfdoz has quit [Remote closed the connection]
ulfdoz has joined #ocaml
Anarchos has quit ["Vision[0.9.7-H-090423]: i've been blurred!"]
<yziquel>
lpd.a lpd.cma lpd.cmxa lpd.mli META socket.a socket.cma socket.cmxa socket.mli
<kaustuv>
ah, you're missing the .cmi files
<kaustuv>
copy *.cmi there and see if the matter improves
<kaustuv>
#load only looks at .cmi files. It doesn't freshly compile a .mli. (As far as I know)
<yziquel>
kaustuv: ok. that did it. another bug report for christophe.
jonafan_ has joined #ocaml
<yziquel>
but ocamlfind ocamlmktop -o toploop -custom -package unix,lpd,findlib -linkpkg still cannot build a custom toploop with Lpd module available in it...
<kaustuv>
You still need to do #directory after running the custom toplevel
<kaustuv>
Or run it with -I +lpd
<yziquel>
#directory works.
<yziquel>
But ./toploop -I +lpd doesn't.
<yziquel>
Wow, that is a limitation of findlib...
<kaustuv>
Huh, strange. -I works on the normal teoplevel for me.
<kaustuv>
Also I think it's a deficiency of the ocaml compiler that the .cmis are not included in the .cma. I've complained about this to the Gallium people, but not much luck.
<kaustuv>
There is, admittedly, a nasty software engineering problem here
<yziquel>
kaustuv: could you have two distinct cmis for the same cma?
<yziquel>
kaustuv: because if this is people, then the Gallium people would be right.
<yziquel>
if this is the case...
<kaustuv>
You can, but this is not the problem. The problem is if you have the same module name occurring in two different directories. It's not clear which .cmi belongs to which .cmo then.
<yziquel>
kaustuv: be careful... they could add some MD5 hashes there...
<kaustuv>
Well, when I say "you can", I'm lying slightly. The .cmi stores a md5 hash of the .ml *and* the .mli, I believe, so you would get an error when trying to load a .cmo compiled against a different .mli
<yziquel>
ok. they did...
<kaustuv>
yeah, the problem is that the .cmis are loaded by name instead of by hash or name+hash
jonafan has quit [Read error: 110 (Connection timed out)]
ulfdoz has quit [Remote closed the connection]
ulfdoz has joined #ocaml
<yziquel>
kaustuv: how would you use the -I thingy, precisely?
<kaustuv>
Ah, you need to give the -I to ./toploop, not to ocamlfind
<yziquel>
ok. got it... but that's a shame. One alias more...
<kaustuv>
It's best to just make a .ocamlinit and put the #directory, #require and #load stuff there instead of making custom toplevels.
<yziquel>
ok. thanks a lot
Amorphous has quit [Read error: 104 (Connection reset by peer)]
orbitz_ has quit [Client Quit]
orbitz has joined #ocaml
Amorphous has joined #ocaml
Demitar has joined #ocaml
<yziquel>
when i input_char from a inet socket, it keeps waiting for a character. is there a module designed to handle this situation
<yziquel>
'
<yziquel>
'
<yziquel>
?
<kaustuv>
You mean a non blocking read?
<tsuyoshi>
you can set it to non-blocking
<tsuyoshi>
I've never actually done that but I guess it would raise an exception in that case
<kaustuv>
If you have the Unix.file_descr of the socket, you can use Unix.select to see if there's anything to read before calling input_char
<yziquel>
but is there somewhere a plug'n'pla module to deal with sockets, not worrying about these options and such?
<kaustuv>
Yes, ocamlnat
<kaustuv>
err, net
<tsuyoshi>
well, what do you want to happen when you call input_char?
yziquel has quit [Ping timeout: 180 seconds]
<kaustuv>
I hope he didn't crash his internet connection...
<flx_>
kaustuv, due to buffering, that's a way to agony
<flx_>
kaustuv, if it happens you leave stuff into the buffer and then go to select..
<flx_>
although perhaps it can be made to work with non-blocking sockets, I don't know how input_char behaves with them
Narrenschiff has joined #ocaml
yziquel has joined #ocaml
<yziquel>
i'm looking at ocamlnet, but i still can't figure out how to make soket connections.
stan_ has joined #ocaml
animist has joined #ocaml
animist has quit [Remote closed the connection]
duplo has joined #ocaml
julm has quit [Read error: 60 (Operation timed out)]
BiDOrD has quit [Read error: 110 (Connection timed out)]
BiDOrD has joined #ocaml
Cromulent has joined #ocaml
Cromulent has quit [Client Quit]
<yziquel>
nothing in batterie for sockets?
<yziquel>
batteries?
sramsay has joined #ocaml
sramsay has quit [Remote closed the connection]
sramsay has joined #ocaml
sramsay has quit [Read error: 104 (Connection reset by peer)]
yurug has joined #ocaml
|yurug| has joined #ocaml
|yurug| has quit [Client Quit]
slash_ has joined #ocaml
<det>
yziquel, ocamlnet is more about high level protocols IIRC
<det>
I've used it for the HTTP library
<yziquel>
det: yes. but i'm dealing with a high level protocol. my problem is mostly to have a reliable way to read from sockets. had a look at Uq_engines and Unixqueue, and they seem to have done the work i'm interested in.
<yziquel>
wondering if i should start the Unixqueue.event_system before or after the Uq_engine.connect_status Uq_engine.engine...
Ppjet6 has joined #ocaml
Ppjet6 is now known as Pepe_
hkBst has joined #ocaml
Narrenschiff has quit []
BiDOrD has quit [Remote closed the connection]
Pepe_ has quit [Read error: 60 (Operation timed out)]
Pepe_ has joined #ocaml
Pepe_ has quit [Read error: 148 (No route to host)]
Pepe_ has joined #ocaml
stan_ has quit [Client Quit]
yurug has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090115, built on: 2009/03/07 00:45:02 UTC http://www.kvirc.net/"]
Pepe_ has quit [Read error: 104 (Connection reset by peer)]
Pepe_ has joined #ocaml
hkBst has quit [Read error: 104 (Connection reset by peer)]
Pepe_ has quit [Read error: 131 (Connection reset by peer)]
Pepe_ has joined #ocaml
bjorkLinux has joined #ocaml
Pepe__ has joined #ocaml
Pepe_ has quit [Read error: 110 (Connection timed out)]
kaustuv has quit [Read error: 104 (Connection reset by peer)]
Pepe__ has quit [Remote closed the connection]
soupdragon has joined #ocaml
<soupdragon>
hi ocaml
<soupdragon>
just wondering does anyone know the fix for "Error: Cannot find file gramlib.cmxa"?
<soupdragon>
I had sorted it ages ago but forgot how :/
slash_ has quit [Client Quit]
<soupdragon>
I got it but now I have other problems :p