Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocaml shared libraries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Ocaml shared libraries
On Mon, 2004-05-17 at 16:09, Eric Stokes wrote:
> Hello All,
> 	As the director of a shop who is using Ocaml to do real work (yes I 
> know, research is more important :P),
> I would really like to be able to build a shared library out of code 
> that I have written in Ocaml,
> and link other Ocaml programs to it. 

You and me both. The Ocaml team is aware of this desire.
At least one obstacle appears to be that the x86 backend
does not generate relocatable code. I'm curious if the
'C' backend could be used for this purpose though??

> There are practical reasons for 
> wanting to do this, I write and maintain
> some rather large systems written in Ocaml. Currently, whenever I 
> update a library (not changing its interface),
> I need to recompile and reinstall the entire system. These problems I 
> can live with for now.

I cannot. My system has a fundamental requirement for self-extension
and high performance. Extensibility is possible with bytecode
but not native code.

> 	But... I also have "delusions" (or so I'm told). IMHO, Ocaml is fast 
> enough, and has enough good libraries
> in existence to create a climate where Ocaml software will slowly start 
> replacing software written in C.

	Yeah, you're deluded if you think performance and
quality have much to do with this .. just think about Java ..

>  I think that Ocaml is a very good 
> language (understatement) for building
> large reliable systems, and I would hate to see its growth be hampered 
> artificially by its lack of shared
> libraries.

	See Felix. I started off *mandating* the target
as a shared library. Static linkage was only added recently.
To a large extent this whole project is inspired by the inability
of Ocaml to build shared libraries and interface easily to C.

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners