From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q29HmDCf016693 for ; Fri, 9 Mar 2012 18:48:13 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AugBABZBWk+yIGDMmWdsb2JhbABDFrU+AQEBAQEICwsHFCeCCgEBBAF5BQsLRlcGiBgJB7sPj3djBKhJ X-IronPort-AV: E=Sophos;i="4.73,559,1325458800"; d="scan'208";a="148499894" Received: from 9.mo5.mail-out.ovh.net (HELO mo5.mail-out.ovh.net) ([178.32.96.204]) by mail1-smtp-roc.national.inria.fr with ESMTP; 09 Mar 2012 18:48:07 +0100 Received: from mail439.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo5.mail-out.ovh.net (Postfix) with SMTP id A24C8FFB1B8 for ; Fri, 9 Mar 2012 18:51:15 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 9 Mar 2012 19:48:40 +0200 Received: from ip-131.net-82-216-20.versailles2.rev.numericable.fr (HELO ?192.168.0.13?) (forum%x9c.fr@82.216.20.131) by ns0.ovh.net with SMTP; 9 Mar 2012 19:48:38 +0200 X-Ovh-Mailout: 178.32.228.5 (mo5.mail-out.ovh.net) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=windows-1252 From: "forum@x9c.fr" In-Reply-To: <1331215956.2826.283.camel@thinkpad> Date: Fri, 9 Mar 2012 18:48:04 +0100 Cc: Xavier Clerc Message-Id: References: <4F58BB1B.5020101@irisa.fr> <1331215956.2826.283.camel@thinkpad> To: caml-list X-Mailer: Apple Mail (2.1251.1) X-Ovh-Tracer-Id: 4789015254455878432 X-Ovh-Remote: 82.216.20.131 (ip-131.net-82-216-20.versailles2.rev.numericable.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeegtddrtdefucetggdotefuucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucenucfhrhhomhepfdhfohhruhhmseiglegtrdhfrhdfuceofhhorhhumhesgieltgdrfhhrqeenucffohhmrghinhepihhnrhhirgdrfhhrnecujfgurhepufggtgfhjgffgffkfhfvofesthhqredthhdthe X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeegvddrfedvucetggdotefuucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucenucfhrhhomhepfdhfohhruhhmseiglegtrdhfrhdfuceofhhorhhumhesgieltgdrfhhrqeenucffohhmrghinhepihhnrhhirgdrfhhrnecujfgurhepufggtgfhjgffgffkfhfvofesthhqredthhdthe Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q29HmDCf016693 Subject: Re: [Caml-list] ocaml-java + lablgtk2 Le 8 mars 2012 à 15:12, Gerd Stolpmann a écrit : > Am Donnerstag, den 08.03.2012, 14:58 +0100 schrieb Sebastien Ferre: >> Hi, >> >> I am considering developping an OCaml >> application using Lablgtk2 for the GUI, >> and using ocaml-java/Nickel for calling >> a Java library (namely, OWL-API). I am >> working on Linux. >> >> Has anybody tried this ? I am a bit afraid >> of potential dependency problems... > > This cannot work. ocaml-java is running in a JVM, but lablgtk2 is > written for the standard runtime, and assumes standard conventions for > the C bindings it needs. A first option would be to use a Java toolkit to develop the GUI (AWT, Swing, SWT…). I have spent quite a lot of time lately on OCaml-Java and made some important improvements. Performances are now quite acceptable (always faster than OCaml bytecode and "not so far" from native code), and it is possible to call Java libraries without using Nickel. However, it is still now clear when OCaml-Java 2.0 will be released ; moreover, it will be of "alpha" quality at first. So, if you have to develop your application in the next month and/or need to use stable software, then use http://gallium.inria.fr/~xleroy/software.html#camljava as suggested by Gerd. Regards, Xavier Clerc