jemfinch` changed the topic of #ocaml to: nob: it's not an option keyword. It's a datatype. 'a option. It can be either "None" or "Some data" -- it represents either data that's not there (None) or data that's there (Some data)
JGibson__ has quit ["WHAT, CLOWN?!"]
<scott> does ocaml have exception handling?
<Verbed> I believe so
<Verbed> If you browse around caml.inria.fr, you'l find various links to tutorials and the OCaml Manual.
<gene9> raise MyException...
JGibson has joined #ocaml
malc has quit ["no reason"]
gene9 is now known as gene9_afk
gene9_afk is now known as gene9
gene9 is now known as gene9-vodka_daet_o_sebe_znat
gene9-vodka_daet_o_sebe_znat is now known as gene9
GnuVince has joined #ocaml
<JGibson> vince, how's the program going?
<GnuVince> What program?
GnuVince has left #ocaml []
gene9 has quit []
gene9 has joined #ocaml
gene9 has quit []
scott has left #ocaml []
scott has joined #ocaml
<scott> the ocaml docs are not very nice
<scott> they do not even give examples of usage
<Taaus> What are you having trouble with? :)
<scott> trying to make a socket
<scott> I want to use the high-level function open_connection but the docs only say what it accepts and there's no examples of it's usage on the caml list or c.l.ml
<Taaus> Hmm...
<Verbed> Sockets aren't part of a language.
<Verbed> They're OS specific.
<Verbed> So, look into the Unix module
<Verbed> ( Which is emulated on Win32 I believe )
<Verbed> Here, I have an URL to a great Unix socket tutorial as well..
<Verbed> There ya go.
<Verbed> Should be all you'l need.
<Verbed> I think the Unix library mirrors the C Socket interface pretty closely
<Verbed> ( same Args, etc )
<scott> neither of those talk about how to use open_connection, only the low level socket stuff
<Verbed> That's correct.
<Verbed> About time you learned 'em anyways :P
<Verbed> They may look a bit intimidating
<Verbed> But they're not that bad
<Verbed> I don't think O'Caml really has that user base geared towards ultra simple modules
<Verbed> ( Like Python and Perl )
<Verbed> So, uh, good luck :P
<Verbed> And you can always ask questions here :)
<scott> I hope that the other ocaml libraries are not just C written in ocaml
<scott> as much as I'd like to just use a high-level function, this tutorial is pretty dang cool, I'm learning what lots of things I've always heard actually mean
<Verbed> Well, the Unix library has to wrap around the C Unix calls :P
<Verbed> You need to get the low-level stuff somewhere :)
<scott> yes, but the unix library actually has an open_connection high level function, yet no real examples of how to use it
<Verbed> Oh, there is?
<Verbed> I didn't notice.
<Verbed> Just a second.
<scott> yeah
<Verbed> That's neat
<Taaus> Looks pretty simple to me... :)
<Verbed> I'd help you, but I don't know O'Caml :P
<JGibson> Taaus: quick, write a web server with it, i'll expect a working program 5 minutes from now
<Taaus> JGibson: I would... But it's 5:19 AM, and I'm kinda tired :)
<JGibson> ok ok, next time
<scott> Taaus, does open_connection (ADDR_INET (inet_addr_of_string "10.7.249.100",1000));; look right?
<Taaus> Dunno.
<Taaus> ;)
<JGibson> how about finding an app that uses sockets and use it for examples
<scott> they most likely use the lowlevel stuff, which I have plenty of examples for
<Taaus> I think that's the correct syntax....
<Verbed> Hmm..
<Verbed> Are you passing a tuple to inet_addr_of_string ?
<Verbed> Logically, it should only accept one argument
<Verbed> A string.
<Taaus> Verbed: No, if he were, it would need parentheses.
<Taaus> ADDR_INET is a tuple of inet_addr * int
<Verbed> Hmm..
<Taaus> inet_addr_of_string gobbles up the string, if I'm not mistaken :)
<Verbed> :)
<JGibson> you want examples of open_connection, right?
<scott> right
<JGibson> go to the hump and get ocamlnet, or i can dcc it to you
<JGibson> it's got one in it
<JGibson> in the examples/pop dir
<scott> already got it, but thanks :)
<JGibson> ya
<scott> darn auto accept :)
<JGibson> hehe
scott has quit ["thanks for the examples and networking tutorial, I'm reading them"]
scott has joined #ocaml
<Verbed> Welcome back
<scott> thanks
<scott> U.open_connection (U.ADDR_INET (U.inet_addr_of_string "10.7.249.100",1000));
<scott> something's wrong with that, it says it needs to be of type unit
JGibson_ has joined #ocaml
JGibson has quit [Read error: 110 (Connection timed out)]
__DL__ has joined #ocaml
two-face has joined #ocaml
<two-face> Hi there
<__DL__> hi
<two-face> smkl: ?
DL_home has joined #ocaml
<two-face> you are french DL_home :)
<two-face> I hope that the Ocaml community is more active than talkative :)
__DL__ has quit [Read error: 110 (Connection timed out)]
<DL_home> yes i'me
<DL_home> we work, so we can speak at the same time
<two-face> are you working on free projects ?
<DL_home> In fact, not realy at this time
<two-face> ah
<DL_home> I may enter the ocaml pakaging effort for debian, but i don't know when
<two-face> are you posting on debian ocaml list ?
<DL_home> yes
<DL_home> (I'm Rémi Vanicat)
<two-face> so i may know your name
<two-face> ah :)
<two-face> you're the aspell-fr upstream too
<DL_home> yes also. Aren't you french too ?
<two-face> yes i am
<two-face> /whois give details
<DL_home> on pouurais pe parler en français donc ? il n'y a pas l'air d'y avoir grand monde a part nous...
<two-face> oui
<two-face> c très peu actif ici
<DL_home> je sais, je viens de temps en temps.
<DL_home> En fait les mailling list sont plus active...
<two-face> ils doient tous être en train de hacker :)
<DL_home> on est dimanche, pe il sont ds la RL
<DL_home> (Real Life)
<two-face> oui :)
<two-face> icin il ne fait pas très beau dehors
<two-face> donc la real life c'est aussi à l'intérieur :)
<DL_home> je vois en effet un peu de nuage en me penchant a ma fenetre...
<DL_home> (mon appart est un peu... loin du ciel...)
<two-face> ah ?
<two-face> il est à la cave ?
<DL_home> non, au rc, sur court, et la court est petite, et les 5 etage des immeubles autour font de l'ombre...
<two-face> arf
<two-face> tu es copain avec bill allombert?
<DL_home> oui
<DL_home> (enfin, on travaille a 500 metre l'un de l'autre, et on s'est pas vue depuis 2 ans, dison qu'on ce connais...)
<two-face> je lui ai redonné aspell-fr un peu pour cette raison :
<two-face> :)
<DL_home> ben en fait, pour l'instant, j'attend de voir ce que fait kevin avant de toucher a aspell-fr...
<two-face> c bizarre, on dirait que la version de sf est modifiée
<DL_home> c'est exacte, mais en plus le main de aspell a quiter sf...
<two-face> aie
<two-face> c le genre de problème dont je peuxme passer
<DL_home> mais, c'est pas tres clair. J'attend donc des nouvelles...
<two-face> ok
<two-face> si tu comptes devenir devel debian, nous avons un channel francophone, #debian-devel-fr
<DL_home> je vais aller voir...
DL_home is now known as __DL__
<__DL__> pas tres actif pour l'instant...
<two-face> :)
malc has joined #ocaml
<two-face> hi malc
<malc> lo two-face
<two-face> malc: are you working on ocaml projects ?
<malc> two-face: well, have one idea in mind
<two-face> i think smkl is the most active person in the channel
<malc> in what sense?
<two-face> on projects in sourceforge
<malc> i completed thing or two in ocaml already, and just being lazy now
<two-face> ah
* __DL__ is away: things to do...
<two-face> BBL
two-face has quit ["Client Exiting"]
malc has quit ["no reason"]
pHa has quit [Read error: 104 (Connection reset by peer)]
pHa has joined #ocaml
Verbed has quit [Ping timeout: 14400 seconds]
awwaiid has joined #ocaml
Taaus has quit [Read error: 110 (Connection timed out)]
awwaiid has quit [Remote closed the connection]
Taaus has joined #ocaml
Verbed has joined #ocaml
smklsmkl has joined #ocaml
malc has joined #ocaml
JGibson_ has quit [Read error: 104 (Connection reset by peer)]
smklsmkl has quit ["bbl"]
JGibson has joined #ocaml