gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0+beta1 http://permalink.gmane.org/gmane.comp.lang.caml.inria/49168
Dead has quit [Ping timeout: 260 seconds]
seanmcl has joined #ocaml
Dead_Dreamer has quit [Ping timeout: 260 seconds]
joewilliams is now known as joewilliams_away
krankkatze has quit [Quit: leaving]
krankkatze has joined #ocaml
avsm has quit [Quit: Leaving.]
_unK has quit [Remote host closed the connection]
alexyk has joined #ocaml
thrasibule has joined #ocaml
alexyk has quit [Client Quit]
alexyk has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
emmanuelux has joined #ocaml
alexyk has quit [Quit: Page closed]
jeddhaberstro has joined #ocaml
ccasin has quit [Quit: Leaving]
valross has quit [Ping timeout: 265 seconds]
emmanuelux has quit [Remote host closed the connection]
valross has joined #ocaml
caligula_ has joined #ocaml
caligula__ has quit [Ping timeout: 245 seconds]
ulfdoz has joined #ocaml
valross has quit [Ping timeout: 265 seconds]
travisbrady has quit [Quit: travisbrady]
valross has joined #ocaml
Yoric has joined #ocaml
Amorphous has quit [Read error: Connection reset by peer]
ulfdoz has quit [Ping timeout: 265 seconds]
seanmcl has quit [Quit: seanmcl]
Amorphous has joined #ocaml
ikaros has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
jeddhaberstro has quit [Quit: jeddhaberstro]
seanmcl has joined #ocaml
Edward_ has joined #ocaml
Yoric has quit [Quit: Yoric]
ttamttam has joined #ocaml
filp has joined #ocaml
seanmcl has quit [Quit: seanmcl]
ftrvxmtrx has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
valross has quit [Remote host closed the connection]
Yoric has joined #ocaml
Edward_ has quit [Ping timeout: 265 seconds]
Edward_ has joined #ocaml
Asmadeus has quit [Ping timeout: 240 seconds]
oriba has joined #ocaml
Asmadeus has joined #ocaml
mfp_ has joined #ocaml
mfp has quit [Ping timeout: 265 seconds]
_andre has joined #ocaml
mfp_ has left #ocaml []
mfp has joined #ocaml
derdon has joined #ocaml
_unK has joined #ocaml
metasyntax has quit [Quit: Be seeing you.]
rjones has joined #ocaml
thrasibule has quit [Ping timeout: 265 seconds]
oriba has quit [Quit: Verlassend]
caligula_ has quit [Ping timeout: 260 seconds]
ccasin has joined #ocaml
fraggle_laptop has quit [Ping timeout: 260 seconds]
caligula_ has joined #ocaml
fraggle_laptop has joined #ocaml
tonasinanton has joined #ocaml
tonasinanton has left #ocaml []
jgrozave has joined #ocaml
jgrozave has left #ocaml []
jgrozave has joined #ocaml
seanmcl has joined #ocaml
bzzbzz has joined #ocaml
jgrozave has left #ocaml []
caligula_ has quit [Remote host closed the connection]
derdon has quit [Quit: derdon]
caligula_ has joined #ocaml
derdon has joined #ocaml
jgrozave has joined #ocaml
<jgrozave> How difficult is it to set up GODI on Windows?
metasyntax has joined #ocaml
Associat0r has quit [Quit: Associat0r]
ikaros has quit [Quit: Leave the magic to Houdini]
boscop_ has left #ocaml []
<adrien> jgrozave: depends: what do you mean by "windows"? msvc? cygwin? mingw?
boscop has joined #ocaml
caligula_ has quit [Read error: Connection reset by peer]
jgrozave has quit [Quit: Page closed]
caligula_ has joined #ocaml
sgnb has quit [Read error: Connection reset by peer]
sgnb has joined #ocaml
sgnb has quit [Remote host closed the connection]
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 260 seconds]
jonafan_ is now known as jonafan
fraggle_laptop has quit [Ping timeout: 245 seconds]
sgnb has joined #ocaml
fraggle_laptop has joined #ocaml
joewilliams_away is now known as joewilliams
derdon has quit [Ping timeout: 248 seconds]
ftrvxmtrx has quit [Quit: Leaving]
derdon has joined #ocaml
Yoric_ has joined #ocaml
Yoric has quit [Ping timeout: 240 seconds]
Yoric_ is now known as Yoric
Yoric has quit [Client Quit]
Edward_ has quit []
joewilliams is now known as joewilliams_away
emmanuelux has joined #ocaml
iratsu has quit [Read error: Operation timed out]
iratsu has joined #ocaml
ttamttam has quit [Quit: Leaving.]
ftrvxmtrx has joined #ocaml
iratsu has quit [Ping timeout: 240 seconds]
iratsu has joined #ocaml
filp has quit [Quit: Bye]
ulfdoz has joined #ocaml
rjones has quit [Ping timeout: 264 seconds]
iratsu has quit [Ping timeout: 245 seconds]
travisbrady has joined #ocaml
iratsu has joined #ocaml
travisbrady has quit [Quit: travisbrady]
ttamttam has joined #ocaml
iratsu has quit [Ping timeout: 240 seconds]
jeddhaberstro has joined #ocaml
iratsu has joined #ocaml
Associat0r has joined #ocaml
iratsu has quit [Ping timeout: 260 seconds]
derdon has quit [Quit: derdon]
iratsu has joined #ocaml
Modius has joined #ocaml
jeddhaberstro has quit [Quit: jeddhaberstro]
ikaros has joined #ocaml
alexyk has joined #ocaml
<alexyk> is there a way to compress the result of marshal before writing it to_channel, with gzip or bzip2?
alexyk has quit [Quit: alexyk]
oriba has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
Yoric has joined #ocaml
ikaros has joined #ocaml
oriba has quit [Quit: Verlassend]
ttamttam has quit [Quit: Leaving.]
ikaros_ has joined #ocaml
ikaros has quit [Ping timeout: 245 seconds]
alexyk has joined #ocaml
ztfw has quit [Ping timeout: 245 seconds]
<alexyk> missed replies -- how can I compress a result of Marshal.to_channel with bzip2 or gzip prior to writing to disk?
ztfw has joined #ocaml
<alexyk> thelema: I forgot, is there a way to turn off camlp4 extensions in the batteries toplevel?
<gildor> alexyk: you should combine Marshal.to_string/to_buffer with camlzip/camlbz2 library
iratsu has quit [Ping timeout: 245 seconds]
<alexyk> gildor: does it mean the string has to be completely output before I can compress it? It'll take more RAM. I can simply compress the file on disk after to_channel is done. The question is, can compression and marshalling be done together... "lazily"
<gildor> alexyk: yes the string as to completely output to do that
<gildor> If you can use compression after to_channel, you will be more memory efficient
<alexyk> gildor: I'm back from a Haskell spree with a hangover :)
<gildor> I don't know if you can compress and marshall at the same time
<alexyk> how can I supply a type signature before or with the function definition in .ml? or are they preferred in .mli?
<hcarty> alexyk: .mli is generally preferred, but you can either include a signature in the .ml or provide them inline (let f (x : int) : int = x + 2)
<alexyk> hcarty: if I provide .mli, will it be automatically found by the compiler when compiling .ml?
<hcarty> alexyk: I think so, but I'm not 100% certain. ocamlbuild will pick it up, and I generally use that.
<hcarty> alexyk: You may need to compile the .mli in to a .cmi first with ocamlc
<hcarty> alexyk: I think it's covered in the manual
<alexyk> ok
iratsu has joined #ocaml
_andre has quit [Quit: *puff*]
<alexyk> why isn't there an Enum.hd?
<bitbckt> peek? get?
<alexyk> how do I make an Enum from List?
<hcarty> alexyk: Check out the Batteries API reference: http://thelema.github.com/batteries-included/hdoc/
<hcarty> alexyk: Many of the modules have .enum and .of_enum functions
<alexyk> ah ok
ulfdoz has quit [Ping timeout: 240 seconds]
travisbrady has joined #ocaml
<alexyk> so there's no standard merge operation on Hashtbl?
<bitbckt> Not that I'm aware of.
<alexyk> bitbckt: are you related to bitbucket.org? :)
<bitbckt> alexyk: Not at all. I use Git.
<alexyk> bitbckt: ok :)
<bitbckt> FWIW, I had the name first. :P
<alexyk> bitbckt: and shorter :)
<bitbckt> Quite.
alexyk has quit [Quit: alexyk]
alexyk has joined #ocaml
ccasin has quit [Quit: Leaving]
valross has joined #ocaml
<alexyk> so Hashtbl.enum will work lazily, and Enum.peek Hashtbl.enum will give me a pair in constant time, without incurring much memory cost, right?
iratsu has quit [Ping timeout: 240 seconds]
seanmcl has quit [Ping timeout: 245 seconds]
<alexyk> how do you return a record with one field updated?
iratsu has joined #ocaml
<adrien> alexyk: use the syntax : { your_old_record with field = updated_value }
<adrien> makes sense?
<alexyk> yep, thx
<alexyk> how do I create a range [first..last] -- either Enum or List?
Yoric has quit [Quit: Yoric]
<adrien> Enum, I don't know, and for List, I don't think there's anything already built (but maybe in Batteries' List, I really don't know)
<adrien> what for btw,
<adrien> ?
<alexyk> in general! :) got it: Enum.seq 1 succ (fun x -> x < 10) |> List.of_enum;;
jgrozave has joined #ocaml
<jgrozave> I was interested in installing godi on windows (the mingw version) but have been hitting some problems
<adrien> I'm not a Batteries user (yet) so I don't know, and I really should go to bed :P
<alexyk> adrien: good night! :)
<jgrozave> does anyone here have any experience installing godi on windows?
<adrien> alexyk: also, you can replace (fun x -> x < 10) with the shorter: ((>) 10) (but it's not necessarily more readable and may be easier to get wrong/mistype/...)
<adrien> jgrozave: why do you want godi? I mean, if the packages/libraries were provided differently, would it be ok?
<jgrozave> yeah that would be fine
<jgrozave> my goal is to use batteries on windows
alexyk has quit [Quit: alexyk]
<jgrozave> adrien: I've tried finding a way to get Batteries installed on windows but I've only seen mentions of using godi
<adrien> you really don't need godi
<adrien> I haven't followed batteries' devel recently but it shouldn't have too many deps and shouldn't be a problem on windows
<adrien> gah, I can't think anymore, I really need to go to bed
<jgrozave> adrien: hmm i'm not sure why I started trying to install godi
<adrien> you should try without, should work quite well
<jgrozave> it seems using batteries directly might be simpler.
<jgrozave> yeah, that's just what I did on my linux machine and that worked quite well. force of habit i suppose
<jgrozave> adrien: well don't let me keep you up :P you've at least pushed me in the right direction. so thanks
<adrien> heh, good luck ;-)
<adrien> and if you have any questions, don't hesitate, and we'll be quite interested in how it goes
<travisbrady> What problem do polymorphic variants solve?
<adrien> they "weaken" the type system to make it humanly possible to use it and rely on it in more situations
<adrien> but I can't put more words/explanations on that right now, I really should be sleeping /o\ 
thrasibule has joined #ocaml
ikaros_ has quit [Quit: Leave the magic to Houdini]
alexyk has joined #ocaml
murph has joined #ocaml
alexyk has quit [Quit: alexyk]
<travisbrady> adrien: haha, thank you.
alexyk has joined #ocaml
iratsu has quit [Ping timeout: 240 seconds]
iratsu has joined #ocaml
Dawrk-Side has joined #ocaml
Dawrk-Side has quit [Client Quit]
Dead_Dreamer has joined #ocaml
iratsu has quit [Read error: Operation timed out]
krankkatze has quit [Ping timeout: 265 seconds]
clog has quit [Ping timeout: 265 seconds]
clog has joined #ocaml
krankkatze has joined #ocaml
diml has joined #ocaml
<alexyk> how do I specify a type of a function right before it?
<alexyk> in .ml
hcarty has joined #ocaml
<alexyk> hey hcarty : how do I update two fields in a record?
mbishop has joined #ocaml
coucou747 has joined #ocaml
mfp has joined #ocaml
alexyk has quit [Quit: alexyk]
iratsu has joined #ocaml