[Caml-list] specify include directories with ocamlbuild

2010-08-24 Thread Hendrik Tews
Hi, in 3.11 I used : I(+camlp4/Camlp4Parsers) in _tags to specify that ocamlbuild should add -I +camlp4/Camlp4Parsers when compiling some_file. In 3.12 this gives Warning: tag "I" does not expect a parameter, but is used with parameter "+camlp4/Camlp4Parsers" What is the recommended

[Caml-list] ocamlbuild: full path for camlp4 preprocessors?

2010-08-24 Thread Hendrik Tews
Hi, I have another ocamlbuild question: How can I tell ocamlbuild to use the full path for the camlp4 preprocessors? I just compiled ocaml 3.12 to test if it compiles my software. So I do /soft/ocaml-3.12.0/bin/ocamlbuild target.native and ocamlbuild is clever enough to prefix all commands w

Re: [Caml-list] specify include directories with ocamlbuild

2010-08-24 Thread Nicolas Pouillard
On Tue, 24 Aug 2010 09:31:52 +0200, Hendrik Tews wrote: > Hi, Hi, > in 3.11 I used > >: I(+camlp4/Camlp4Parsers) > > in _tags to specify that ocamlbuild should add > -I +camlp4/Camlp4Parsers when compiling some_file. In 3.12 this > gives > > Warning: tag "I" does not expect a parame

Re: [Caml-list] caml_copy_string

2010-08-24 Thread Florent Monnier
Le lundi 23 août 2010 22:24:48, Romain Beauxis a écrit : > Le lundi 23 août 2010 07:09:05, Florent Monnier a écrit : > > an alternative method is to provide a string from ocaml to c then c fills > > this buffer, then you can save allocations by reusing the same buffer, > > > see: > This is a good

Re: [Caml-list] caml_copy_string

2010-08-24 Thread Till Varoquaux
On Tue, Aug 24, 2010 at 10:21 AM, Florent Monnier wrote: > Le lundi 23 août 2010 22:24:48, Romain Beauxis a écrit : >> Le lundi 23 août 2010 07:09:05, Florent Monnier a écrit : >> > an alternative method is to provide a string from ocaml to c then c fills >> > this  buffer, then you can save alloc

Re: [Caml-list] caml_copy_string

2010-08-24 Thread Anil Madhavapeddy
On 24 Aug 2010, at 15:52, Till Varoquaux wrote: > On Tue, Aug 24, 2010 at 10:21 AM, Florent Monnier > wrote: >> Le lundi 23 août 2010 22:24:48, Romain Beauxis a écrit : >>> Le lundi 23 août 2010 07:09:05, Florent Monnier a écrit : an alternative method is to provide a string from ocaml to c

Re: [Caml-list] caml_copy_string

2010-08-24 Thread Romain Beauxis
Le mardi 24 août 2010 10:22:48, Anil Madhavapeddy a écrit : > That's not quite right; "noalloc" calls do not have the OCaml runtime in a > functioning state at all since the instructions to set it up are not > emitted by ocamlopt. > > See [1] for Xavier Leroy's explanation on the matter, which I'v

[Caml-list] how to call an OCaml library from C/C++ ?

2010-08-24 Thread Yoann Padioleau
Hi, Is there a way to call OCaml library from a C/C++ program without the C++ program knowing it's OCaml code ? I mean I can not touch the main of the C++ program so it has to be completely transparent and it would be good if each call to the ocaml library once finished free all the memory it wa

Re: [Caml-list] how to call an OCaml library from C/C++ ?

2010-08-24 Thread Yoann Padioleau
On Aug 24, 2010, at 10:50 AM, Yoann Padioleau wrote: > > Hi, > > Is there a way to call OCaml library from a C/C++ program without the C++ > program > knowing it's OCaml code ? I mean I can not touch the main of the C++ program > so it has to be completely transparent and it would be good if e

[Caml-list] Job offer at MLstate

2010-08-24 Thread Mathieu Baudet
Dear all, It looks like the Ocaml industry is doing very well and as a member of the OCaml consortium we are delighted ! We also would like to propose a new job offer in Paris, related to Web programming in functional languages. MLstate is a 25+ people startup specialized in web applications a

[Caml-list] Dynlink native library for ocaml-mingw32

2010-08-24 Thread Paul Steckler
I have a Fedora 11 instance where I've installed mingw32-ocaml-3.11.0-0.16.beta1.fc11.noarch to create Windows executables. I've mentioned issues with the native-code threading libraries in that distribution before on this list. Recently, I added calls into the dynlink library in my code (see my

[Caml-list] [ANNOUNCE] llpp v3

2010-08-24 Thread malc
Hello, New version of llpp is available at [1] new features include: * Outline (aka Table of contents) mode (including quick search and narrowing) * Bookmarks * Link highlighting * Windows and Mac OS X "support" * Some important bugs were fixed upstream in MuPDF[2] * Added helper script which t

[Caml-list] Re: Segfaults with Dynlink with OCaml 3.11

2010-08-24 Thread Paul Steckler
On Mon, Aug 23, 2010 at 8:57 PM, Paul Steckler wrote: > I'm getting segmentation faults when using dynamically linked native > code in 64-bit OCaml 3.11 running on Linux (Fedora 12 x64). Many thanks to all who gave useful advice on tracking down this problem. We have three chunks of C code we're

RE: [Caml-list] Dynlink native library for ocaml-mingw32

2010-08-24 Thread David Allsopp
Paul Steckler wrote: > I have a Fedora 11 instance where I've installed > mingw32-ocaml-3.11.0-0.16.beta1.fc11.noarch to create Windows > executables. I've mentioned issues with the native-code threading > libraries in that distribution before on this list. > > Recently, I added calls into the dy