<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
<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."
<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...
<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)]
<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