Browse thread
PIC
-
skaller
-
Xavier Leroy
- skaller
- Sven Luther
-
David Fox
-
Ker Lutyn
-
Nathaniel Gray
-
skaller
- Nathaniel Gray
-
skaller
-
Nathaniel Gray
-
Ker Lutyn
-
Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Nathaniel Gray <n8gray@g...> |
| Subject: | Re: [Caml-list] PIC |
On 1/3/06, skaller <skaller@users.sourceforge.net> wrote: > On Tue, 2006-01-03 at 15:27 -0800, Nathaniel Gray wrote: > > > Who wants to write an app without plugins these days? > > Who is willing to write applications that are unsound? > > Once Ocaml generates -fPIC it can be linked with a C wrapper > to make a shared library, and your mainline (or another > wrapped library) can embed a function that loads such > libraries with dlopen() and retrieves a record of functions, > then casts it to the expected type .. > voila, you have native code plugins. This could solve part of the problem, namely alleviating the need for recompiling the app for each plugin the user adds. However, given the OCaml team's indifference towards binary compatibility, trying to keep everybody on the same version of the compiler would be too restrictive to be practical. -n8 -- >>>-- Nathaniel Gray -- Caltech Computer Science ------> >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->