ayrnieu changed the topic of #ocaml to: OCaml 3.08.4 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/
cmeme has quit ["Client terminated by server"]
cmeme has joined #ocaml
Revision17 has quit [Read error: 110 (Connection timed out)]
mlh__ has joined #ocaml
faigo has joined #ocaml
Revision17 has joined #ocaml
smimou has quit ["?"]
vincenz has quit [zelazny.freenode.net irc.freenode.net]
lispy has quit [zelazny.freenode.net irc.freenode.net]
Amorphous has quit [zelazny.freenode.net irc.freenode.net]
shrimpx has quit [zelazny.freenode.net irc.freenode.net]
det has quit [zelazny.freenode.net irc.freenode.net]
ax has quit [zelazny.freenode.net irc.freenode.net]
skylan has quit [zelazny.freenode.net irc.freenode.net]
Hipo has quit [zelazny.freenode.net irc.freenode.net]
vincenz has joined #ocaml
lispy has joined #ocaml
Amorphous has joined #ocaml
shrimpx has joined #ocaml
Hipo has joined #ocaml
ax has joined #ocaml
skylan has joined #ocaml
det has joined #ocaml
ax has quit [Read error: 104 (Connection reset by peer)]
ax has joined #ocaml
faigo has left #ocaml []
mpc has quit []
pango__ has joined #ocaml
bzzbzz has quit ["leaving"]
pango_ has quit [Read error: 60 (Operation timed out)]
threeve has quit []
vezenchio has quit [""The law, in its majestic equality, forbids the rich as well as the poor to sleep under bridges, to beg in the streets, and t]
__DL__ has joined #ocaml
Submarine has joined #ocaml
pango__ has quit [Remote closed the connection]
pango has joined #ocaml
malune has quit [Remote closed the connection]
mlh__ has quit [Client Quit]
smimou has joined #ocaml
revision17_ has joined #ocaml
Submarine_ has joined #ocaml
Revision17 has quit [Read error: 110 (Connection timed out)]
m3ga_ has joined #ocaml
m3ga_ is now known as m3ga
Gueben has joined #ocaml
Skal has joined #ocaml
Submarine_ has quit ["in Soviet Russia, Céline Dion owns you"]
Snark has joined #ocaml
Submarine_ has joined #ocaml
Submarine has quit [Nick collision from services.]
Submarine_ is now known as Submarine
Submarine_ has joined #ocaml
TeXitoi has joined #ocaml
gim has joined #ocaml
m3ga has quit ["disappearing into the sunset"]
Snark has quit ["Leaving"]
gim has quit []
Benooit has joined #ocaml
gim has joined #ocaml
Gueben has quit [Nick collision from services.]
Benooit is now known as Gueben
threeve has joined #ocaml
alek2 has joined #ocaml
alek2 has left #ocaml []
Smerdyakov has quit [Success]
Banana_ has quit [Remote closed the connection]
mattam has quit [Remote closed the connection]
Banana has joined #ocaml
Snark has joined #ocaml
vezenchio has joined #ocaml
zigong has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
Gueben has quit [Remote closed the connection]
Banana has quit [Remote closed the connection]
Gueben has joined #ocaml
Schmurtz has joined #ocaml
Banana has joined #ocaml
Submarine has quit [Remote closed the connection]
Submarine_ has quit ["Leaving"]
CosmicRay has joined #ocaml
Schmurtz has quit [Read error: 113 (No route to host)]
Submarine has joined #ocaml
twobitsprite has joined #ocaml
<twobitsprite> are there alternative OCaml compilers... perhaps ones that will optimize?
Snark has quit ["Leaving"]
<smimou> programs compiled with ocamlopt run quite fast
<pnou_> no, but ocamlopt do optimize
<smimou> else you can have a look at mlton
<twobitsprite> pnou_: I was told in here before that ocamlopt didn't optimize...
<pnou_> well, even here, people (other than me of course) can say wrong things :-)
<twobitsprite> pnou_: in fact the asm produced by "let x = 6*6*6*6*6" is fairly ugly, exp. when compared to what GCC outputs for the same code in C.
<twobitsprite> pnou_: lol :P
Schmurtz has joined #ocaml
<twobitsprite> s/exp/esp/
<pnou_> i guess the compiler is not as good as gcc, but as smimou said, programs compiled with ocamlopt run faster than programs compiled with lots of other compilers
<twobitsprite> pnou_: right on... at least I can sleep well knowing that OCaml _does_ at least optimize...
<smimou> twobitsprite: what's so ugly with the code produced by "let x = 6*6*6*6*6" ?
<twobitsprite> smimou: it's not horrible, but not as good as what GCC produces for similar C code... maybe I'm just nit-picking...
<smimou> I think you are :)
<smimou> compiling this with ocamlopt -S to see the assembly produced does not show so much insanities
<twobitsprite> you're right... I my OCD is getting to me... I find myself needlessly wringing my hands over efficiency... I need to stop doing that
<smimou> the time when you needed to put __asm everywere is over since a long time ago :)
CosmicRay has quit [Read error: 60 (Operation timed out)]
<pnou_> and as you can see, the 6*6*6*6*6 is expanded by the compiler
<pango> an optimizing compiler would probably replace later occurences of x with 7776 and try to evaluate/optimize expressions even further after that
<pnou_> sure, you can always optimize more...
<pango> unless x is not used, in which case it generates no code
<smimou> it's the case here...
<pango> yes, it looks good enough
ski has joined #ocaml
zigong has quit [Remote closed the connection]
CosmicRay has joined #ocaml
CosmicRay has quit [Remote closed the connection]
Gueben has quit [Remote closed the connection]
Banana has quit [Remote closed the connection]
Banana has joined #ocaml
zigong has joined #ocaml
ski has quit [Read error: 110 (Connection timed out)]
zigong has left #ocaml []
ski has joined #ocaml
threeve has quit []
threeve has joined #ocaml
Banana has quit [Remote closed the connection]
__DL__ has quit ["Bye Bye"]
z|away has joined #ocaml
ski has quit ["Zzz"]
Skal has quit [Remote closed the connection]
threeve has quit []
<z|away> How do you get a byte[] from C code into ocaml?
<smimou> a string would be the easiest representation I guess
<z|away> The byte[] has nulls/char0's, so a string won't work.
<smimou> you can have \000 in caml strings
<smimou> the length is stored internally
<z|away> I have a byte[] in C. return caml_copy_string(byte[]); will not return it with nulls. How do I get it back into ocaml while preserving nulls?