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 BAA03028; Fri, 8 Nov 2002 01:18:48 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA02752 for ; Fri, 8 Nov 2002 01:18:47 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from smtp.easystreet.com (easystreet.com [206.26.36.40]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gA80Ik523312 for ; Fri, 8 Nov 2002 01:18:46 +0100 (MET) Received: from easystreet.com (dial-206-103-35-009.dial.easystreet.com [206.103.35.9]) by smtp.easystreet.com (8.11.2/8.11.2) with ESMTP id gA80IgX02759 for ; Thu, 7 Nov 2002 16:18:42 -0800 (PST) Message-ID: <3DCB0335.CE7D7B82@easystreet.com> Date: Thu, 07 Nov 2002 16:20:05 -0800 From: achrist@easystreet.com X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 CC: caml-list@inria.fr Subject: Re: [Caml-list] OCaml on Windows please advise References: <20021104212354.44502.qmail@web20504.mail.yahoo.com> <005901c284ef$c7cebc60$6e00a8c0@warp> <3DC80A15.84B8C129@easystreet.com> <005c01c285c5$ff0ae1f0$6e00a8c0@warp> <3DC97461.7D694203@easystreet.com> <20021107093019.A8856@pauillac.inria.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Xavier Leroy wrote: > > > > You should perhaps consider packaging your Delphi GUI into a DLL with > > > exported function and then have the OCaml Runtime be your startup. > > > > This is the problem with many of the non-mainstream languages. [...] > > Don't worry, it's actually possible to package Caml code + the Caml > runtime system in a DLL, thus having the Delphi GUI as "main" program. > > CamlIDL (see below) contains a tool that builds such a DLL in the case > of a COM component. > > > Last I saw, COM was one of the best things that MS had conceived. > > That's extremely faint praise, but COM does look to be a good way to > > partition a system into cohesive parts. With Windows as it currently > > exists, being able to do COM as both a client and a server would be > > a very nice feature for just about any language that targets Windows. > > Agreed. Please have a look at http://caml.inria.fr/camlidl/ > Thanks. I'll have to give this a try. I took a look at it a while back and saw that there was C code to translate between OCaml types and C types. I didn't go very much farther, because I didn't want to mess with a 3-language solution, Delphi <-> C <-> OCaml, which could be way too much work for me. Reading a little more of the docs today, I see that the C code gets automatically generated and that there is a tool to link it into the server automatically as well, so my previous negative impression was likely ill-conceived. Can't wait to get time to give this a try. While I'm waiting, back to the original theme of this thread. Can anyone offer tales of (impressive) success or gotchas doing such things under Windows with OCaml? Al ------------------- 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