<rumpl>
Of course, there are already lists in ocaml...
ygrek has joined #ocaml
rumpl has quit ["Ex-Chat"]
kniv7s has joined #ocaml
ramenboy has joined #ocaml
kniv7s has quit [Read error: 110 (Connection timed out)]
magnus__ has quit ["leaving"]
kniv7s has joined #ocaml
jurriaan has joined #ocaml
shawn has joined #ocaml
gaja has quit ["leaving"]
gaja has joined #ocaml
<gaja>
Hi. I'm trying to understand how to get the module DynArray to work but it seems ocaml can't find it. I'm quite new at using ocaml so I may well be missing a quite basic step. Or maybe it's not installed, I don't know if it is installed via ocaml-libs in debian. Any advice on how to start?
<pango>
ocamlopt -I +extlib -ccopt ...
<gaja>
Ahh.. cool. I'm sure there is some place I would have found this had I read it. Where could that be?
<gaja>
And yeah thanks pango. =)
<pango>
or if you have findlib, ocamlfind ocamlopt -package extlib ...
<pango>
I used the latter with -verbose to see how it's expanded ;)
<gaja>
Hmm.. Still don't quite get it. What is it that those commands do? Should the ... be replaced by a call to the compiler or what? What about if I want to try out dynarray in the interpreter?
<pango>
mmh actually -ccopt is not required
<pango>
gaja: then findlib can help too :) echo '#use "topfind" ;;' >> ~/.ocamlinit then #require "extlib" ;; in the toplevel
<gaja>
Yay.. Now it works in the toplevel. =)
<gaja>
I have always the process of compilation and such to frustrate me. Never have been able to make make work and such. =) Gotta get on that.
<gaja>
+found
<pango>
ocaml 3.10 has a new tool called ocamlbuild that's supposed to relieve some of the pain... Haven't test it yet (still using 3.09.3)
<gaja>
Me too.. I'm just getting started on quite a big project for me. Will surely need a lot of knowhow if I wan't to have more than one sourcefile and I do..
<gaja>
I find that the best way to learn a new programming language is to get in way over your head.
kniv7s has quit [Read error: 110 (Connection timed out)]
piggybox_ has joined #ocaml
ygrek has quit [Remote closed the connection]
jurriaan has quit [Read error: 104 (Connection reset by peer)]
jurriaan has joined #ocaml
ygrek has joined #ocaml
slipstream-- has quit [Read error: 104 (Connection reset by peer)]
piggybox has quit [Connection timed out]
TFK has joined #ocaml
<TFK>
Howdy, folks. I'm writing a program that needs to generate lots and lots of random numbers, and I use the Random module for that. After profiling, it turns out that up to 40% of program execution time are taken up by that module. Is there anything faster out there?
jurriaan has quit []
jurriaan has joined #ocaml
jurriaan has left #ocaml []
shawn has quit ["This computer has gone to sleep"]
<flux>
tfk, if you don't need good random numbers, you could google the web for a trivial random number generator algorithm
<TFK>
And if I do?
<flux>
..and then implement one..
<flux>
tfk, or you could check out the openssl/gnutls binding libraries, they are likely to provide random number generators
<flux>
if not by other means, then by generating an encryption key and encrypting a sequence of zeroes with it..
<flux>
btw, what kind of program are you writing, if I may ask?
<flux>
hmh, atleast the savonet bindings of openssl don't provide access to random functions..
<flux>
you could also write a piece of C code that generates a bulk of random numbers by using some library
<flux>
I'm off the irc for a while now, so happy hacking..
screwt8 has quit [Remote closed the connection]
shawn has joined #ocaml
<ygrek>
TFK, ocamlgsl provides mersenne twister
<TFK>
flux, I'm porting Nanopond to OCaml, it's a small Artificial Life program. It does a lot of random genome generations... Nanopond actually comes with its own RNG, but I was too lazy to port that :-(
<ygrek>
MT is rather fast, and ocamlgsl is a binding to C GSL library which is widely used and so you can expect effective implementation
screwt8 has joined #ocaml
<ygrek>
also there is mathlib package (never tried it though)
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
<TFK>
ygrek, thanks, I'll check it out :-)
slipstream has joined #ocaml
smimou has joined #ocaml
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
jlouis_ has quit [Read error: 104 (Connection reset by peer)]
jlouis has joined #ocaml
TFK has quit []
pants1 has quit [Read error: 110 (Connection timed out)]
jlouis has quit [Read error: 104 (Connection reset by peer)]
pantsd has joined #ocaml
jlouis has joined #ocaml
jlouis has quit [Client Quit]
jlouis has joined #ocaml
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
pantsd has quit [Read error: 110 (Connection timed out)]
leo037 has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Connection timed out]
slipstream has joined #ocaml
slipstre1m-- has joined #ocaml
slipstream-- has quit [Read error: 110 (Connection timed out)]
slipstream has quit [Read error: 110 (Connection timed out)]
pango has quit [Remote closed the connection]
yminsky has joined #ocaml
yminsky has quit [Client Quit]
pango has joined #ocaml
deatheye has joined #ocaml
thesoko has quit [Remote closed the connection]
thesoko has joined #ocaml
deatheye has left #ocaml []
slipstream has joined #ocaml
pants1 has joined #ocaml
slipstre1m-- has quit [Read error: 110 (Connection timed out)]
thesoko has quit [Remote closed the connection]
thesoko has joined #ocaml
slipstream has quit [Read error: 104 (Connection reset by peer)]
slipstream has joined #ocaml
leo037 has quit ["Leaving"]
seafoodX has quit []
pmdboi has joined #ocaml
mrchebas has joined #ocaml
ygrek has quit ["Leaving"]
yminsky has joined #ocaml
love-pingoo has joined #ocaml
martin_ has joined #ocaml
martin_ has left #ocaml []
descender has joined #ocaml
pants1 has quit [Read error: 110 (Connection timed out)]
love-pingoo has quit ["Connection reset by pear"]
mrchebas has quit [Read error: 104 (Connection reset by peer)]
mrchebas has joined #ocaml
pantsd has joined #ocaml
yminsky has quit []
pmdboi has quit ["This computer has gone to sleep"]
shawn has quit ["This computer has gone to sleep"]