flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.0 out now! Get yours from http://caml.inria.fr/ocaml/release.html
clog has joined #ocaml
<Associat0r> yes I did
<Associat0r> I was just wondering why the use of ref when it is clear that something will stay local without realising ocaml works differently
<Associat0r> thanks for you help anyway
thrasibule has joined #ocaml
Associ8or has joined #ocaml
seafood has quit []
sgnb``` has quit [Read error: 54 (Connection reset by peer)]
sgnb``` has joined #ocaml
Associat0r has quit [Connection timed out]
palomer has quit ["Leaving"]
thrasibule has quit ["No Ping reply in 90 seconds."]
thrasibule has joined #ocaml
<Alpounet> gn
Alpounet has quit ["Quitte"]
seafood has joined #ocaml
verte has joined #ocaml
AxleLonghorn has left #ocaml []
thrasibule_ has joined #ocaml
thrasibule has quit [Read error: 104 (Connection reset by peer)]
thrasibule_ has quit [Read error: 110 (Connection timed out)]
Associ8or has quit []
jamescarr has quit [Read error: 60 (Operation timed out)]
BiDOrD has quit [Read error: 60 (Operation timed out)]
seafood_ has joined #ocaml
seafood has quit [Read error: 110 (Connection timed out)]
jamii has quit [Read error: 60 (Operation timed out)]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
CoryDambach has quit ["Leaving"]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
Snark has joined #ocaml
schme has joined #ocaml
monadic_kid has joined #ocaml
jeanbon has joined #ocaml
_zack has joined #ocaml
sgnb``` has quit [Remote closed the connection]
sgnb``` has joined #ocaml
Jedai has quit [Read error: 110 (Connection timed out)]
Ched has quit [Read error: 110 (Connection timed out)]
Ched has joined #ocaml
Camarade_Tux has quit ["Leaving"]
Elrood has joined #ocaml
Camarade_Tux has joined #ocaml
Alpounet has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
Yoric[DT] has joined #ocaml
komar_ has joined #ocaml
komar_ has quit [Remote closed the connection]
ulfdoz has joined #ocaml
monadic_kid has quit ["Leaving"]
<Yoric[DT]> hi
mouratov has joined #ocaml
dartelin has joined #ocaml
<dartelin> hello
<dartelin> can anyone tell me what's wrong with this module http://pastebin.com/d60352d31 ?
<dartelin> i got syntax error on line #module
mouratov has left #ocaml []
<Yoric[DT]> dartelin: try adding ;; before
Elrood has quit ["When two people dream the same dream, it ceases to be an illusion. KVIrc 3.4.2 Shiny http://www.kvirc.net"]
<dartelin> you mean ;;#module ?
hto has joined #ocaml
<dartelin> Yoric[DT], the error is on the first line
<dartelin> the first #module
<Yoric[DT]> Oh, my bad.
<dartelin> i'm using xemacs
<Yoric[DT]> Are you attempting to compile it or to interpret it?
<dartelin> compile
<Yoric[DT]> Then remove #
<Yoric[DT]> I thought it was copied and pasted from the interpreter.
<dartelin> i wrote it myself
<dartelin> i mean i had it in pdf
<Yoric[DT]> Well, dont write # .
<Yoric[DT]> It's not part of the language, it's the prompt.
<Yoric[DT]> (just as $ under Linux or > under Windows)
<dartelin> ok, i misunderstood what was written in the pdf...
<dartelin> thank you
<Yoric[DT]> np
seafood_ has quit []
Ched has quit [Remote closed the connection]
hkBst has joined #ocaml
Associat0r has joined #ocaml
Tux_ has joined #ocaml
BiDOrD has joined #ocaml
det- has joined #ocaml
ofaurax has joined #ocaml
Camarade_Tux has quit [Read error: 110 (Connection timed out)]
verte has quit ["~~~ Crash in JIT!"]
monadic_kid has joined #ocaml
Ched has joined #ocaml
dartelin has quit []
Ched has quit [Client Quit]
Ched has joined #ocaml
itewsh has joined #ocaml
Jedai has joined #ocaml
itewsh has quit [Read error: 60 (Operation timed out)]
itewsh has joined #ocaml
Skolem has quit ["http://www.mibbit.com ajax IRC Client"]
palomer has joined #ocaml
<palomer> if a value is forced, and then forced again, the second time takes O(1) time, right?
<Alpounet> a lazy one ?
<Alpounet> I guess.
* palomer tests it out
<palomer> hrmph
<palomer> this is hard to test out
<palomer> it would seem that this is the case
* palomer goes to take a shower
<monadic_kid> that only makes sense if the value is memoized
monadic_kid is now known as snk_kid
<Alpounet> palomer, well, once forced, a lazy value effectively does the computation that will result in some value. Further calls to Lazy.force will just return the previously computed value, without computing it again.
<snk_kid> ala memoization :D
<Alpounet> yeah.
AxleLonghorn has joined #ocaml
snk_kid is now known as monadic_kid
Pepe_ has quit [Read error: 113 (No route to host)]
slash_ has joined #ocaml
Pepe_ has joined #ocaml
Elrood has joined #ocaml
itewsh has quit [Read error: 60 (Operation timed out)]
itewsh has joined #ocaml
BiDOrD has quit []
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
jamii has joined #ocaml
thrasibule has joined #ocaml
Ched has quit ["Ex-Chat"]
Ched has joined #ocaml
Tux_ has quit ["Quitte"]
<Alpounet> what's best for parsing XML in OCaml ?
Camarade_Tux has joined #ocaml
<thelema> depends
* mrvn thinks the best is not to.
<thelema> mrvn: the only practical alternative to parsing that I know is regular expressions, and using them on xml shows... fail.
<mrvn> don't use xml. :)
AxleLonghorn has quit [Remote closed the connection]
jeddhaberstro has joined #ocaml
<Alpounet> mrvn, for parsing Atom XML I don't have an alternative ... heh
<mrvn> condolences
<Alpounet> But that's for a good thing
<Alpounet> :)
_zack has quit [Read error: 113 (No route to host)]
_zack has joined #ocaml
Elrood has quit ["When two people dream the same dream, it ceases to be an illusion. KVIrc 3.4.2 Shiny http://www.kvirc.net"]
kaustuv_ has left #ocaml []
jeanb-- has joined #ocaml
jeanb-- has left #ocaml []
jeanbon has quit [Nick collision from services.]
<hcarty> Alpounet: For the very limited XML handling I've had to do in OCaml, I've been reasonably happy with PXP.
<hcarty> I'm working with very simple files though, and for what I'm doing regexps would work almost as well, with a little preprocessing
<Alpounet> Ok
<Alpounet> Thanks !
* Camarade_Tux should check xmlm besides pxp :)
<Camarade_Tux> (I need to check the doc each time I use pxp)
Camarade_Tux has quit ["Leaving"]
itewsh has quit [Read error: 110 (Connection timed out)]
itewsh has joined #ocaml
<hcarty> I don't think I tried xmlm... I tried xml-light and then PXP. PXP did what I wanted in just a couple lines of code - but as I said, my needs were quite simple
itewsh has quit ["There are only 10 kinds of people: those who understand binary and those who don't"]
<Alpounet> mine is to get only some informations from an Atom XML file
<hcarty> Alpounet: Mine was similar. I have XML files with some basic information on other (binary) data files. I extract a few pieces of information (times and dates) from each.
<hcarty> s/was/is/ I suppose, since I'm still using the code
<hcarty> Alpounet: http://ocaml.pastebin.com/d3d109bde -- this the short, and probably horribly inefficient and dirty, way I use PXP for some simple data extraction
<hcarty> That is pulled out of a function with "file" being the filename of the XML file to process. It somewhat obviously uses pa_openin.
<Alpounet> Fine, thanks hcarty !
Snark has quit ["Ex-Chat"]
<Alpounet> xmlm seems to be fine too
<Alpounet> hcarty, the ML is up and waiting for messages: )
kaustuv has quit ["ERC Version 5.3 (IRC client for Emacs)"]
<hcarty> Alpounet: Thanks for getting it setup :-)
<hcarty> It will still likely be a little while before I can spend much time on it. And I have not heard back yet from the Cairo OCaml dev
schme has quit ["leaving"]
<Alpounet> hcarty, you should rather thank gildor who spent some hours on this mailman problem.
<Alpounet> hcarty, can you fwd me the email you sent ?
<Alpounet> as a template for future emails, maybe.
<hcarty> Alpounet: I'm not sure if it would serve as a good template. I don't mention New Hope because I sent it before the project idea was set in stone.
<hcarty> If they reply I will send a follow-up mentioning the project though
<Alpounet> ok :)
<hcarty> In the email I asked if they are still interested in maintaining the Cairo bindings. I said that if not, another OCaml user and I are interested in continuing their development.
<hcarty> If so, then I asked for the best way to submit patches
<Alpounet> ok
ttamttam has joined #ocaml
<hcarty> If there is an author you would like to contact then I'd be happy to work with you on a "standard" email template for New Hope use
<hcarty> Though I'm not sure if that is needed, since I imagine (and hope) the New Hope will be more a loose collection of developers than a strictly run project
<Alpounet> yeah
<Alpounet> here, it was rather for me only, if I find a project to take care of.
gl has quit ["leaving"]
_zack has quit ["Leaving."]
sgnb``` is now known as sgnb
Alpounet has quit ["Quitte"]
Alpounet has joined #ocaml
Alpounet has quit ["Quitte"]
ttamttam has left #ocaml []
_zack has joined #ocaml
Ariens_Hyperion has joined #ocaml
monadic_kid has quit ["Leaving"]
monadic_kid has joined #ocaml
hkBst has quit [Read error: 104 (Connection reset by peer)]
Ched has quit [Read error: 110 (Connection timed out)]
Ched has joined #ocaml
_zack has quit ["Leaving."]
Camarade_Tux has joined #ocaml
det has quit ["Leaving"]
Jedai has quit [Read error: 113 (No route to host)]
slash_ has quit [Client Quit]
ofaurax has quit ["Leaving"]
monadic_kid has quit ["Leaving"]
Ariens_Hyperion has left #ocaml []
ulfdoz has quit [Read error: 60 (Operation timed out)]
Camarade_Tux has quit ["Leaving"]
monadic_kid has joined #ocaml
<mbishop> So Yoric[DT] will be able to work on Batteries more now? :o
<thelema> mbishop: one would think.
<thelema> but he's still finishing up research contracts
<Yoric[DT]> For the moment, I'm full-time on helping my wife finish her PhD :)
<thelema> It's good to go through batteries writing example usages, as I get ideas of enhancements
<Yoric[DT]> Good idea.
<Yoric[DT]> Time to go help my wife, though.
<thelema> time to go to aikido for me. cheers
hogehoge has joined #ocaml
hogehoge has quit [Client Quit]
mzp has joined #ocaml
seafood has joined #ocaml
mzp has quit [Remote closed the connection]