rwmjones changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.1 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
<ikatz> sorry for the wait
<ikatz> thermoplyae: do you think this is some sort of bug in the interpreter?
<Smerdyakov> Hahahaha
<Smerdyakov> You have confused ';' and ','.
<Smerdyakov> ';' is the list separator.
<thermoplyae> heh, yeah
<ikatz> # list_to_tuple ["a", "b", "c", "d"];;
<ikatz> - : string * string * string * string = ("a", "b", "c", "d")
<ikatz> oh hah
<ikatz> you're right
<ikatz> its been a long day :P
<ikatz> so the moral of this story is that ocaml doesn't require parens for tuples (like sml)?
<Smerdyakov> Right.
<ikatz> wow i got really worked up about that... but it seemed so miraculous :)
<mbishop> Why does ocaml keep Str seperate from String?
<pango> so you can use better regexp engines ;)
LordMetroid has joined #ocaml
julm has joined #ocaml
goalieca has joined #ocaml
l_a_m has quit [Remote closed the connection]
thelema has joined #ocaml
Snrrrub has quit [Read error: 104 (Connection reset by peer)]
Snrrrub has joined #ocaml
middayc has quit []
LordMetroid has quit ["FUCK LIFE!"]
Jedai has quit [Read error: 110 (Connection timed out)]
jlouis_ has joined #ocaml
Jedai has joined #ocaml
jlouis__ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
evn has quit [Remote closed the connection]
evn has joined #ocaml
evn has quit [Remote closed the connection]
evn has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
maayhem has joined #ocaml
<maayhem> oi
<maayhem> can someone indicate me a small ocaml code that would print a different result if compiled tail-recursively or not ?
<maayhem> (provided the code can be compiled tail-recursive)
<thermoplyae> let rec f x = f x will overflow if not compiled tail recursively
<maayhem> this will not compile at all because an occur check happens at type checking.
<thermoplyae> and loop infinitely otherwise, neither of which is printing anything
<thermoplyae> sure it will, its type is 'a -> 'b
<thelema> well, for bytecode, you can catch the stack overflow, so you could print different results, but why do you pose the problem, maayhem?
<maayhem> thelema, Im just trying to do some unit tests for a compiler that is supposed to do tail recursive
<maayhem> so Id like to check that it can indeed compile tail-recursive by using this kind of trick test
<thelema> maayhem: an ocaml compiler?
<maayhem> sort of mini-ml compiler
<maayhem> with polymorphic data structures and filtering .. so an interesting subset
<thelema> well, other than this kind of code, I can't think of any way (within a language) to check for TCO - it's only the difference between jsr + rts -> jmp
<maayhem> yea, it sounds difficult to exhibit such test without having to check the compiled code
<maayhem> cause say, if you add a printf after the supposed tail-recursion to check if its indeed tail recursive, it will make the function not compiled tail recursive
<thelema> If you could measure stack usage, a heavily recursive function would exhibit a difference if TCO-able
<maayhem> sounds a bit hackish
<maayhem> I think Ill keep on looking at the compiled code
<maayhem> :P
AxleLonghorn has joined #ocaml
seafood__ has joined #ocaml
seafood___ has joined #ocaml
seafood___ has quit [Read error: 104 (Connection reset by peer)]
seafood___ has joined #ocaml
seafood_ has quit [Read error: 110 (Connection timed out)]
seafood__ has quit [Read error: 110 (Connection timed out)]
julm has quit [Read error: 110 (Connection timed out)]
Julm has joined #ocaml
Iv^a_na has joined #ocaml
jderque has joined #ocaml
Iv^a_na has left #ocaml []
Snrrrub has quit [Read error: 110 (Connection timed out)]
maayhem has quit [Remote closed the connection]
evn_ has joined #ocaml
<evn_> Channel Page impressions Clicks Page CTR Page eCPM [?] Earnings web2nam. es/ word 3 1 33.33% $129.20 $0.39
<evn_> whoops
<evn_> wrong window
<evn_> sorry
<evn_> :(
Robdor has joined #ocaml
zenhacker_rouan has left #ocaml []
bluestorm has joined #ocaml
kelaouchi has joined #ocaml
thelema has quit [Read error: 110 (Connection timed out)]
seafood___ has quit []
AxleLonghorn has left #ocaml []
seafood_ has joined #ocaml
ygrek has joined #ocaml
gim has quit [Remote closed the connection]
LordMetroid has joined #ocaml
Linktim has joined #ocaml
linktim_ has joined #ocaml
linktim__ has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
det has quit [Read error: 104 (Connection reset by peer)]
linktim_ has quit [Read error: 110 (Connection timed out)]
Robdor has quit [Read error: 104 (Connection reset by peer)]
det has joined #ocaml
m3ga has joined #ocaml
kelaouchi has quit [Client Quit]
linktim__ has quit [Read error: 110 (Connection timed out)]
thermoplyae has quit ["daddy's in space"]
middayc has joined #ocaml
l_a_m has joined #ocaml
jderque has quit ["leaving"]
ita has joined #ocaml
<flux> btw, regarding the discussion about compiling ocaml to javascript, it turns out it's been done already: http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/
linktim__ has joined #ocaml
hkBst has joined #ocaml
<m3ga> anyone know who controls this : http://feeds.feedburner.com/planet_caml_en
<m3ga> specifically who can add or delete feeds?
<flux> no idea. I originallly found about the feed from a chinese web site.
<m3ga> yeah, me too
<flux> regarding ocamljs: it creates disappointingly large js-files, mainly due to standard libraries (I hope)
<flux> also apparently the (public) development of the compiler has not progressed
linktim_ has joined #ocaml
lordmetroid_ has joined #ocaml
linktim__ has quit [Read error: 110 (Connection timed out)]
<goalieca> hmm.. fsharp for mono is damned slow
<goalieca> and buggy
goalieca has quit [Read error: 104 (Connection reset by peer)]
<flux> buggy how? (I haven't tried it)
LordMetroid has quit [Connection timed out]
linktim_ has quit [Read error: 110 (Connection timed out)]
evn_ has quit []
olleolleolle has joined #ocaml
middayc has quit [Read error: 110 (Connection timed out)]
jderque has joined #ocaml
olleolleolle has quit []
lordmetroid_ is now known as LordMetroid
Julm has quit ["bye \o_"]
julm has joined #ocaml
linktim_ has joined #ocaml
coucou747 has joined #ocaml
seafood_ has quit []
seafood_ has joined #ocaml
seafood_ has quit [Client Quit]
Yoric[DT] has joined #ocaml
Yoric[DT] has quit [Read error: 104 (Connection reset by peer)]
linktim_ has quit [Read error: 110 (Connection timed out)]
m3ga has quit ["disappearing into the sunset"]
julm has quit [Read error: 104 (Connection reset by peer)]
julm has joined #ocaml
Iv^a_na has joined #ocaml
Iv^a_na has left #ocaml []
marmottine has joined #ocaml
coucou747 has quit [Read error: 113 (No route to host)]
ita has quit ["Hasta luego!"]
Linktim has joined #ocaml
jderque has quit ["leaving"]
linktim_ has joined #ocaml
thelema has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
linktim_ has quit [Read error: 110 (Connection timed out)]
Snrrrub has joined #ocaml
Snrrrub__ has joined #ocaml
Snrrrub has quit [Read error: 110 (Connection timed out)]
pango has quit [Excess Flood]
pango has joined #ocaml
AxleLonghorn has joined #ocaml
duro has joined #ocaml
Linktim has joined #ocaml
pango has quit [Remote closed the connection]
jderque has joined #ocaml
pango has joined #ocaml
Morphous has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
AxleLonghorn has left #ocaml []
Amorphous has quit [Success]
ita has joined #ocaml