Re: [Caml-list] thousands of CPU cores

2008-09-23 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 September

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

2008-09-23 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 () : float = [...]

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

2008-09-23 Thread Сергей Плаксин
On Mon, 2008-09-22 at 22:41 +0200, David MENTRE wrote: 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

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

2008-09-23 Thread bill yan
Hi Stéphane, Thanks a lot for your information. And we'd like to know more about the OCaml library architectures, like on what situation dynamic libraries are used, and when static libraries are used, and so on.. Really appreciate if you could point me to a document that can help on this

[Caml-list] CSML: now under GNU/Linux + Mono

2008-09-23 Thread Alain Frisch
Hello all, There is a new release of CSML that works under GNU/Linux on top of Mono (tested with Mono 1.2.4). Even the Windows Forms example works fine. http://www.lexifi.com/csml/ The CSML compiler produces the same output for the Windows/.Net and the Linux/Mono version (there is a tiny

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

2008-09-23 Thread Richard Jones
On Tue, Sep 23, 2008 at 05:09:58PM +0800, bill yan wrote: Thanks a lot for your information. And we'd like to know more about the OCaml library architectures, like on what situation dynamic libraries are used, and when static libraries are used, and so on.. Really appreciate if you could

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

2008-09-23 Thread Richard Jones
On Mon, Sep 22, 2008 at 10:41:52PM +0200, David MENTRE wrote: 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. 3.10.0 contains quite a few camlp4 parsing bugs which are fixed in version 3.10.2. (But unfortunately I still have to

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

2008-09-23 Thread Daniel Bünzli
Le 23 sept. 08 à 11:09, bill yan a écrit : And we'd like to know more about the OCaml library architectures, like on what situation dynamic libraries are used, and when static libraries are used, and so on.. This depends on what _you_ want. The tradeoffs of dynamic vs static linking are

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

2008-09-23 Thread Alain Frisch
Richard Jones wrote: File: library.cma -- This is just a set of *.cmo files combined together. Created by: 'ocamlc -a' Used: Same as for module.cmo .cma files also contain extra linking directives like references to C libraries. Files: module.o and module.cmx

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

2008-09-23 Thread David MENTRE
Hello Сергей, On Tue, Sep 23, 2008 at 10:08, Сергей Плаксин [EMAIL PROTECTED] wrote: Here is the beginning of the relevant file: (** Common utility functions. *) (* space *) let heap_size () : float = float_of_int (Gc.stat ()).Gc.heap_words *. float_of_int (Sys.word_size / 8) (* in

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

2008-09-23 Thread David MENTRE
Hello Richard, On Tue, Sep 23, 2008 at 12:18, Richard Jones [EMAIL PROTECTED] wrote: Best to upgrade if you can. That's the answer I feared. ;-) As next Ubuntu should be released in a few weeks and has OCaml 3.10.2, I'll give it a try. Yours, d. ___