Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: Nathaniel Gray <n8gray@gmail.com>
Cc: Ker Lutyn <ker527mail@yahoo.com>, caml-list@inria.fr
Subject: Re: [Caml-list] PIC
Date: Wed, 04 Jan 2006 13:38:52 +1100	[thread overview]
Message-ID: <1136342332.17213.96.camel@rosella> (raw)
In-Reply-To: <aee06c9e0601031527v5ffc58edlec846488ed09c6ca@mail.gmail.com>

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.

Note even bytecode cannot *unload* plugins .. which is
needed to execute user scripts in web pages with 
long running server side scripting support. 

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


  reply	other threads:[~2006-01-04  2:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-25  2:07 PIC skaller
2005-12-27 10:03 ` [Caml-list] PIC Xavier Leroy
2005-12-27 12:23   ` skaller
2005-12-28  9:14   ` Sven Luther
2005-12-31 21:31   ` David Fox
2006-01-01 10:49     ` Ker Lutyn
2006-01-03 23:27       ` Nathaniel Gray
2006-01-04  2:38         ` skaller [this message]
2006-01-04  4:54           ` Nathaniel Gray

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1136342332.17213.96.camel@rosella \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    --cc=ker527mail@yahoo.com \
    --cc=n8gray@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox