<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