From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@inria.fr
Subject: Working around the brittle bindings problem
Date: Thu, 24 Jan 2008 21:40:06 +0000 [thread overview]
Message-ID: <200801242140.06785.jon@ffconsultancy.com> (raw)
Just occurred to me that one possible solution to our brittle bindings problem
might be to parameterize the whole library over the external calls that are
made. That could at least make the compiled code dependent only upon the
version of the OCaml compiler itself and not each separate library.
Is it possible to do this using a functor? I might have to wrap the entire
library in one giant functor but that would let the user apply the functor to
a suitable library module in order to obtain a working implementation. Am I
right in thinking that the result would depend only upon my interface and no
upon the library itself (e.g. LablGL)?
If this is correct then it is probably solvable. The next best solution would
be to open source the shim that automates this gore.
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e
next reply other threads:[~2008-01-24 23:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-24 21:40 Jon Harrop [this message]
2008-01-25 2:31 ` [Caml-list] " Jacques Garrigue
2008-01-25 4:10 ` Jon Harrop
2008-01-25 7:21 ` Alain Frisch
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=200801242140.06785.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--cc=caml-list@inria.fr \
/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