Re: [Caml-list] Issue to compile a program with camlp4 in OCaml 3.10.0

2008-09-22 Thread Gabriel Kerneis
On Mon, Sep 22, 2008 at 10:41:52PM +0200, David MENTRE wrote: > ocamlopt -pp "camlp4o pa_op.cmo" -I src -c src/common.ml > File "src/common.ml", line 5, characters 101-102: > Parse error: "in" expected after [binding] (in [expr]) > Preprocessor error > > let heap_size () : flo

Re: [Caml-list] thousands of CPU cores

2008-09-22 Thread kirillkh
What about the standard library being single-threaded? How hard will it be to adjust it for multiple threads, will OCaml maintainers even agree to such adjustments and how will this affect performance? On Mon, Sep 22, 2008 at 10:03 PM, Jon Harrop < [EMAIL PROTECTED]> wrote: > On Monday 22 Septemb

[Caml-list] Dum: dumper module with cycle detection

2008-09-22 Thread Martin Jambon
Hi list, Wink.com is releasing a module called Dum for dumping data. It derives from Dumper by Richard W Jones (now Std.dump in Extlib) and from Size by Jean-Christophe Filliatre. http://oss.wink.com/dum/ The main improvement over the original Dumper is that shared values and therefore cycl

[Caml-list] Issue to compile a program with camlp4 in OCaml 3.10.0

2008-09-22 Thread David MENTRE
Hello, I'm trying to compile an OCaml program I haven't written. I'm compiling it on an Ubuntu 8.04, OCaml 3.10.0. The compilation fails with following error: """ ocamlopt -pp "camlp4o pa_op.cmo" -I src -c src/common.ml File "src/common.ml", line 5, characters 101-102: Parse

Re: [Caml-list] thousands of CPU cores

2008-09-22 Thread David Teller
On Mon, 2008-09-22 at 20:03 +0100, Jon Harrop wrote: > Sure thing. I wrote to the guys doing this work a couple of times and they > were very friendly. Apparently they are currently ironing out the last of the > bugs before going public. > > I don't think I am the only person struggling to conta

Re: [Caml-list] Portable PNG exporter

2008-09-22 Thread Florent Monnier
> For reference, I've found the easiest way to export PNGs (in any > language, not just OCaml) is to use netpbm. Probably with any language, but perhaps not any OS ? > Simply fork pnmtopng > using Unix.open_process_out and write a PPM file.  A PPM file

Re: [Caml-list] thousands of CPU cores

2008-09-22 Thread Jon Harrop
On Monday 22 September 2008 08:51:03 Alan Schmitt wrote: > On 21 sept. 08, at 23:41, Jon Harrop wrote: > > The good news is that the parallel GC is coming along nicely and > > this will be a solved problem before long... :-) > > I'd love to hear more about this. Could you develop? Sure thing. I wr

Re: [Caml-list] Portable PNG exporter

2008-09-22 Thread Daniel Bünzli
Le 22 sept. 08 à 16:59, Janne Hellsten a écrit : - The trick is to save out uncompressed PNGs. This gets rid of the zlib dependency. Although the files get bigger, uncompressed .png is still very useful. and you can compress them later with pngcrush [1]. Daniel [1] http://en.wikipedia.o

Re: [Caml-list] Portable PNG exporter

2008-09-22 Thread Janne Hellsten
As my tiny PNG exporter got more attention than I anticipated, let me clarify a couple of things: - My OCaml code is based on a C function written by Tero Karras. I merely rewrote his masterpiece in OCaml. The C version is available here: http://code.google.com/p/aihiot/source/browse/tru

Re: [Caml-list] What's the purpose of the static library?

2008-09-22 Thread Stéphane Glondu
bill yan a écrit : I noticed there are some static libraries(.a) installed with ocaml, for example, /usr/lib/ocaml/bigarray.a. What's the purpose of those static libraries? Thanks a lot. They contain (natively) compiled OCaml code. An OCaml library compiled in native mode (usually) consists of

Re: [Caml-list] thousands of CPU cores

2008-09-22 Thread Alan Schmitt
On 21 sept. 08, at 23:41, Jon Harrop wrote: The good news is that the parallel GC is coming along nicely and this will be a solved problem before long... :-) I'd love to hear more about this. Could you develop? Alan PGP.sig Description: This is a digitally signed message part