gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
philed has quit [Ping timeout: 240 seconds]
mnabil has quit [Ping timeout: 240 seconds]
infoe has joined #ocaml
alexyk has joined #ocaml
LionMadeOfLions has joined #ocaml
LionMadeOfLions has left #ocaml []
alexyk has quit [Read error: Connection reset by peer]
LionMadeOfLions has joined #ocaml
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
lamawithonel has quit [Ping timeout: 255 seconds]
alexyk has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
LionMadeOfLions has left #ocaml []
smerz has quit [Quit: Ex-Chat]
alexyk has quit [Read error: Connection timed out]
alexyk has joined #ocaml
alexyk has quit [Ping timeout: 240 seconds]
alexyk has joined #ocaml
Amorphous has quit [Ping timeout: 272 seconds]
Amorphous has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
alexyk has joined #ocaml
alexyk_ has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk_ is now known as alexyk
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
oriba has quit [Quit: Verlassend]
khia0 has joined #ocaml
khia0 has left #ocaml []
alexyk has quit [Quit: alexyk]
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
ymasory_ has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
oriba has joined #ocaml
oriba has quit [Remote host closed the connection]
ulfdoz has joined #ocaml
alexyk has joined #ocaml
ymasory_ has quit [Ping timeout: 272 seconds]
alexyk has quit [Read error: Connection reset by peer]
jamii_ has joined #ocaml
almaisan-away is now known as al-maisan
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
hto has joined #ocaml
jamii_ is now known as jamii
jamii has quit [Quit: Leaving]
jamii_ has joined #ocaml
jamii_ is now known as jamii
jamii is now known as jamii_
jamii_ is now known as jamii
groovy2shoes has quit [Quit: groovy2shoes]
jamii has quit [Quit: Leaving]
jamii has joined #ocaml
Yoric has joined #ocaml
ymasory_ has joined #ocaml
<jamii> thelema: this is really confusing
<jamii> # List.of_enum (Rand.enum Rand.int 10);;
<jamii> Exception: BatEnum.No_more_elements.
<jamii> But List.of_enum calls Enum.fold which ends: try loop () with No_more_elements -> !acc
<jamii> for what its worth, Rand.enum is:
<jamii> let enum rand size =
<jamii> Enum.init (Random.int size) (fun _ -> rand size)
<jamii> But if I define Rand.enum in the toplevel in exactly the same way it works fine
ygrek has joined #ocaml
Yoric has quit [Quit: Yoric]
<jamii> Removing the batteries .ocamlinit fixes the problem
ymasory_ has quit [Read error: Operation timed out]
edwin has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
<jamii> thats a really weird bug
ttamttam has joined #ocaml
Vinnipeg has joined #ocaml
Yoric has joined #ocaml
al-maisan is now known as almaisan-away
<kaustuv> Was compressed inputs removed from Batteries and if so are there any plans to add it back?
<kaustuv> Also, where can I find the archives for caml-list in 2011?
<jamii> the type of value_printer really should be:
<jamii> type 'a t = bool -> 'b BatInnerIO.output -> 'a -> unit
<jamii> but then you wouldnt be able to put a printer in a record
<jamii> but as is you cant print to a string
<jamii> :(
<jamii> what breaks if existential types are allowed in records?
<kaustuv> jamii: You can safely cast an 'a output to a unit output
<jamii> kaustuv: good point
<jamii> obj away
<jamii> i was using warp_out to work around it
<jamii> *wrap_out
_andre has joined #ocaml
sgnb has quit [Remote host closed the connection]
sgnb has joined #ocaml
<kaustuv> jamii: actually take a look at BatInnerIO.cast_output (iirc)
<jamii> kaustuv: thanks
ikaros has joined #ocaml
jonathandav has joined #ocaml
mikemc has joined #ocaml
<kaustuv> mfp: Thanks to your insight about array indexing earlier. I tried to see if pointer-based updates could be added to either the OCaml or the Haskell version, but only succeeded in (very ugly) Haskell. Which is back in the lead as a result. Updated stats here: http://www.lix.polytechnique.fr/~kaustuv/misc/incr_uarray/
avsm has joined #ocaml
almaisan-away is now known as al-maisan
al-maisan is now known as almaisan-away
eaburns has joined #ocaml
ygrek has joined #ocaml
decaf has quit [Remote host closed the connection]
ftrvxmtrx has quit [Quit: Leaving]
LeNsTR has joined #ocaml
BiDOrD has quit [Quit: BiDOrD]
BiDOrD has joined #ocaml
jamii has quit [Ping timeout: 264 seconds]
ygrek has quit [Ping timeout: 240 seconds]
munga has joined #ocaml
<munga> hello. I'm looking for a cupt expert. Is there a way to pass to cupt a config file the same way I can do for apt-get setting APT_CONFIG ?
<munga> upsssss
<munga> :)
ftrvxmtrx has joined #ocaml
almaisan-away is now known as al-maisan
smerz has joined #ocaml
al-maisan is now known as almaisan-away
boscop has joined #ocaml
munga has quit [Ping timeout: 260 seconds]
almaisan-away is now known as al-maisan
ttamttam has quit [Remote host closed the connection]
mnabil has joined #ocaml
Edward__ has joined #ocaml
Edward__ has quit [Ping timeout: 240 seconds]
munga has joined #ocaml
Edward__ has joined #ocaml
Vinnipeg has quit [Remote host closed the connection]
mnabil has quit [Ping timeout: 246 seconds]
mnabil has joined #ocaml
ftrvxmtrx has quit [Read error: Connection reset by peer]
ftrvxmtrx_ has joined #ocaml
alexyk has joined #ocaml
al-maisan is now known as almaisan-away
ftrvxmtrx_ has quit [Read error: Connection reset by peer]
ftrvxmtrx_ has joined #ocaml
alexyk has quit [Quit: alexyk]
alexyk has joined #ocaml
alexyk has quit [Client Quit]
decaf has joined #ocaml
Vinnipeg has joined #ocaml
mnabil has quit [Remote host closed the connection]
ymasory_ has joined #ocaml
jamii has joined #ocaml
Edward__ has quit []
jamii has quit [Client Quit]
LeNsTR has quit [Quit: LeNsTR]
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
LeNsTR has joined #ocaml
LeNsTR has quit [Changing host]
LeNsTR has joined #ocaml
LeNsTR has quit [Read error: Connection reset by peer]
oriba has joined #ocaml
ymasory_ has quit [Ping timeout: 246 seconds]
ccasin has joined #ocaml
LeNsTR has joined #ocaml
LeNsTR has quit [Changing host]
LeNsTR has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
avsm has joined #ocaml
alexyk has joined #ocaml
ftrvxmtrx_ has quit [Quit: Leaving]
alexyk has quit [Read error: Connection reset by peer]
Yoric has quit [Quit: Yoric]
DimitryKakadu has joined #ocaml
alexyk has joined #ocaml
LeNsTR has quit [Read error: Connection reset by peer]
LeNsTR has joined #ocaml
srcerer has joined #ocaml
smerz has quit [Quit: Ex-Chat]
srcerer has quit [Read error: Connection reset by peer]
srcerer has joined #ocaml
alexyk has quit [Quit: alexyk]
ulfdoz_ has joined #ocaml
ymasory_ has joined #ocaml
ulfdoz has quit [Ping timeout: 250 seconds]
ulfdoz_ is now known as ulfdoz
drunK has joined #ocaml
ymasory_ has quit [Ping timeout: 240 seconds]
munga has quit [Ping timeout: 240 seconds]
DimitryKakadu has quit [Remote host closed the connection]
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
ftrvxmtrx has joined #ocaml
alexyk has joined #ocaml
alexyk has quit [Read error: Connection reset by peer]
alexyk has joined #ocaml
alexyk has quit [Client Quit]
Yoric has joined #ocaml
_andre has quit [Quit: leaving]
eye-scuzzy has joined #ocaml
ymasory_ has joined #ocaml
<NaCl> ocamlopt statically links against the ocaml libraries, right?
<mfp> NaCl: yes, ocamlopt uses static linking
<NaCl> that explains the 160K "Hello world"
<NaCl> kk, thanks
<mfp> NaCl: you can bring hello world down to ~8 Kb IIRC with ld.ocaml
* NaCl googles
<mfp> ... which is a like ld.so, for OCaml libs (.cmxs)
<NaCl> hey that's you. :P
<mfp> yes, not really trying to hide it :)
<NaCl> Interesting
<NaCl> I may take a look at it later
<NaCl> Oh, and is there any particular reason why "hello world" links against libm? :P
avsm has quit [Quit: Leaving.]
<mfp> NaCl: it links against the stdlib, which includes Pervasives and some float functions that require libm
<NaCl> ah
<NaCl> thanks
alexyk has joined #ocaml
ymasory_ has quit [Read error: Operation timed out]
napping has joined #ocaml
<adrien> btw, I found ld.so genuisly interesting and it also worked well for me
<adrien> mfp: any reason for its "low" version number?
ymasory_ has joined #ocaml
alexyk has quit [Quit: alexyk]
<mfp> adrien: I just usually start around 0.1.0... but AFAIK it works well and I don't remember any pending bugs/limitations, so it could be considered 1.0
<adrien> ok, good to know, thanks =)
<mfp> worked well with programs having lots of dependencies (such as ocsigen servers with ~ a dozen ocamlfind packages)
<napping> Is there any way to reload modules in the toplevel?
<adrien> currently, I have a 4.3MB executable with only a few hundred LOCs: lablgtk, react, ocamlnet, lwt...
<adrien> napping: like which module?
<napping> I've defined a module of interned symbols, and then while I was working on another module I realized one function was wrong
<napping> I'd already done #load "symbol.cmo", and then it complains about inconsistent assumptions if it's been recompiled
<napping> Maybe I'm using tuareg wrong
<adrien> maybe another call to #load would work but it's usually better to just restart the toplevel
<napping> What I've been doing is using ocamlbuild to get dependencies compiled, then using eval-buffer and eval-phrase to pick up edits to the module I'm working in
<adrien> and in some cases, I think you have to (I don't think you can #load unix.cma twice for instance)
<adrien> I see, unfortunately I'm using vim and can't really tell you if you have a "better" way to go
<napping> I've also got a .ocamlinit that preloads modules and installs printers, and a dummy toplevel program I target when I want everything rebuilt
<mrvn> seems to work fine here
<napping> Ah, it's only if I've changed the interface, or a file with no interface
<napping> Then I see "The files _build/symbol.cmo and _build/symbol.cmo disagree over interface Symbol"
<napping> okay, I thought it was worse
<napping> I guess I'll just put the #loads into a script I can #use, as long as the interfaces stay the same
ymasory_ has quit [Ping timeout: 255 seconds]
alexyk has joined #ocaml
alexyk has quit [Client Quit]
lpereira has joined #ocaml
Vinnipeg has quit [Remote host closed the connection]
alexyk has joined #ocaml
Yoric has quit [Quit: Yoric]
ymasory_ has joined #ocaml
edwin has quit [Remote host closed the connection]
ccasin has quit [Quit: Leaving]
ymasory_ has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]
elehack has quit [Quit: Leaving]
smerz has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
Edward__ has joined #ocaml