From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA17232; Sat, 24 Apr 2004 21:19:57 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA11357 for ; Sat, 24 Apr 2004 21:19:56 +0200 (MET DST) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3OJJsjq023947 for ; Sat, 24 Apr 2004 21:19:55 +0200 Received: (qmail 9577 invoked from network); 24 Apr 2004 19:19:53 -0000 Received: from dsl081-145-152.chi1.dsl.speakeasy.net (HELO firebird) ([64.81.145.152]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 24 Apr 2004 19:19:53 -0000 Date: Sat, 24 Apr 2004 14:16:45 -0500 From: art yerkes To: "HENRIKSON, JEFFREY" Cc: micha-1@fantasymail.de, caml-list@inria.fr Subject: Re: [Caml-list] swig like library... Message-Id: <20040424141645.35c88843.ayerkes@speakeasy.net> In-Reply-To: <9410EC84C0872141B27A2726613EF45D02A52D16@psmrdcex01.psm.pin.safeco.com> References: <9410EC84C0872141B27A2726613EF45D02A52D16@psmrdcex01.psm.pin.safeco.com> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; yerkes:01 ayerkes:01 caml-list:01 swig:01 2004:99 henrikson:01 swig:01 wrappers:01 unmodified:01 ocaml:01 ocaml:01 speakeasy:01 patches:02 module:03 module:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 23 Apr 2004 08:48:14 -0700 "HENRIKSON, JEFFREY" wrote: > It attempts to be a more well behaved SWIG. To my knowledge, I started > the first attempt at a SWIG library. I got frustrated with the > infrastructure and quit. Since then there have been at least 2 other > attempts for ocaml swig support and recently I noticed there an official > "ocaml swig". Anyway, you can read about my complaints and my > alternatives. I chose to throw in with the SWIG project mainly because I had a C++ component library and no way of automatically wrapping it (About 200 classes, 800 methods). I did not want to produce another wrapper generator that takes a non-C++ input, nor do the wrapping by hand. SWIG does have infrastructure problems. It's really meant for generating wrappers for typeless languages. My first attempt at the SWIG module was not general enough, which is why I took the approach of making the SWIG output treat ocaml as a scripting language, too. As far as I know, it's the only project out there with as well developed a C++ reader (It processes most C++ headers unmodified), and I'd recommend using it's s-exp or xml output as a foundation for further work on wrapping, even if you use nothing else from it. That part has been tuned through experience, and lots of the decisions that need to be taken are not covered by the C++ standard. If others are interested in the module, I'm always willing to listen to suggestions and take patches. -- Hey, Adam Smith, keep your invisible hands to yourself! ------------------- 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