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 JAA00065; Thu, 16 May 2002 09:03:58 +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 JAA00052 for ; Thu, 16 May 2002 09:03:57 +0200 (MET DST) Received: from grisu.bik-gmbh.de (grisu.bik-gmbh.de [194.233.237.82]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g4G73un29105 for ; Thu, 16 May 2002 09:03:56 +0200 (MET DST) Received: from prony.bik-gmbh.de (prony.bik-gmbh.de [194.233.237.133]) by grisu.bik-gmbh.de (8.11.3/8.11.1) with ESMTP id g4G72Qo17980 for ; Thu, 16 May 2002 09:02:26 +0200 (CEST) (envelope-from hars@bik-gmbh.de) Received: from hars by prony.bik-gmbh.de with local (Exim 3.35 #1 (Debian)) id 178FLI-0000cL-00 for ; Thu, 16 May 2002 09:06:28 +0200 Date: Thu, 16 May 2002 09:06:28 +0200 From: Florian Hars To: caml-list@inria.fr Subject: Re: [Caml-list] Generating C stubs Message-ID: <20020516070628.GA2334@bik-gmbh.de> References: <20020515111328.A13106@fr.thalesgroup.com> <193C71C6-67E9-11D6-BB25-0003934491C2@lasmea.univ-bpclermont.fr> <20020515141716.A19272@fr.thalesgroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020515141716.A19272@fr.thalesgroup.com> User-Agent: Mutt/1.3.28i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Jérôme Marant wrote: > I thought that CamlIDL was targeted at COM and interprocess communication, > wasn't it? Yeah, the CamlIDL web site is one of the worst marketing blunders in the history of modern computing in insinuating that it is exclusively targeted at Windows-only programs. Unix only enters the picture as an afterthought further down the page where everyone who is not looking for a Windows solution has long since stopped reading. (Apart form the fact that no sane programmer in full possession of his mental abilities would use something with "IDL" in its name for a task as simple as linking to a shared library :-)) Why not start the page with something like "CamlIDL generates stub code to use C libraries and C++ classes from Objective Caml from high level definitions. Under Windows it can also provide COM bindings." And maybe the Ocaml manual should mention the existence of CamlIDL in the introduction of the chapter about interfacing C with Ocaml, like (stealing parts from the lower half of the website) "The following chapter documents the low level interface between C and Objective Caml. For practical programming tasks it might be more appropiate to use a tool like CamlIDL that operates on a higher level of abstraction and takes care of details such as those pesky Val_xxx and Xxx_val macros, proper registration of GC roots, the different calling conventions from bytecode and from native-code, etc." Yours, Florian Hars. ------------------- 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