From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q2EHYKBR018138 for ; Wed, 14 Mar 2012 18:34:20 +0100 X-IronPort-AV: E=Sophos;i="4.73,584,1325458800"; d="scan'208";a="136086058" Received: from albireo.irisa.fr (HELO [131.254.14.27]) ([131.254.14.27]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 14 Mar 2012 18:34:15 +0100 Message-ID: <4F60D697.7070206@irisa.fr> Date: Wed, 14 Mar 2012 18:34:15 +0100 From: Sebastien Ferre Organization: IRISA User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4 MIME-Version: 1.0 To: caml-list@inria.fr References: <4F58BB1B.5020101@irisa.fr> <1331215956.2826.283.camel@thinkpad> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Validation-by: sebastien.ferre@irisa.fr Subject: Re: [Caml-list] ocaml-java + lablgtk2 On 03/09/2012 06:48 PM, forum@x9c.fr wrote: >>> 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 forgot to mention it, but I already have a lablgtk2 GUI, which I want to reuse in a different setting. > 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. OK, this is still good to know. Regards, Sébastien Ferré