<libertaire>
gluck > oups je le connais pas celui la :)
<gluck>
sorry, i can speak english only
<libertaire>
i said : i did'nt know it this one :)
<gluck>
actually i'm about 2 days on this channel and u was ther first person who said something :)
<libertaire>
oh ok coool
<puffin>
there was actually quite a long conversation recently!
<libertaire>
what about ?
<gluck>
recently means in this millenium, i think :)
<puffin>
about O'Caml, I think :-)
* libertaire
is really impressed !
<libertaire>
so you are users of ocaml too :)
<thelema>
Would it be possible to submit code to replace the standard Arg package?
<thelema>
me and a friend found Arg wholly insufficient for our project and proceeded to rewrite something with a similar interface, but *much, much* more powerful.
<libertaire>
thelema >ask to the implementors :)
<thelema>
are they ever in this channel, or should they be emailed?
<malc>
thelema: there is getopt interface
<malc>
in CDK if my memory serves me
<malc>
libertaire: its 'zdravstwujte' btw
<thelema>
getopt is pretty poor as well.
<libertaire>
malc > oh ok sorry for my very poor first word in russian :)
<thelema>
our implementation auto-generates the --help screen from the Argument strudture
<thelema>
the big thing is the support for optional arguments.
<malc>
libertaire: you are forgiven
<libertaire>
malc > oh thanx my holy master :)
<malc>
libertaire: you are welcome >B)
<libertaire>
malc> i try to learn russian but it souonds difficult to pronounce !
<malc>
libertaire: souonds? (nitpicking off)
<puffin>
I'm very new to ocaml, but I think the implementors read the mailing list and don't hang out here. You should probably write to the list about your Arg package.
<libertaire>
malc>sounds
<malc>
libertaire: what do you need russian for?
<libertaire>
malc > personal interest ;)
<malc>
libertaire: weird one if i might say so
<libertaire>
malc > but could be easier to make some contacts with russian trade unions and resistance groups !
<malc>
libertaire: i guess for a good while you will have more chances being understood using english than russian anyway, but sigh
<libertaire>
malc > yes but the pope speaks , hmmmmm, a lot aof languages ;)
<malc>
libertaire: i doubt that he really "speaks" all of them, besides he is weird polak
<libertaire>
lol
<Yurik>
hi all
<libertaire>
Yurik>hi
* Yurik
reads all the above chat
<thelema>
has anyone here packaged a module for distribution? arg2 is pretty simple, just one .ml and one .mli; is a simple .tar.gz the best way to distribute it? what about findlib?
<libertaire>
i think i must reboot under beos to terminate my port of ocaml :)
libertaire has quit ["rebooting"]
<malc>
thelema: look at the way people distribute their stuff on hump
<thelema>
malc: thanks. I have the feeling I'm going to be announcing a couple things oh the hump shortly
<malc>
thelema: good luck with it
Dieb has quit [Read error: 110 (Connection timed out)]
tmcm has joined #ocaml
Dieb has joined #ocaml
asdf1234 has joined #ocaml
asdf1234 has left #ocaml []
tav`` has quit [Read error: 104 (Connection reset by peer)]
malc has quit []
tmcm has quit ["using sirc version 2.211+ssfe"]
tav`` has joined #ocaml
scipient has quit [carter.openprojects.net irc.openprojects.net]
scipient has joined #ocaml
vect has joined #ocaml
kruskal has joined #ocaml
scipient has quit [carter.openprojects.net irc.openprojects.net]
scipient has joined #ocaml
vect is now known as gl
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
* gl
is away: Occupé
Yurik has quit ["restart X"]
kruskal has quit ["Client Exiting"]
gl has quit [Read error: 104 (Connection reset by peer)]
gl has joined #ocaml
Yurik has joined #ocaml
ni has joined #ocaml
<timmy>
I'm getting an error when i try to read from a socket (i guess before anything is sent):
<timmy>
exception Unix.Unix_error(3, "read", "")
<timmy>
does that not block read by default?
malc has joined #ocaml
<puffin>
do you know what Unix error that corresponds to?
graydon has quit []
<puffin>
I have a somewhat philosophical O'Caml question, which seems as though it ought to be a FAQ though I can't find it there.
<puffin>
Has any consideration been given to reinstating SML-style overloading for arithmetic operators?
<malc>
puffin: lookup gcaml
* puffin
looks
<timmy>
puffin: no idea
<puffin>
oh, that does a lot more! user-defined overloading. shame it looks so unfinished. Do you know if Jun Furuse is still working on it?
<malc>
afaik he does
<malc>
though i really dislike the way overloading works in GCaml
<malc>
(syntactically)
<puffin>
malc: you could always change it using camlp4 :-)
<malc>
puffin: not in this case im affraid
<malc>
besides i do not use camlp4
<timmy>
exception Unix.Unix_error(3, "recv", "")
<timmy>
so i can't get recv to work either on this socket?
<puffin>
timmy: do you know whether "3" is the unix errno?
<timmy>
oh yeah now i know how to figure out what that means, lemme catch it
<puffin>
timmy: if it is, you could do perl -le 'print $!=3'
<puffin>
to see what it means
<malc>
EBADF
<timmy>
Bad file descriptor: recv()
<timmy>
yeah
<timmy>
hmm
<malc>
timmy: 4th variant in error union unix.mli
<timmy>
i'm not sure why that happens
<malc>
timmy: thats fairly common
<timmy>
i think it is because i try to read before i'm sent any data
<timmy>
could that be the case?
<malc>
i meant its fairly common that you are not sure why something happens, in this particular case i havent got a clue whats wrong
<timmy>
oh heh
<puffin>
I'm fairly confident that trying to read before any data is sent would not result in an EBADF
<malc>
ERRORS
<malc>
EBADF The argument s is an invalid descriptor.
<malc>
so uh
<timmy>
ok hmm
ott has joined #ocaml
<ott>
re all
* puffin
is away: home
yamamoto has joined #ocaml
<malc>
hm
<timmy>
ok i think i might have it
<timmy>
i have a class that has a fd in it with all the function calls i like
<timmy>
i have a tail recursive main loop function that will pass this stream-reading-writing class back to itself to loop, maybe the fd is still holding an older state or something..hmm
<malc>
timmy: lift it out of the loop (if its mutable that is)
<timmy>
i think the class works until i pass it to a function
<timmy>
ok it works now
<timmy>
i try printf from a thread but i don't think it goes to stdio?
<malc>
timmy: its buffered before stdio
<timmy>
well i have an exception raised in a thread
<timmy>
Connection.Eof -> Printf.printf "Eof from client\n";exit 1
<timmy>
does print it
<timmy>
but without the ;exit 1, it does not print
<malc>
Format.printf "...@."
<malc>
or use flush stdout after printf
<timmy>
ok thanks
ott has left #ocaml []
yamamoto has quit ["leaving"]
steele_ has joined #ocaml
steele_ is now known as steele
<engstad>
malc: Was that three dots, @, and a dot?
<malc>
engstad: pretty printer format string - print newline and flush if my memory serves me