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/
<fluxx> I imagine that might very well work :)
<fluxx> hmm, unless there were some things to keep in mind when allocating strings..
<fluxx> like the string length needs to be stored
Snark has joined #ocaml
pango is now known as pangoafk
mrsolo__ has joined #ocaml
mrsolo_ has quit [Read error: 113 (No route to host)]
pangoafk is now known as pango
Snark has quit ["Leaving"]
Bigb[a]ng has quit [Read error: 110 (Connection timed out)]
Revision17 has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
Bigb[a]ng has joined #ocaml
<ulfdoz> Nonetheless, after some thoughts about this night, I don't think that this trivial 1:1 translation of the C-interface to ocaml will work. Main problem is, that I don't see, how to ensure physical equality of values in Ocaml <=> physical equality in C. I think I should redesign the interaface to some use case oriented wrapper with much less interaction between both worlds.
mikeX has joined #ocaml
Skal has quit [Remote closed the connection]
bluestorm has joined #ocaml
mikeX has quit ["leaving"]
bluestorm is now known as bluestorm-eat
pango is now known as pangoafk
pangoafk is now known as pango
ski_ has quit [Read error: 110 (Connection timed out)]
slipstream has joined #ocaml
Submarine has quit ["Leaving"]
bluestorm-eat is now known as bluestorm
slipstream-- has quit [Read error: 110 (Connection timed out)]
pango is now known as pangoafk
pangoafk is now known as pango
dark_light has joined #ocaml
dylan_ has joined #ocaml
dylan_ is now known as dylan
dylan has quit ["If only Norinel was not forced to leave!"]
mikeX has joined #ocaml
dylan has joined #ocaml
Smerdyakov has joined #ocaml
<dylan> Smerdyakov: Prepare the ritual pants. I challenge you to a duel; for I allege you put a curse on my hardware.
<dylan> I mean, hi.
<Smerdyakov> You'll never know peace until you learn to see the ritual in all pants.
rillig has joined #ocaml
Amorphous has quit ["arg... must... shutdown... computer burnin..."]
Anarchos has joined #ocaml
Demitar has quit ["Ex-Chat"]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
Amorphous has joined #ocaml
mikeX_ has joined #ocaml
mikeX has quit [Read error: 104 (Connection reset by peer)]
Schmurtz has quit [Remote closed the connection]
Schmurtz has joined #ocaml
dark_light has quit [Read error: 113 (No route to host)]
mikeX_ has quit ["leaving"]
Demitar has joined #ocaml
dark_light has joined #ocaml
dark_light has quit ["Fui embora"]
dark_light has joined #ocaml
Schmurtz has quit [Read error: 113 (No route to host)]
dark_light has quit [Client Quit]
dark_light has joined #ocaml
dvekravy has quit ["leaving"]
pango is now known as pangoafk
dvekravy has joined #ocaml
dvekravy has quit ["bordel.."]
mrsolo has joined #ocaml
dvekravy has joined #ocaml
pangoafk is now known as pango
mikeX has joined #ocaml
glorb has joined #ocaml
<glorb> hi all, could somebody help me with a little ocamlyacc problem (i
<glorb> i just started experimenting with ocamlyacc by following the tutorial by SooHyoung Oh
<glorb> it all works fine except i can't figure out how to make the parser terminate/return
<glorb> when reading from stdin
<zmdkrbou> ^D
<zmdkrbou> (this is no smiley)
<zmdkrbou> ocamllexrecognizes 'eof'
<zmdkrbou> +" "
<glorb> yes but how do i get an eof on stdin?
<glorb> ok, but then what code should be executed when eof is encountered?
<zmdkrbou> you get an eof from stdin when you type ctrl-d
<glorb> yes, now i remember:)
<glorb> but what should the corresponding code in the token rule be to make the parser terminate?
<zmdkrbou> you just send a Parser.EOF or whatever to the parser
<zmdkrbou> which then returns the computed value
<glorb> ok it works, thanks zmdkrbou!
cookoo has quit [Connection timed out]
Revision17 has joined #ocaml
Snark has quit ["Leaving"]
descender has joined #ocaml
<ulfdoz> If we consider the type "a option" with "None" and Some of a" as constructors, "None" would be represented as usual integer with value 0 and "Some of a" as block of size 1, tag 0, and data part in field 0. Either I misunderstood something, or I don't know how to distinguish between both?
<fluxx> hmh. simply try feeding None or Some of 0 to your C-code and figure out?
<fluxx> option-type might be expressed efficiently
<fluxx> hm, infact doesn't the documentation describe how sum types in general are stored
<fluxx> it should cover that too
<ulfdoz> I'm currently working on a little test-program. But I doesn't link yet, for what reason ever.
<ulfdoz> Ah, -fPIC fehlte
<ulfdoz> ECHAN, sorry
Skal has joined #ocaml
gim has joined #ocaml
<ulfdoz> Hm, accessing tag of None value segfaults, tag of Some works, accessing field 0 of some segfaults, b returns null. :\
<ulfdoz> Works now, but still no usable difference. :\
<ulfdoz> I think Is_long/Is_block are my friends.
Bigb[a]ng is now known as Bigbang
mrsolo has quit [Read error: 104 (Connection reset by peer)]
mikeX has quit ["zzz"]
Anarchos has joined #ocaml
Skal has quit [Remote closed the connection]
rillig has quit ["exit(EXIT_SUCCESS)"]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
Bigbang is now known as Bigb[a]ng
dark_light has quit [Connection timed out]
gim has quit []
bluestorm has quit [Remote closed the connection]
ski has joined #ocaml
ski_ has joined #ocaml
ski has quit [Read error: 110 (Connection timed out)]
slipstream-- has joined #ocaml
Smerdyakov has quit ["Leaving"]
slipstream has quit [Connection timed out]
perspectivet has joined #ocaml