flux changed the topic of #ocaml to: 3.11.0+rc1 is out! | Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.0beta1 available from http://caml.inria.fr/pub/distrib/ocaml-3.11/ | Or grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html
sporkmonger has quit []
sporkmonger has joined #ocaml
Demitar has joined #ocaml
jeddhaberstro has joined #ocaml
tomh has quit ["http://www.mibbit.com ajax IRC Client"]
alexyk has quit []
onigiri has joined #ocaml
onigiri is now known as EmanuelC
ygrek has quit [Remote closed the connection]
jlouis has quit ["Leaving"]
Yoric[DT] has quit ["Ex-Chat"]
fschwidom has joined #ocaml
alexyk has joined #ocaml
jjong has joined #ocaml
fschwidom has quit [Remote closed the connection]
EmanuelC has quit []
seafood has quit []
seafood has joined #ocaml
Optikal__ has left #ocaml []
seafood has quit []
Amorphous has quit [Read error: 110 (Connection timed out)]
shortc|desk has joined #ocaml
Amorphous has joined #ocaml
shortc|desk has quit [Client Quit]
DoctorChaotic has joined #ocaml
<DoctorChaotic> complete newbie here, I just installed ocaml on Mac OS X and when I run 'ocaml' I get a generic Bus Error
<DoctorChaotic> any advice?
<purple_> # 3 == 3;;
<purple_> - : bool = true
<purple_> # 3L == 3L;;
<purple_> - : bool = false
<purple_> any ideas for 64 bit comparison ?
<purple_> is this a bug ?
<purple_> ok - seems i am using c style equality testing
<mbac> purple_, i got so burned by that just last week
<mbac> Int64.compare is what you want
<purple_> thanks mbac , well i just tracked it down through a whole bunch of modulo operations and manipulation,
<purple_> i still have some hair left
<mbac> in fact, this is exactly where i got burned by it http://www.panix.com/~mbac/twofish.ml
<mbac> i was trying to implement twofish as a first project and must've spent 8 hours tracking down why my implementation didn't match up with the test vectors
<purple_> goodness thats a lok of bit twidling - i think i can count myself lucky - took me an hour, its my own time_t gmtime etc implementation
<mbac> compare invokes evil compiler magic
Kerris7 has joined #ocaml
<det> mbac, I am curious how your Ocaml implementation compares to C
<det> mbac, does OCaml make any attempts to unbox Int64 in loops?
<mbishop> I implemented TEA in F#, but never twofish
Mr_Awesome has joined #ocaml
<alexyk> how do you add a "main driver" into an .ml file which runs as main when compiled by itself, but not if together with others?
seafood has joined #ocaml
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
Mr_Awesome has joined #ocaml
jeddhaberstro has quit []
Kerris7 has quit [Read error: 54 (Connection reset by peer)]
Kerris7 has joined #ocaml
johnnowak has joined #ocaml
jjong has left #ocaml []
pumpkin has quit [Remote closed the connection]
johnnowak has left #ocaml []
DoctorChaotic has quit []
pumpkin_ has joined #ocaml
sporkmonger has quit []
threeve has quit []
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
alexyk has quit []
Kerris7_ has joined #ocaml
Kerris7 has quit [Read error: 60 (Operation timed out)]
apples` has quit ["Leaving"]
seafood has quit []
alexyk has joined #ocaml
bzzbzz has quit ["leaving"]
seafood has joined #ocaml
Axioplase has joined #ocaml
johnnowak has joined #ocaml
Mr_Awesome has joined #ocaml
seafood has quit []
seafood has joined #ocaml
seafood has quit [Client Quit]
Snark has joined #ocaml
alexyk has quit []
alexyk has joined #ocaml
ygrek has joined #ocaml
asabil has quit ["Ex-Chat"]
ygrek has quit [Remote closed the connection]
alexyk has quit []
alexyk has joined #ocaml
jjong has joined #ocaml
alexyk has quit []
asabil has joined #ocaml
jjong has quit ["ERC Version 5.2 (IRC client for Emacs)"]
mtrimpe has quit [Read error: 104 (Connection reset by peer)]
onigiri has joined #ocaml
mtrimpe has joined #ocaml
ygrek has joined #ocaml
Kerris7_ has quit []
onigiri has quit []
johnnowak has quit []
Kerris7 has joined #ocaml
johnnowak has joined #ocaml
Gionne has joined #ocaml
rwmjones has joined #ocaml
johnnowak has quit []
johnnowak has joined #ocaml
johnnowak has quit [Client Quit]
ygrek has quit [Remote closed the connection]
Kerris7_ has joined #ocaml
Kerris7 has quit [Read error: 54 (Connection reset by peer)]
Kerris7_ has quit [Read error: 60 (Operation timed out)]
Kerris7 has joined #ocaml
<Gionne> http://pastebin.com/m28419353 how do i make it exaustive? tried with | but got a syntax error.
Yoric[DT] has joined #ocaml
Yoric_ has joined #ocaml
Yoric_ has quit [Read error: 104 (Connection reset by peer)]
Kerris7 has quit []
<petchema> List.map (fun (Prod [x, [_]]) -> (x, first pl x)
<petchema> | _ -> assert false) pl
<Gionne> ;)
ygrek has joined #ocaml
<petchema> but the problem may be elsewhere, ',' is tuples separator, so [x, [_]] is actually [(x, [_])] (a list of tuples,...), that's a bit unusual
Snark has quit ["Ex-Chat"]
ygrek has quit [Remote closed the connection]
seafood has joined #ocaml
vixey has joined #ocaml
Kerris7 has joined #ocaml
Jarvellis has joined #ocaml
<vixey> "Side effects such as state and control ease correctness: an effectful generator can resemble the textbook presentation of an algorithm, as is familiar to domain experts, yet insert let for memoization and if for bounds-checking, as is necessary for efficiency."
ulfdoz has joined #ocaml
<Yoric[DT]> vixey: where does that come from?
<vixey> Shifting the Stage: Staging with Delimited Control -- http://okmij.org/ftp/Computation/staging/circle-shift.pdf
Kerris7 has quit []
Kerris7 has joined #ocaml
fschwidom has joined #ocaml
Kerris7 has quit [Read error: 54 (Connection reset by peer)]
Kerris7 has joined #ocaml
Kerris7 has quit []
seafood has quit []
<vixey> it's about as readable as the haskell too
<vixey> :p
Gionne has quit ["Leaving"]
<Yoric[DT]> Yeah, I had about 30 lines in OCaml, too.
<Yoric[DT]> The longest part being the printing...
<mfp> vixey: for good or bad? it'd maybe look a bit better with Batteries' where ...
<flux> yoric[dt], does that tell you that we need better pformatting combinators or language extensions?-)
<Yoric[DT]> :)
<Yoric[DT]> Actually, it told me that I had better resume working on tomorrow's exam because it needs to be ready in 18 hours.
<vixey> mfp, bad (jokingly)
<vixey> if you got a right answer that's what matters
<mfp> it's as (un)readable as the first Haskell solution, but easier to read than the efficient one with unboxed arrays and continuations, methinks
<vixey> yes
<vixey> I was going to have a go using CHR but I don't have it installed :/
sporkmonger has joined #ocaml
sporkmonger has quit [Client Quit]
Kerris7 has joined #ocaml
sporkmonger has joined #ocaml
Optikal_ has joined #ocaml
Kerris7 has quit []
<flux> CHR?
<vixey> like a constaint programming thing embedded in Prolog
<vixey> gave up already thought
<vixey> though*
tomh has joined #ocaml
willb has joined #ocaml
snhmib has quit ["Good riddance!"]
<munga> whay it the keyword I've to use in _tags to tell ocamlbuild to ignore a cmxa in my source directory ? dirty something ... I can't remember ...
<flux> I don't remember, but I do remember there is one :)
<flux> a web resource suggests "not_hygienic" or "precious"
<flux> (although I would prefer perhaps "dirty" for the sake of a simpler word)
<munga> not_hygenic !!! thx
Yoric[DT] has quit ["Ex-Chat"]
sporkmonger has quit []
<munga> another small ocamlbuild question: I've a cmxa in a directory and I want to make ocamlbuild to see it. if I use ocamlopt directly everything in fine. But is I use ocamlbuild -I libdir it complains that the module is unbounded ...
<munga> how can I convince ocamlbuild to look in one directory for cmxa(s) ?
<flux> I wish ocamlbuild was better documented
<flux> the users' manual servers as a decent introduction, but I guess you've read that already
<munga> I always end up asking for this kind of questions... and I'm sure somebody already asked the same question on the list !!!
<munga> yes, there is -I or -Is to add search directories...
<flux> hey this can be interesting: http://brion.inria.fr/gallium/index.php/Ocamlbuild
<munga> I hope I don't have to write a mini myocamlbuild for such a trivial task...
<munga> this is the wiki... I'll dig a bit more. maybe the answer is in the examples ...
sporkmonger has joined #ocaml
tomh has quit ["http://www.mibbit.com ajax IRC Client"]
tomh has joined #ocaml
jjong has joined #ocaml
<olegfink> ocamlbuild -documentation seems to tell more than the docs
<olegfink> at least it was the only way I could learn how to add a -wp to ocamlc flags.
willb has quit ["Leaving"]
pango has quit [Remote closed the connection]
pango has joined #ocaml
Kerris7 has joined #ocaml
rwmjones has quit ["Leaving"]
willb has joined #ocaml
Camarade_Tux has joined #ocaml
alexyk has joined #ocaml
<munga> I think there is no way to tell ocamlbuild to use something like : "-I +camlp4 camlp4fulllib.cmxa" without using an myocamlbuild module... Am I wrong ?
<munga> something like I mean " -I directory lib.cmxa "
Kerris7 has quit []
fschwidom has quit [Connection timed out]
Stefan_vK has joined #ocaml
rwmjones has joined #ocaml
fschwidom has joined #ocaml
pango has quit [Remote closed the connection]
pumpkin_ has quit []
pango has joined #ocaml
asabil has quit ["Ex-Chat"]
itewsh has joined #ocaml
jlouis has joined #ocaml
mishok13 has quit [Read error: 110 (Connection timed out)]
marmotine has joined #ocaml
Yoric[DT] has joined #ocaml
rwmjones has quit ["Leaving"]
middayc has joined #ocaml
fschwidom has quit [Remote closed the connection]
jeremiah has quit [Read error: 104 (Connection reset by peer)]
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
<Camarade_Tux> I guess alchimy ( http://labs.adobe.com/technologies/alchemy/ ) still has some performance problems making C/C++ run on flash...
<flux> I wonder, regrettably, if it would be a good idea to target flash instead of JavaScript in an ocaml compiler
<flux> (or byterun)
<flux> I can't think it would be more difficult than with C/C++
itewsh has quit ["KTHXBYE"]
<Yoric[DT]> Actually, if you have JavaScript, you have Flash, too.
<Yoric[DT]> ActionScript is JavaScript + a few extensions.
<Camarade_Tux> flux, SFX's performance (the engine in webkit) is absolutely astonishing
<Camarade_Tux> I think they're getting faster than flash
jeremiah has joined #ocaml
<Camarade_Tux> I remember jdh's benchmarks when obrowser was announced : he compared IE, firefox, opera and has an 8-cores desktop machine
<Camarade_Tux> on my poor laptop (well, core2duo but not that fast) and sfx, everything ran at least 15% faster than on chrome which was the fastest according to his benchmark
ozzloy_ has joined #ocaml
ozzloy has quit [Broken pipe]
ozzloy_ is now known as ozzloy
johnm has quit [Remote closed the connection]
seafood has joined #ocaml
ygrek has joined #ocaml
Kerris7 has joined #ocaml
Jarvellis has quit [Read error: 54 (Connection reset by peer)]
alexyk has quit []
hkBst has joined #ocaml
snhmib has joined #ocaml
middayc has left #ocaml []
Kerris7 has quit []
fbvortex has joined #ocaml
asabil has joined #ocaml
<fbvortex> How can I test a float value to see if it's nan or infinity or neg_infinity? I have some numerical code which can produce nans (this is OK and expected), but if I check its output like (List.nth result 0) = nan , I always get false even if the interpreter prints "result" as a list of nans ...
alexyk has joined #ocaml
<olegfink> fbvortex: [Pervasives.classify_float]?
<fbvortex> olegfink: interesting, let me take a look
<fbvortex> olegfink: thank you, that seems like exactly what I need!
alexyk has quit []
pumpkin_ has joined #ocaml
pumpkin_ is now known as pumpkin
palomer has quit ["Leaving"]
apples` has joined #ocaml
Kerris7 has joined #ocaml
sporkmonger has quit []
slash_ has quit [Client Quit]
marmotine has quit ["mv marmotine Laurie"]
snhmib has quit ["Good riddance!"]
Axioplase_ has quit [Read error: 104 (Connection reset by peer)]
ygrek_ has joined #ocaml
<Kerris7> why am I getting a malicious website warning when I go to ffconsultancy.com :S
<Kerris7> something about onlinestat.cn
<Camarade_Tux> Kerris7, what from ?
ygrek has quit [Remote closed the connection]
<Kerris7> Camarade_Tux: I'm using Safari, it consults a Google Safe Browsing list
<Kerris7> there's this curious line in the page source
<Kerris7> <iframe src='http://onlinestat.cn/forum/in.php ' width='1' height='1' style='visibility: hidden;'></iframe>
<Camarade_Tux> but let's visit it anyway, I'm on linux, I risk nothing :)
<Camarade_Tux> (at least I hope as I'm root :D )
<Camarade_Tux> Kerris7, lol : "This Account Has Been Suspended"
<Kerris7> oh Camarade_Tux you adventurer
<Kerris7> wait what
<Camarade_Tux> but I don't get the warning on ffconsultancy.com
<Camarade_Tux> Kerris7, the website has been taken down
<Kerris7> oh, onlinestat.cn
<Kerris7> I'm no web dev, how did that iframe line get there
<Camarade_Tux> yeah, but if there's a link to that on ffconsultancy.com, you'd maybe better report it
<Camarade_Tux> lol, in the source, it's hidden at the 474th col ;p
<Camarade_Tux> well, "hidden"
<Kerris7> I emailed them about a week ago, because I ordered the OCaml book about a month ago now and it's still not showed up :(
<Kerris7> guess I'll do it again
<Camarade_Tux> gosh, I read you had ordered the Christmax OCaml book, I guess I'd better go to bed :p
<Kerris7> haha, good night :)
Camarade_Tux has quit ["Leaving"]
willb has quit ["Leaving"]
<Kerris7> can't wait for the new Camelia :)
ulfdoz has quit ["deprecated"]
jeddhaberstro has joined #ocaml
tomh has quit ["http://www.mibbit.com ajax IRC Client"]
bjorkBSD has quit ["Leaving"]
Yoric[DT] has quit ["Ex-Chat"]
ygrek_ has quit [Remote closed the connection]
hkBst has quit [Read error: 54 (Connection reset by peer)]