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