Hi everyone,

In the past I've had some success generating Java libraries for 
Bigloo, wrapping C-based libraries such as GLPK and Graphviz (even 
posted them on this list, at some point:-). As I remember, this 
involved SWIG and hacking Cigloo-generated directives. So in the end 
you could use the library in either interpreter, with the C backend 
and also with the Java backend (and .Net, when the backend was still
available). Even tried to move the whole thing to Windows to check if
it was working (it did, with compatible Windows DLLs of the involved 
libraries).

So depending on your will to get it done ... (I do remember the process
was quite fragile).

Kind regards,
Peter

On Wed, 2016-01-27 at 16:32 +0300, Vladimir Tsichevski wrote: 
> Hi Damien,
> On 20.01.2016 14:09, Damien MATTEI wrote:
> > Hi Vladimir,
> >
> > thank you for your answer your help is precious,
> > i didn't noticed there was an earlier version on github,
> The googlecode has archived all projects and recommended to move to github. 
> So did I recently.
> > i just try it last evening, if something is possible it will be easiest 
> > from this version.
> > Note that i have no use of gtk* in my application, i'm just trying to use 
> > the mysql feature of the bigloo-lib3 because the project i'm developing is 
> > porting a web project (originally under I2S from microsoft and access under 
> > windows) with
> > connection to relational database hosted on an apache tomcat8 web engine 
> > (for security reasons) under linux and MySQL (MariaDB now) . The language 
> > used with apache tomcat is Java,
> > i should say java byte-code as the tomcat engine do not care if you created 
> > the *.class or .jar or .war files from java source or any other language 
> > that produce java byte-code for jvm
> >   such as Scheme. So the project is using little java source, some Bigloo 
> > Scheme source files, and Kawa Scheme source files too.
> Great company :-)
> > As there is no support for MySQL database connection in Kawa Scheme and 
> > Bigloo Scheme i have those choices:
> > -the easy way but not really pretty:made a simple class in java source code 
> > that handle the SQL request generated by Scheme source code classes
> > -find a library for Bigloo or Kawa that handle database connection with 
> > MySQL
> > I'm workin on the two solutions because i  only use the java front-end 
> > version of bigloo,
> > and i do not know if  the bigloo-lib3 is compatible with the java front-end 
> > of bigloo (option  -jvm  for bigloo)
> > is your library only for bigloo compiling to C language or is it compatible 
> > too with the Java compilation option of bigloo ?
> Never tried using Bigloo with Java. I doubt Bigloo can translate C library 
> calls to Java native interface.
> 
> I would recommend using JDBC. It works great for MySQL. I wrote rdbms 
> interface for Bigloo since it was the only option to 
> access relation DBs uniformly from bigloo interpreter and/or compiler. There 
> is no such problems in Java.
> >
> > anyway i find interesting info in your code , from  lib-bigloo2 to 
> > lib-bigloo3 the use of   $string->bstring which is undocumented but help 
> > porting code, still work in latest bigloo (4.2c)
> I will take a look at code as soon as I have some spare time.
> 
> Regards,
> Vladimir
> 
> PS: from my experience, if you have to deal with Java, you shall write your 
> projects mostly in Java, and probably use other 
> languages compiled to Java bytecode just for exploring and testing. Otherwise 
> soon you'll find yourself writing interfaces to 
> dozens of Java libraries with no usual help from Java IDE.


Reply via email to