Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-26 Thread Stefano Zacchiroli
On Tue, Nov 25, 2008 at 08:36:28PM +0100, Daniel Bünzli wrote: To make it easy to do this for a module or a library would it be possible to add a new default %.cmxs target in ocamlbuild before 3.11 is released (or is it already too late) ? Good idea. ... even though I doubt in practice it

Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-25 Thread Dario Teixeira
Hi, To make it easy to do this for a module or a library would it be possible to add a new default %.cmxs target in ocamlbuild before 3.11 is released (or is it already too late) ? Good point. It shouldn't be too late, since the changes are minimal and 3.11 is only at RC1 status... Cheers,

Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-22 Thread Stefano Zacchiroli
On Fri, Nov 21, 2008 at 11:29:12AM -0800, Dario Teixeira wrote: Therefore, the life of Ocsigen users would be greatly simplified if library writers and packagers (GODI, Debian, Fedora, etc) would add this little extra step of generating cmxs for each cmxa. This request only makes sense for

Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-22 Thread Daniel Bünzli
I think I'm missing something here. From the doc of Dynlink : No facilities are provided to access value names defined by the unit. Therefore, the unit must register itself its entry points with the main program, e.g. by modifying tables of functions. Thus just generating a cmxs for a

Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-22 Thread Alain Frisch
On 11/22/2008 4:00 PM, Daniel Bünzli wrote: Thus just generating a cmxs for a module won't allow you to use it dynamically. You'll need support from the module no ? Well, if your program is only composed of .cmxs plugins (libraries + your own program), then you can have a generic driver that

Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-21 Thread Richard Jones
Does ocamlfind support any of this? Since I'm now also cross- compiling OCaml, I've certainly come to appreciate findlib more than ever. Rich. -- Richard Jones Red Hat ___ Caml-list mailing list. Subscription management:

Re: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-21 Thread Dario Teixeira
Hi, Does ocamlfind support any of this? Since I'm now also cross-compiling OCaml, I've certainly come to appreciate findlib more than ever. Indeed it does. The current version of Ocsigen already makes use of this feature. However, because very few (none, actually, other than Ocsigen's)

RE: [Caml-list] Native dynlink on 3.11: a request for packagers

2008-11-21 Thread David Allsopp
On 22 November 2008 01:20 Jon Harrop wrote: On Friday 21 November 2008 23:45:34 Dario Teixeira wrote: Hi, Does ocamlfind support any of this? Since I'm now also cross-compiling OCaml, I've certainly come to appreciate findlib more than ever. Indeed it does. The current version