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 TAA07275; Sun, 2 May 2004 19:44:14 +0200 (MET DST) 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 TAA08577 for ; Sun, 2 May 2004 19:44:13 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from ibook.champiland.homelinux.org (ca-sqy-5-143.w80-8.abo.wanadoo.fr [80.8.58.143]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i42HiBSH011446 for ; Sun, 2 May 2004 19:44:12 +0200 Received: from [127.0.0.1] (helo=ensta.org) by ibook.champiland.homelinux.org with esmtp (Exim 4.30) id 1BKIOa-0000Dl-Ax; Sun, 02 May 2004 16:56:44 +0200 Message-ID: <40950C2B.10807@ensta.org> Date: Sun, 02 May 2004 16:56:43 +0200 From: Olivier Grisel User-Agent: Mozilla Thunderbird 0.5 (X11/20040313) X-Accept-Language: fr, en MIME-Version: 1.0 To: Richard Jones , caml-list@inria.fr Subject: Re: [Caml-list] XPCOM (Mozilla object technology) with OCaml? References: <20040502131052.GA29335@redhat.com> In-Reply-To: <20040502131052.GA29335@redhat.com> X-Enigmail-Version: 0.83.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 4095336B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hash:01 xul:01 python:01 guis:01 2004:99 caml-list:01 altern:01 clue:01 swig:01 python:01 lxr:99 swig:01 1.2.4:01 enigmail:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Richard Jones a écrit : | Has anyone tried wrapping up an OCaml program with XPCOM so it can be | called from a XUL/Javascript interface? Python has PyXPCOM, and | anything they can do we ought to be able to do :-) That would be a very nice feature for OCaml and an way to easily build crossplatform GUIs for OCaml programs, and furthermore let you access interesting XP components such as the SOAP one from OCaml. (please refer to http://66.102.11.104/search?q=cache:M_j-hazIPs4J:www.xulplanet.com/references/xpcomref/+SOAP+XPCOM for a complete list - google cache cause xulplanet is currently down). I remember having heard about 2 people interested in such a project on the french speaking website linuxfr.org: ~ http://linuxfr.org/2004/04/20/16034.html (search for "ocaml" in that page). I don't I those people are on registered the Caml-list ; in case they are'nt you can't contact one of them at "vincent22 [a] altern.org" as mentioned on the page. As far as I'm concerned, I don't feel competent enough nor have enough free time right now to help/contribute. However you can count me as a potential enthusiastic user/tester/bug-reporter should you get something up and running. Having looked at the PyXCOM source tree, I couldn't get any clue on how the ActiveState folks wrapped the XPCOM interface ... No swig nor Boost.Python reference. I guess they did it all manually ... http://lxr.mozilla.org/seamonkey/source/extensions/python/xpcom/src/ I guess one could do the same for OCaml however it would be a long and not-that-pleasant work ... I don't know if there exists a proper wrapper generator from C++ to OCaml that get the job properly done (swig ?). Best, Olivier -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAlQwqTsBRE+WZ2SARAsKuAJ4l0CAvBZVd0fiSrUBBCjsrwy7VtgCfY8do uPHYRc3hhj7PYrhyvK8VE44= =S8up -----END PGP SIGNATURE----- ------------------- 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