Re: Lushous - Lush/Java Initiative
Raymond Martin <[email protected]> Wed, 1 Nov 2006 16:42:43 +0000
| Newsgroups | gmane.lisp.lush.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ralf, > I think it would be nice to be able to use existing Java code > in a Lush program. What's your idea, how are you going to make > this work? Well, this is actually not that difficult, at least for gcc-java. Using gcc-java and its related utilities, java code can be compiled to binaries and a Lush interface made as usual. gcc-java already has its own implementation of the core java libraries pre-compiled. So only the interface for that will be needed. It would be nice to auto-generate interfaces, which I imagine will be simpler than doing the same for C/C++. For Sun Java it will be a different story. Either the use of JNI (Java Native Interface) or recompilation of the Sun code with gcc-java will be needed. That's a big job and it will probably be better to just develop a scripting frontend to Java for that (Sun's 1.6 version is to be scriptable and there are already a few languages being offered for that). Initially only a subset of Java code will be useable, due in part to gcc-java not having up-to-date support for Sun's version and specific libraries being implemented differently (Gtk+ for GUI instead of Swing, etc.). This will change in future once Sun makes Java open source. Apart from that basic approach I want to have similar functionality as CLush to inline Java code, compile, and run in standard Lush. This should be simpler than CLush due to the simpler nature of Java as a language. I will just start with the CLush code as a guide. Still in the very initial stages of planning. I have to do some testing with gcc-java generated binaries and Lush to see where there are potential difficulties. As it stands, Lush can already load any of the gcc-java libraries as long as all the system requirements are met. It is no different than loading any C binary. Raymond __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642