* [Caml-list] ocaml-java + lablgtk2 @ 2012-03-08 13:58 Sebastien Ferre 2012-03-08 14:12 ` Gerd Stolpmann 0 siblings, 1 reply; 8+ messages in thread From: Sebastien Ferre @ 2012-03-08 13:58 UTC (permalink / raw) To: caml-list 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... --- Sébastien ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Caml-list] ocaml-java + lablgtk2 2012-03-08 13:58 [Caml-list] ocaml-java + lablgtk2 Sebastien Ferre @ 2012-03-08 14:12 ` Gerd Stolpmann 2012-03-09 14:09 ` Sebastien Ferre 2012-03-09 17:48 ` forum 0 siblings, 2 replies; 8+ messages in thread From: Gerd Stolpmann @ 2012-03-08 14:12 UTC (permalink / raw) To: Sebastien Ferre; +Cc: caml-list 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. What you could try to do is to use the standard runtime, and load the JVM dynamically for running the Java library, and connect both via JNI. There is a generator for such cross calls by Xavier: http://gallium.inria.fr/~xleroy/software.html#camljava I've never used it, though. Gerd > > --- > Sébastien > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de *** Searching for new projects! Need consulting for system *** programming in Ocaml? Gerd Stolpmann can help you. ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Caml-list] ocaml-java + lablgtk2 2012-03-08 14:12 ` Gerd Stolpmann @ 2012-03-09 14:09 ` Sebastien Ferre 2012-03-09 15:53 ` CHAAR Rabih 2012-03-09 16:06 ` Stefano Zacchiroli 2012-03-09 17:48 ` forum 1 sibling, 2 replies; 8+ messages in thread From: Sebastien Ferre @ 2012-03-09 14:09 UTC (permalink / raw) To: caml-list Hi, On 03/08/2012 03:12 PM, Gerd Stolpmann wrote: > 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. > > What you could try to do is to use the standard runtime, and load the > JVM dynamically for running the Java library, and connect both via JNI. > There is a generator for such cross calls by Xavier: > > http://gallium.inria.fr/~xleroy/software.html#camljava > > I've never used it, though. This looks promising, and adequate to my needs. However, the last version dates back to 2004, and is for java-1.4. Is there any chance it stills works ? Has anybody used it recently ? Sébastien ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [Caml-list] ocaml-java + lablgtk2 2012-03-09 14:09 ` Sebastien Ferre @ 2012-03-09 15:53 ` CHAAR Rabih 2012-03-09 16:06 ` Stefano Zacchiroli 1 sibling, 0 replies; 8+ messages in thread From: CHAAR Rabih @ 2012-03-09 15:53 UTC (permalink / raw) To: Sebastien Ferre, caml-list It still works for java 1.6 (windows) Sincerely -----Original Message----- From: Sebastien Ferre [mailto:Sebastien.Ferre@irisa.fr] Sent: Friday,March 09,2012 3:09 PM To: caml-list Subject: Re: [Caml-list] ocaml-java + lablgtk2 Hi, On 03/08/2012 03:12 PM, Gerd Stolpmann wrote: > 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. > > What you could try to do is to use the standard runtime, and load the > JVM dynamically for running the Java library, and connect both via JNI. > There is a generator for such cross calls by Xavier: > > http://gallium.inria.fr/~xleroy/software.html#camljava > > I've never used it, though. This looks promising, and adequate to my needs. However, the last version dates back to 2004, and is for java-1.4. Is there any chance it stills works ? Has anybody used it recently ? Sébastien -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs ************************************************************************* This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ************ Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes par le secret professionnel. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ************************************************************************* ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Caml-list] ocaml-java + lablgtk2 2012-03-09 14:09 ` Sebastien Ferre 2012-03-09 15:53 ` CHAAR Rabih @ 2012-03-09 16:06 ` Stefano Zacchiroli 2012-03-09 22:31 ` Sebastien Ferre 1 sibling, 1 reply; 8+ messages in thread From: Stefano Zacchiroli @ 2012-03-09 16:06 UTC (permalink / raw) To: caml-list On Fri, Mar 09, 2012 at 03:09:17PM +0100, Sebastien Ferre wrote: > This looks promising, and adequate to my needs. > However, the last version dates back to 2004, and > is for java-1.4. Is there any chance it stills > works ? Has anybody used it recently ? The version on SVN has more recent changes (by myself and Gregoire Henry). They haven't yet been incorporated in a release worth of that name most notably due to the lack of testing. We'd be welcome if you could test the SVN version and --- assuming everything works fine --- make a new proper release as an outcome. Hope this helps, Cheers. -- Stefano Zacchiroli zack@{upsilon.cc,pps.jussieu.fr,debian.org} . o . Maître de conférences ...... http://upsilon.cc/zack ...... . . o Debian Project Leader ....... @zack on identi.ca ....... o o o « the first rule of tautology club is the first rule of tautology club » ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Caml-list] ocaml-java + lablgtk2 2012-03-09 16:06 ` Stefano Zacchiroli @ 2012-03-09 22:31 ` Sebastien Ferre 0 siblings, 0 replies; 8+ messages in thread From: Sebastien Ferre @ 2012-03-09 22:31 UTC (permalink / raw) To: caml-list On 03/09/2012 05:06 PM, Stefano Zacchiroli wrote: > On Fri, Mar 09, 2012 at 03:09:17PM +0100, Sebastien Ferre wrote: >> This looks promising, and adequate to my needs. >> However, the last version dates back to 2004, and >> is for java-1.4. Is there any chance it stills >> works ? Has anybody used it recently ? > > The version on SVN has more recent changes (by myself and Gregoire > Henry). They haven't yet been incorporated in a release worth of that > name most notably due to the lack of testing. We'd be welcome if you > could test the SVN version and --- assuming everything works fine --- > make a new proper release as an outcome. I could compile the SVN version and the test fine. I did it with JDK1.7 on a Linux Fedora amd64. > Hope this helps, Yes, thanks! Sebastien ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Caml-list] ocaml-java + lablgtk2 2012-03-08 14:12 ` Gerd Stolpmann 2012-03-09 14:09 ` Sebastien Ferre @ 2012-03-09 17:48 ` forum 2012-03-14 17:34 ` Sebastien Ferre 1 sibling, 1 reply; 8+ messages in thread From: forum @ 2012-03-09 17:48 UTC (permalink / raw) To: caml-list; +Cc: Xavier Clerc 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Caml-list] ocaml-java + lablgtk2 2012-03-09 17:48 ` forum @ 2012-03-14 17:34 ` Sebastien Ferre 0 siblings, 0 replies; 8+ messages in thread From: Sebastien Ferre @ 2012-03-14 17:34 UTC (permalink / raw) To: caml-list 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é ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-03-14 17:34 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-03-08 13:58 [Caml-list] ocaml-java + lablgtk2 Sebastien Ferre 2012-03-08 14:12 ` Gerd Stolpmann 2012-03-09 14:09 ` Sebastien Ferre 2012-03-09 15:53 ` CHAAR Rabih 2012-03-09 16:06 ` Stefano Zacchiroli 2012-03-09 22:31 ` Sebastien Ferre 2012-03-09 17:48 ` forum 2012-03-14 17:34 ` Sebastien Ferre
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox