emmanuelux has quit [Remote host closed the connection]
Asmadeus has quit [Ping timeout: 260 seconds]
Asmadeus has joined #ocaml
orbitz has quit [Ping timeout: 252 seconds]
mjonsson has quit [*.net *.split]
mbac has quit [*.net *.split]
chambart has quit [*.net *.split]
tlockney has quit [*.net *.split]
explodus has quit [*.net *.split]
adrien has quit [*.net *.split]
alpounet has quit [*.net *.split]
yroeht has quit [*.net *.split]
zzz_ has quit [*.net *.split]
mejalx has quit [*.net *.split]
emias has quit [*.net *.split]
abdallah has quit [*.net *.split]
patronus has quit [*.net *.split]
junsuijin has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
wormphle1m has quit [*.net *.split]
art_int has quit [*.net *.split]
wagle has quit [*.net *.split]
hnrgrgr has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
foocraft has quit [*.net *.split]
wishi has quit [*.net *.split]
schme has quit [*.net *.split]
taupin has quit [*.net *.split]
rby has quit [*.net *.split]
lusory has quit [*.net *.split]
flux has quit [*.net *.split]
pheredhel` has quit [*.net *.split]
olasd has quit [*.net *.split]
gildor has quit [*.net *.split]
dnolen has quit [Quit: dnolen]
orbitz_ has joined #ocaml
hyperboreean has joined #ocaml
mjonsson has joined #ocaml
abdallah has joined #ocaml
patronus has joined #ocaml
junsuijin has joined #ocaml
fraggle_ has joined #ocaml
wormphle1m has joined #ocaml
foocraft has joined #ocaml
art_int has joined #ocaml
wagle has joined #ocaml
wishi has joined #ocaml
schme has joined #ocaml
mbac has joined #ocaml
taupin has joined #ocaml
chambart has joined #ocaml
rby has joined #ocaml
lusory has joined #ocaml
tlockney has joined #ocaml
explodus has joined #ocaml
flux has joined #ocaml
emias has joined #ocaml
mejalx has joined #ocaml
zzz_ has joined #ocaml
yroeht has joined #ocaml
alpounet has joined #ocaml
adrien has joined #ocaml
pheredhel` has joined #ocaml
hnrgrgr has joined #ocaml
gildor has joined #ocaml
olasd has joined #ocaml
chee1 has left #ocaml []
ankit9 has quit [Read error: Connection timed out]
mfp has quit [Ping timeout: 258 seconds]
rixed has quit [Ping timeout: 244 seconds]
rixed has joined #ocaml
ankit9 has joined #ocaml
pyranaks has joined #ocaml
pyranaks has left #ocaml []
mfp has joined #ocaml
orbitz_ has quit [Quit: Reconnecting]
orbitz has joined #ocaml
<rgrinberg>
how do i pretty print a Hashtbl in ocaml?
<_habnabit>
well, there's Hashtbl.print in batteries
<_habnabit>
otherwise, you'd just have to iter or whatnot.
<rgrinberg>
can you give me an example of Hashtbl.print? I don't understand the function types you're supposed to pass. eg. ('a BatInnerIO.output -> 'b -> unit)
<rgrinberg>
<rgrinberg>
<rgrinberg>
<rgrinberg>
<rgrinberg>
<rgrinberg>
<rgrinberg>
<rgrinberg>
<rgrinberg>
<rgrinberg>
oops...
<_habnabit>
are you using the polymorphic or functorial hashtbl?
<hcarty>
rgrinberg: Followed by where you want the output - stdout for example
<_habnabit>
(and then the object)
<hcarty>
_habnabit: Yes, that too :-)
<hcarty>
rgrinberg: The Batteries printing functions are intended to be composable. So you can print a list with: List.print Int.print stdout [1; 2; 3]
<hcarty>
rgrinberg: They also work nicely with the Printf.* functions: Printf.printf "%a" (List.print Int.print) [1; 2; 3]
dnolen has joined #ocaml
avsm has joined #ocaml
ankit9 has quit [Read error: Connection timed out]
ankit9 has joined #ocaml
bobry has quit [Ping timeout: 260 seconds]
avsm has quit [Quit: Leaving.]
bobry has joined #ocaml
joewilliams is now known as joewilliams_away
junsuijin has quit [Ping timeout: 258 seconds]
Associat0r has quit [Quit: Associat0r]
rimmjob has quit [Ping timeout: 244 seconds]
philtor has joined #ocaml
mjonsson has quit [Remote host closed the connection]
<rgrinberg>
thanks hcarty
philtor has quit [Ping timeout: 252 seconds]
arubin has quit [Quit: arubin]
dnolen has quit [Quit: dnolen]
joewilliams_away is now known as joewilliams
metasyntax|work has quit [Ping timeout: 245 seconds]
philtor has joined #ocaml
brendan has quit [Remote host closed the connection]
jimmyrcom has quit [Ping timeout: 276 seconds]
joewilliams is now known as joewilliams_away
<rgrinberg>
say I'm evaluating a code region in tuareg-mode, how do I know where my error actually is in the code?
<rgrinberg>
I get a message like characters xxxx-yyyy
<rgrinberg>
but it doesnt really say much
abdallah has quit [Quit: Ex-Chat]
zorun has joined #ocaml
brendan has joined #ocaml
hyperboreean has quit [Ping timeout: 260 seconds]
metasyntax|work has joined #ocaml
abdallah has joined #ocaml
philtor has quit [Ping timeout: 258 seconds]
ttamttam has joined #ocaml
ygrek has joined #ocaml
ankit9 has quit [Quit: Leaving]
ygrek has quit [Ping timeout: 248 seconds]
<adrien>
I've improved my _oasis file and it seems almost right but I'm getting warnings from findlib during install, telling me that there are dusplicates (installing configwin_types.cmi twice for instance; and only for .cmi files which are in sub-findlib-packages): http://notk.org/~adrien/_oasis
<adrien>
any idea?
Boscop has joined #ocaml
ankit9 has joined #ocaml
edwin has joined #ocaml
milosn has quit [Read error: Connection reset by peer]
milosn has joined #ocaml
Boscop has quit [Ping timeout: 240 seconds]
thomasga has joined #ocaml
<rgrinberg>
is there a power function for integer in ocaml?
brendan has quit [Read error: Connection reset by peer]
brendan has joined #ocaml
<flux>
I don't think so
<flux>
I've just used the floating point version in those cases
<flux>
or you could write your own slow integer-based version as practice ;)
<rgrinberg>
Array.make n x |> Array.reduce (*) :/
<rgrinberg>
ghetoo
<rgrinberg>
ghetto*
<flux>
well, you can do better than O(n) :)
<flux>
(for example let pow4 x = let a = x * x in a * a)
<rgrinberg>
it makes zero difference for what im doing
<rgrinberg>
but i am interested
<rgrinberg>
do tell more
<taupin>
Batteries Int module has a pow function.
<flux>
I wonder how it is implemented
<flux>
let pow = generic_pow ~zero ~one ~div_two:(fun n -> n / 2) ~mod_two:(fun n -> n mod 2) ~mul
<rgrinberg>
what the hell, [1;2;3] |> List.reduce (+) -> 6 but [1;2;3] |> List.reduce (*) doesnt even return
<smango>
rgrinberg: maybe because (*) looks like a comment
<flux>
:-)
<rgrinberg>
smango, yep
<smango>
or that could have been a really dumb answer
<rgrinberg>
how annoying :/
ulfdoz has joined #ocaml
grettke has joined #ocaml
Kakadu has joined #ocaml
grettke has quit [Client Quit]
grettke has joined #ocaml
grettke has left #ocaml []
ttamttam has quit [Ping timeout: 240 seconds]
<gildor>
adrien: can you give me the full output of the error