dylan changed the topic of #ocaml to: OCaml 3.09.1 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
twobitsprite has left #ocaml []
pango__ has joined #ocaml
pango_ has quit [Read error: 110 (Connection timed out)]
dylan has joined #ocaml
<dylan> I really, really hate hardware.
Anarchos has joined #ocaml
<Anarchos> i am happy to announce that ocaml 3.09.1 successfully bootstrapped on beos :)
Anarchos has left #ocaml []
Anarchos has joined #ocaml
<Anarchos> re
<Anarchos> dylan i have good news for you :)
mikeX has quit [""zzz""]
slipstream-- has quit [Read error: 104 (Connection reset by peer)]
slipstream has joined #ocaml
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
Smerdyakov has quit ["Leaving"]
bohanlon has quit ["It is sleepy time for my computer."]
slipstream-- has joined #ocaml
bohanlon has joined #ocaml
slipstream has quit [Connection timed out]
temporaire has joined #ocaml
pango__ has quit [Read error: 104 (Connection reset by peer)]
pango has joined #ocaml
temporaire_ has joined #ocaml
vodka-goo has joined #ocaml
temporaire has quit [Read error: 110 (Connection timed out)]
ppsmimou has joined #ocaml
temporaire_ has quit ["Parti"]
Revision17 has quit [Read error: 110 (Connection timed out)]
m3ga has joined #ocaml
knobo has quit [Read error: 110 (Connection timed out)]
knobo has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
Tachyon76 has joined #ocaml
quamaretto has quit ["Leaving"]
mikeX has joined #ocaml
bzzbzz has quit ["leaving"]
gim_ has joined #ocaml
pango is now known as pangoafk
Tachyon76 has quit ["Leaving"]
bohanlon has quit ["Farewell, mortals."]
bohanlon has joined #ocaml
univac is now known as univac_
ski has quit [Connection timed out]
ski has joined #ocaml
basti_ has joined #ocaml
piggy_ has joined #ocaml
bohanlon has quit [Remote closed the connection]
zxsykco has joined #ocaml
Revision17 has joined #ocaml
juri has quit [Remote closed the connection]
zxsykco has left #ocaml []
rossberg has joined #ocaml
bohanlon has joined #ocaml
bohanlon has quit ["It is sleepy time for my computer."]
Smerdyakov has joined #ocaml
bohanlon has joined #ocaml
Smerdyakov has quit [Client Quit]
Smerdyakov has joined #ocaml
gim_ has quit ["aplula"]
jo_l_apache has joined #ocaml
bohanlon has quit ["It is sleepy time for my computer."]
Smerdyakov has quit ["rebooting"]
bohanlon has joined #ocaml
Smerdyakov has joined #ocaml
Smerdyakov has quit ["Leaving"]
jo_l_apache has quit [".ei mi cliva .i co'o"]
Snark has joined #ocaml
univac_ is now known as univac
bohanlon has quit ["It is sleepy time for my computer."]
__DL__ has joined #ocaml
piggy_ has left #ocaml []
sieni has quit [Read error: 110 (Connection timed out)]
Bigb[a]ng is now known as Bigbang
pangoafk has quit ["Leaving"]
pango has joined #ocaml
__DL__ has quit [Read error: 110 (Connection timed out)]
__DL__ has joined #ocaml
bohanlon has joined #ocaml
piggy_ has joined #ocaml
jo_l_apache has joined #ocaml
pnou has joined #ocaml
kral has joined #ocaml
* basti_ did an CG solver in ocaml :D
univac is now known as univac_
univac_ is now known as univac
piggy_ has quit [Connection timed out]
temporaire has joined #ocaml
_JusSx_ has joined #ocaml
sieni has joined #ocaml
Anarchos has joined #ocaml
jo_l_apache has quit [".ei mi cliva .i co'o"]
telemakh0s has left #ocaml []
smimou has joined #ocaml
<Anarchos> i am happy to announce that ocaml 3.09.1 bootstrapped on BeOS :)
sieni has quit [Read error: 110 (Connection timed out)]
* basti_ congratulates
<basti_> After some getting used to (like a few hours), ocaml loses the visual "ugh" factor.
<mikeX> haha
<basti_> honestly! ;)
<temporaire> hum
<temporaire> i never noticed it
<basti_> it was the first thing i noticed on first contact with ocaml, like 2-3 years ago or something
<temporaire> hum
<basti_> i was like "f---, that is the ugliest code in the world"...
<mikeX> lol
<temporaire> 2-3 years, a few hours ?
<mikeX> have you seen perl?
<basti_> but i think, thats purely a matter of taste
<basti_> temporaire: I know haskell and lisp
temporaire is now known as bluestorm
<basti_> I'm just working at my first serious ocaml program
<basti_> mikeX: well yes, okay, there's always some worse, you're right.
<mikeX> haha
<basti_> i don't think ugly is the right word anyway... it seems more like... inconvenient... lots of visual noise
<Anarchos> I don't remember how i can submit this port to the caml team :(
<mikeX> i find it too dense
<mikeX> (ocaml that is)
<basti_> lol
<basti_> I'm spacing it already
<basti_> i don't think its hard to read or anything
<basti_> just, lots of noise... and this doesnt mean at all that i don't like it ^^
<mikeX> indeed, I think python has the cleanest syntax out of all the languages I'm familiar with
<bluestorm> hum
<bluestorm> have you ever tried the "bloc is indentation" extension of ocaml ?
<mikeX> bluestorm: I take it you disagree?
sieni has joined #ocaml
<mikeX> is there such thing?
<bluestorm> i look a little more like python, this way
<bluestorm> yes
<mikeX> interesting
<bluestorm> 3osc
<basti_> bluestorm: no, but i think that could help a lot
<Anarchos> ok i did ./configure CXX=g++ and now make is working
_JusSx_ has quit ["leaving"]
bluestorm has quit ["Parti"]
bluestorm has joined #ocaml
<bluestorm> hum
<bluestorm> sorry
<Anarchos> bluestorm de rien :)
<bluestorm> tssk
<bluestorm> So
<bluestorm> what do you think about this unusual indentation way ?
__DL__ has quit [Remote closed the connection]
<mikeX> looks nice bluestorm
<basti_> unusual? thats normal for some folks ^^
<pango> the examples aren't too convincing
<pango> and knowing when you hit some restriction look difficult
<pango> I'll stick to standard syntax
<mikeX> haha, there's also an 'OCaml programmers against parentheses' club at the bottom of the page :)
<basti_> >_<
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
Anarchos has joined #ocaml
Bigbang is now known as Bigb[a]ng
bluestorm has quit ["Parti"]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
* dylan wonders why Anarchos had good news for him
Snark has quit ["Leaving"]
bronaugh has joined #ocaml
sieni_ has joined #ocaml
<bronaugh> hmm.. trying to understand ocamlyacc/ocamllex
<bronaugh> I want to store what I parse in a list. how is this achievable?
<dylan> Easily so...
<bronaugh> ok, how?
<bronaugh> I'm new to lex/yacc as well as ocaml, so this is particularly "fun" for me.
<dylan> I'd take a look at ocaml's lex and yacc files, they're good reading.
<dylan> But, failing that, you'd have something like this:
<bronaugh> I've read the manual on "lexers and parsers"
<dylan> hmm, no, that'd be spammy.
<dylan> bronaugh: Okay, are you familiar with lists in ocaml? (or lisp/scheme/...)
<bronaugh> yeah, I know about lists. the problem I'm having is figuring out a) how you'd get access to a list you want to store stuff in, and b) how you'd deal with the fact that it is immutable.
sieni has quit [Read error: 110 (Connection timed out)]
<dylan> a) Your parser returns list expresesions, b) see a.
<bronaugh> lol
<dylan> I can link you to an example
<bronaugh> ok, so I can just have expressions returning lists.
<dylan> if you like
<bronaugh> yeah, that'd be good.
<bronaugh> want to make sure I understand this.
<dylan> the last three definitions.
<dylan> the simplest being "idents"
<dylan> The first case, the case of the empty list, returns an empty list.
<bronaugh> right, ok.
<dylan> the second case tries to parse an item followed by a list, which can be empty or itself. :)
Skal has joined #ocaml
<dylan> the third case is not actually needed, I think, but I was stupid when I wrote that code.
<bronaugh> lol
<bronaugh> ok.
<dylan> wait, the third case is needed, n/m.
<bronaugh> the 1st case seems kind of funny.
<bronaugh> what's it matching?
<dylan> nothing. :)
<bronaugh> so... is it necessary?
<dylan> it matches absolutely nothing.
<dylan> yes
<bronaugh> ok, why?
<dylan> It is needed for empty lists.
<bronaugh> ok what are the blocks followed by semicolons called?
<bronaugh> eg args: <whatever>;
<dylan> I dunno. I think they're called rules.
<bronaugh> ok, why have multiple rules?
<dylan> I knew the name when I learned how to use yacc, but I forgot.
<bronaugh> I'm sorry if I'm asking really dumb q's here; just trying to get an idea of what's going on.
<dylan> well, two reasons: one reason is the same reason you have multiple functions -- it makes it more readable.
<dylan> the other reason is multiple rules are needed for recursion like idents:
<bronaugh> ok.
<dylan> I recommend reading the bison info page, as it's fairly useful to understand parsing in general.
<bronaugh> yeah, I just opened that up.
<dylan> for understanding parsing in general, I mean.
<bronaugh> I read lex pag.
<bronaugh> doesn't seem like there's much -to- lex.
<dylan> hmm?
<bronaugh> lex seems simple.
<dylan> Lex is very simple, actually, Just matching regexps on a stream.
sieni_ is now known as sieni
<bronaugh> yeah.
<bronaugh> ok, that's confirming what I know.
<dylan> here's a moderately complicated ocamllex file: http://svn.hardison.net/bake/trunk/src/lexer.mll
<bronaugh> hum.. ok.
<dylan> XD
<dylan> it's pretty evil, really.
<bronaugh> hehe
<bronaugh> so the ^ operator is to stick a char onto a string?
<bronaugh> or.. ? slightly confused on that. "and sstring accu = parse"
<dylan> that's for parsing strings
<dylan> like: "foo, $variable_interpolation and now a newline: \n"
kral has quit [""In girum imus nocte et consumimur igni.""]
piggy_ has joined #ocaml
<basti_> now i got this program, and it spends lots of time collecting garbage
<basti_> can I help it in some way?
<basti_> like, calling GC manually at some spots?
<bronaugh> dylan: so all the convultion in yourcode there is abotu handling escape sequences?
<basti_> ah found it
<dylan> bronaugh: yes
<bronaugh> dylan: ok, thank $deity I don't have to deal with that.
<dylan> You might want to if you want \" in your strings without resorting a regexp hack. ;)
<bronaugh> yeah, fortunately I don't have to deal with that :)
mrsolo has joined #ocaml
basti_ has quit ["night"]
piggy_ has quit [Connection timed out]
gim has quit []
smimou has quit ["bli"]