Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* Working around the brittle bindings problem
@ 2008-01-24 21:40 Jon Harrop
  2008-01-25  2:31 ` [Caml-list] " Jacques Garrigue
  2008-01-25  7:21 ` Alain Frisch
  0 siblings, 2 replies; 4+ messages in thread
From: Jon Harrop @ 2008-01-24 21:40 UTC (permalink / raw)
  To: caml-list


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-25  7:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-24 21:40 Working around the brittle bindings problem Jon Harrop
2008-01-25  2:31 ` [Caml-list] " Jacques Garrigue
2008-01-25  4:10   ` Jon Harrop
2008-01-25  7:21 ` Alain Frisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox