caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] re: swig like library...
@ 2004-04-26 22:45 Micha
  0 siblings, 0 replies; 3+ messages in thread
From: Micha @ 2004-04-26 22:45 UTC (permalink / raw)
  To: caml-list

ok, now there are forklift, idl and swig. swig seems to be the only lib which 
can create an interface to a c++ lib. The IDL docu mentions c++ but only with 
com; or did I misunderstand something?
So to interface to a c++ lib I first have to create the relevant c-lib and 
then with idl or forklift the rest, or use swig from the beginning, or by 
hand, which seems much to type :-)

Has someone experiences interfacing to a c++ - lib? 

 Michael

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [Caml-list] Re: swig like library...
@ 2004-04-27  5:24 Jeff Henrikson
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Henrikson @ 2004-04-27  5:24 UTC (permalink / raw)
  Cc: caml-list

> Any interest in an Ocaml based SWIG like tool?

When I put on hiatus my Forklift development, I was thinking a lot about the following problem, which I made up to focus my path.

==> Make precise the relationship between the immutable C header files and the assignments of stubs, HLL types, and HLL modules.  In order to separate pattern matching from stub generation, output an abstract representation.  Suppose we choose IDL as that abstract representation.  Then give a pattern matching system that filters C header ASTs according to pattern rules and generates both a IDL file to make them CORBA callable, and C function wrappers to make them conform to the CORBA->C language mapping.

Here is the CORBA->C language mapping:

http://www.omg.org/technology/documents/formal/corba_language_mapping_specs.htm

Hey, as a bonus, if we solve this problem we build a machine for making arbitrary C code easily CORBA callable, a useful ability in its own right.  I have seen requests on CORBA lists for solutions to this problem.

Last time I tried to work on this, I got very frustrated just trying to find a IDL that would compile on Darwin.  Geesh.  I gues one of the things that happens when you build a layer that has an ability to translate every last type is you make a monster in its configure script.


Jeff Henrikson



-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: [Caml-list] swig like library...
@ 2004-04-24 17:12 Brandon J. Van Every
  2004-04-24 20:11 ` skaller
  0 siblings, 1 reply; 3+ messages in thread
From: Brandon J. Van Every @ 2004-04-24 17:12 UTC (permalink / raw)
  To: caml

skaller wrote:
>
> However SWIG isn't very satisfactory.. I'm thinking of
> writing an Ocaml program for building wrappers.

What is so unsatisfactory about SWIG that you would start a new effort
and avoid improving SWIG?  SWIG provides interop between a number of
different languages, and as such is valuable to the open source
community.  What do you find so objectionable that you would Balkanize
things further?

What kinds of wrappers are you interested in?  A lot of people want C++
wrappers.  People who are shopping for new languages are generally stuck
with C++ and want a migration path.  Also various industrial APIs will
remain C++ for the forseeable future.


Cheers,                         www.indiegamedesign.com
Brandon Van Every               Seattle, WA

20% of the world is real.
80% is gobbledygook we make up inside our own heads.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.643 / Virus Database: 411 - Release Date: 3/25/2004

-------------------
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


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

end of thread, other threads:[~2004-04-27  5:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-26 22:45 [Caml-list] re: swig like library Micha
  -- strict thread matches above, loose matches on Subject: below --
2004-04-27  5:24 [Caml-list] " Jeff Henrikson
2004-04-24 17:12 [Caml-list] " Brandon J. Van Every
2004-04-24 20:11 ` skaller
2004-04-25  1:24   ` art yerkes
2004-04-25  2:56     ` skaller
2004-04-27  5:02       ` [Caml-list] " Jeff Henrikson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).