gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
rimmjob has quit [Ping timeout: 244 seconds]
arubin has joined #ocaml
rimmjob has joined #ocaml
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: Hashtbl.print Key.print Value.print
<rgrinberg> polymorphic i think
<rgrinberg> thanks hcarty, let me try that out
<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
Kakadu has quit [Ping timeout: 265 seconds]
dnolen has joined #ocaml
dnolen has quit [Client Quit]
abdallah has quit [Quit: Ex-Chat]
ulfdoz has quit [Ping timeout: 244 seconds]
ttamttam has joined #ocaml
asmanur has quit [Ping timeout: 252 seconds]
asmanur has joined #ocaml
jamii has joined #ocaml
papers has joined #ocaml
Derander has quit [Quit: ZNC - http://znc.sourceforge.net]
Derander has joined #ocaml
ikaros has joined #ocaml
Cyanure has joined #ocaml
andre_ has joined #ocaml
lopex has joined #ocaml
Kakadu has joined #ocaml
robthebob has joined #ocaml
redsteg has quit [Read error: No route to host]
grettke has joined #ocaml
grettke has quit [Client Quit]
redsteg has joined #ocaml
chambart has quit [Ping timeout: 256 seconds]
sgnb has quit [Read error: Connection reset by peer]
sgnb has joined #ocaml
chambart has joined #ocaml
Kakadu has quit [Ping timeout: 265 seconds]
lopex_ has joined #ocaml
lopex has quit [Ping timeout: 265 seconds]
lopex_ is now known as lopex
regex436 has joined #ocaml
Kakadu has joined #ocaml
emmanuelux has joined #ocaml
regex436 has quit [Quit: IRC webchat at http://irc2go.com/]
lopex has quit [Ping timeout: 265 seconds]
lopex has joined #ocaml
robthebob has quit [Quit: Leaving]
sepp2k has joined #ocaml
<adrien> gildor: ocamlfind: [WARNING] Overwriting file /opt/ocaml-dev/lib/ocaml/site-lib/lablgtkextras/gdir.cmi
<adrien> and before, I had gotten the "installed .../gdir.cmi"
jimmyrcom has joined #ocaml
<hcarty> rgrinberg: The required work-around is to use ( * ) instead of (*)
<hcarty> rgrinberg: It is common to see all operators passed that way ( + ) ( - ) ( / ) for consistency
<gildor> adrien: is that possible that gdir.cmi existed before ?
metasyntax|work has quit [Quit: WeeChat [quit]]
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
Kakadu has quit [Ping timeout: 265 seconds]
metasyntax|work has joined #ocaml
oriba has joined #ocaml
<adrien> gildor: it doesn't; and it copies it once fine first
brendan has quit [Ping timeout: 258 seconds]
jimmyrcom has quit [Ping timeout: 240 seconds]
Asmadeus has quit [Quit: Changing server]
Asmadeus has joined #ocaml
Boscop has joined #ocaml
jimmyrcom has joined #ocaml
jamii has quit [Ping timeout: 260 seconds]
philtor has joined #ocaml
Qrntzz has quit [Ping timeout: 258 seconds]
Qrntzz has joined #ocaml
philtor has quit [Ping timeout: 256 seconds]
lopex has quit []
ankit9 has quit [Ping timeout: 248 seconds]
ankit9 has joined #ocaml
BiMiT has joined #ocaml
ulfdoz has joined #ocaml
Cyanure has quit [Remote host closed the connection]
fschwidom has joined #ocaml
ygrek has joined #ocaml
ankit9 has quit [Quit: Leaving]
joewilliams_away is now known as joewilliams
lopex has joined #ocaml
oriba has quit [Quit: oriba]
randori has joined #ocaml
ankit9 has joined #ocaml
junsuijin has joined #ocaml
papers has quit [Ping timeout: 244 seconds]
larhat has quit [Quit: Leaving.]
brendan has joined #ocaml
thomasga has quit [Quit: Leaving.]
ulfdoz has quit [Read error: Operation timed out]
BiMiT has left #ocaml []
ulfdoz has joined #ocaml
<thelema> I see articles on "Macros in " {Perl6, Haskell} on HN - is there a good camlp4 tutorial to suggest?
<bitbckt> this is still canonical, I think: http://caml.inria.fr/pub/docs/tutorial-camlp4/
<bitbckt> also, Jake has a good series on it: http://ambassadortothecomputers.blogspot.com/p/reading-camlp4.html
<bitbckt> (actually, the INRIA link is camlp5... nvm)
<hcarty> thelema: HN?
<bitbckt> ... hacker news?
ulfdoz has quit [Ping timeout: 255 seconds]
<thelema> hcarty: hacker news
<thelema> bitbckt: thank you - I wasn't aware of that series.
<bitbckt> thelema: you're welcome.
<hcarty> thelema: pa-do may be something to point someone to as an implementation example, particularly if macros are the goal
<hcarty> thelema: pa-do's macro extension looks like a limited subset of those two articles
<hcarty> limited subset *of what is presented in* those two articles
junsuijin has quit [Ping timeout: 248 seconds]
sepp2k has quit [Read error: Connection reset by peer]
ikaros_ has joined #ocaml
ikaros has quit [Ping timeout: 276 seconds]
ttamttam has quit [Quit: Leaving.]
yezariaely has joined #ocaml
yezariaely has quit [Quit: Leaving.]
jamii has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Client Quit]
andre_ has quit [Quit: leaving]
randori has quit [*.net *.split]
Derander has quit [*.net *.split]
rixed has quit [*.net *.split]
HalfMadDad has quit [*.net *.split]
The_third_man has quit [*.net *.split]
zmoazeni has quit [*.net *.split]
randori has joined #ocaml
Derander has joined #ocaml
rixed has joined #ocaml
HalfMadDad has joined #ocaml
The_third_man has joined #ocaml
zmoazeni has joined #ocaml
randori_ has joined #ocaml
randori has quit [Disconnected by services]
randori_ is now known as randori
fschwidom has quit [Ping timeout: 252 seconds]
edwin has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 248 seconds]
junsuijin has joined #ocaml
Boscop_ has joined #ocaml
Boscop has quit [Disconnected by services]
Boscop_ is now known as Boscop
Boscop has quit [Changing host]
Boscop has joined #ocaml
oriba has joined #ocaml
ikaros_ has quit [Quit: Ex-Chat]
lamawithonel has joined #ocaml
Amorphous has quit [Read error: Connection reset by peer]
jamii has quit [Remote host closed the connection]
Amorphous has joined #ocaml
art_int has quit [Ping timeout: 258 seconds]
arubin has joined #ocaml