Also, don't compress Marshal's output, it'll suck. Marshal already does RLE compression IIRC (that might help for situations constrained by memory-bandwidth)...
13553
Adrien
camaradetux
May 19, 2012 1:26 am
There are libarchive bindings by Sylvain Le Gall on the forge too. They're partial but already work for reading iirc, and writing shouldn't be a lot of work...
13552
Richard W.M. Jones
rwmjones
May 18, 2012 10:14 pm
... If it's for Unix, then just open a pipe to or from an external compression filter, eg: open Unix open Printf let () = let output = "output.xz" in let chan...
13551
Ashish Agarwal
ashish_a1975
May 16, 2012 1:42 pm
On Wed, May 16, 2012 at 5:00 AM, Gabriel Scherer ... Yes, thanks for the correction. ... [Non-text portions of this message have been removed]...
13550
Dario Teixeira
darioteixeira
May 16, 2012 9:49 am
Hi, ... Indeed. This cannot be stressed enough: Menhir is not only better than ocamlyacc in the sense that it is more powerful and it has more features, but...
13549
Gabriel Scherer
ga_sche
May 16, 2012 9:02 am
Menhir is noticeably better than ocamlyacc; it does not replace ocamllex (I sometimes use ulex, I think it helps to parse UTF8 input). ...
13548
Francois Berenger
f_berenger
May 16, 2012 2:43 am
... There are also ocamllex and ocamlyacc: http://caml.inria.fr/pub/docs/manual-ocaml/manual026.html...
13547
Ashish Agarwal
ashish_a1975
May 16, 2012 2:22 am
On Tue, May 15, 2012 at 7:27 PM, jr <jrvelman@...> wrote: ** ... I'm not a big fan of lex/yacc either, but if you do need to go that route keep Menhir in...
13546
jr
jrvelman
May 15, 2012 11:27 pm
... A quick google search gave me PCL, Plank, Mparser, and ocaml-parsec. I hadn't looked into any of them further than the google headlines. Further look...
13545
Sergei Steshenko
sergstesh
May 15, 2012 5:52 am
... Even though I grew up with traditional books, I do not understand fascination with them. Electronic documents (unless they are just pixel scans) allow...
13544
Cedric Cellier
rixed
May 15, 2012 5:40 am
There's some work going on around batteries qtest program. See for instance this wiki page on batteries tests: ...
13543
Francois Berenger
f_berenger
May 15, 2012 2:12 am
Hello, What's the gold standard in OCaml to read/write compressed files? I found this: http://forge.ocamlcore.org/projects/camlzip/ Wouldn't it be possible...
13542
Francois Berenger
f_berenger
May 15, 2012 1:48 am
Hello, What's the gold standard in OCaml to have unit test as comments in source code in order for a tool to automatically extract them and generate a test...
13541
Francois Berenger
f_berenger
May 15, 2012 12:45 am
... Even just an "OCaml pocket reference" a la O'Reilly would be nice......
13540
jr
jrvelman
May 14, 2012 11:30 pm
Thanks to Oliver and Matthieu. The manual, 18.8 had exactly the example I needed to get going. When I tried it "out of the box" I got a warning about...
13539
Ashish Agarwal
ashish_a1975
May 14, 2012 6:08 pm
... Right now there are two viable standard libraries, Batteries and Core. Both are good, and I end up using both in most of my projects. Core is undergoing...
13538
oliver
oliver@...
May 13, 2012 5:44 pm
... [...] Ocaml also is a niche choice ;-) Ciao, Oliver...
13537
Matthieu Dubuget
dubuget
May 13, 2012 5:34 pm
... See chapter 18 of the manual. One very good document is the excellent tutorial from Florent Monnier: ...
13536
jr
jrvelman
May 13, 2012 4:27 pm
I've just started to dig into OCaml, and so far I like it. By way of background, I've done a fair amount of Haskell programming (for my own purposes, not for...
13535
Vu Ngoc San
san.vungoc
May 12, 2012 6:04 am
thanks a lot. I will have a look. San ... [Non-text portions of this message have been removed]...
13534
Vu Ngoc San
san.vungoc
May 12, 2012 6:04 am
thanks for the link. I understand the point, however in my example there is no ambiguity: a= ref 1 has a well-defined type, cannot be changed afterwards. I...
13533
Gabriel Scherer
ga_sche
May 11, 2012 2:38 pm
For maybe a more in-depth understand of the question, you should have a look at the research paper on the relaxed value restriction (btw., the last example of...
13532
Philippe Veber
philippeveber
May 11, 2012 1:40 pm
See http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora026.html section "Polymorphism and Modifiable Values" ph. 2012/5/11 san.vu-ngoc...
13531
san.vu-ngoc
san.vungoc
May 11, 2012 12:35 pm
Hi I'm curious: the following functions have a different type: why ? # let a = 1 in fun f -> f a;; - : (int -> 'a) -> 'a = # let a = ref 1 in fun f -> f !a;; -...
13530
Sylvain Le Gall
gildor16478
May 10, 2012 8:26 pm
... What about flattr ? http://flattr.com/ Although, after second thought, I just need someone to get money for me and buy stuff that I will indicate for the...
13529
Gabriel Scherer
ga_sche
May 10, 2012 8:17 am
... I have submitted a bugreport to change this in the manual. http://caml.inria.fr/mantis/view.php?id=5612 I will probably try to propose a patch for it...
13528
danbensen@...
danbensen...
May 10, 2012 6:03 am
... The parentheses are required because function application is left associative. There's a precedence and associativity table here: ...
13527
Francois Berenger
f_berenger
May 10, 2012 12:51 am
... Roberto di cosmo's IRILL maybe: http://www.irill.org/ Also, for OASIS, as the project is under LGPL, maybe you can get it accepted as an official FSF...
13526
Michael Erdmann
merdmann9999
May 9, 2012 7:02 pm
... May be part of my missunderstanding comes from the ocaml reference manual. In the introduction you will find: ... # square(sin pi) +. square(cos pi);; ... ...
13525
Sylvain Le Gall
gildor16478
May 9, 2012 11:27 am
Hi, 2012/5/9 Francois Berenger <berenger@...> ... I think it is a good idea. Though, OASIS itself is just time consuming for me. I'd prefer to receive...