hi..
i'm a newbie to lisp
(fairly newbie to java too =) )
i'm wondering if lisp & java can be integrated..
lisp seems like it can only contain number, string (or list of them)
is there any way i can make list of java object?
sounds like dumb question, but i think it'll be cool if anyone working on
it..
thank you
On Sat, May 04, 2002 at 11:44:16PM -0500, eugene kim wrote:
> hi..
>
> i'm a newbie to lisp
> (fairly newbie to java too =) )
>
> i'm wondering if lisp & java can be integrated..
> lisp seems like it can only contain number, string (or list of them)
(Assuming Common Lisp here) Since you are a newbie to CL it would probably
benefit you to peruse some tutorials and books:
Successful Lisp, a tutorial:
http://www.psg.com/~dlamkins/sl/cover.html
Common Lisp the Language 2nd ed:
http://www.math.uio.no/cltl/cltl2.html
Common Lisp HyperSpec:
http://www.xanalys.com/software_tools/reference/HyperSpec/Front/index.htm
On Lisp:
http://www.paulgraham.com/onlisptext.html
There is plenty more reading out there as well. Note in particular the
extensive type system in CL.
--
; Matthew Danish <·······@andrew.cmu.edu>
; OpenPGP public key: C24B6010 on keyring.debian.org
; Signed or encrypted mail welcome.
; "There is no dark side of the moon really; matter of fact, it's all dark."
eugene kim <··········@hotmail.com> writes:
> hi..
>
> i'm a newbie to lisp
> (fairly newbie to java too =) )
>
> i'm wondering if lisp & java can be integrated..
The answer to that depends on why you need it, what kind of
integration you need and how much work you're willing to put into it.
A couple of pointers to get you started:
* As far as I know, there is no Common Lisp implementation which runs on
top of a JVM. The closest thing today is probably Kawa.
* There are a couple of pointers at http://ww.telent.net/cliki/ (look
for "Java integration stuff").
* You could use interprocess communication and defined protocols to
let a Java process talk to a Common Lisp process
(again look at cliki and possibly also www.lisp.org).
Sometimes this is a better solution than trying to integrate multiple
languages into a single process since their runtime systems might clash.
* Allegro Common Lisp (Franz Inc.) has some Java integration tools
or mechanisms. I haven't looked at these.
Just so that you're warned: once you start exposing languages to each
other (in particular things like the type systems) applications easily
get more complicated (often because you tried to make the integration
too tight and in too many places).
Microsofts .NET tries to manage this by using a common type system to
be used in the "glue area" where the various langauges meet (somewhat
like an "internal CORBA" if you like to think about it that way). It's
going to be interesting to see how that approach works out in the long
run.
I guess my best advice is to take a look at what you need and try to
simplify the interfaces as much as you reasonably can.
--
// John Markus Bj�rndalen
John Markus Bjorndalen <·····@cs.uit.no> writes:
> eugene kim <··········@hotmail.com> writes:
>
> > hi..
> >
> > i'm a newbie to lisp
> > (fairly newbie to java too =) )
> >
> > i'm wondering if lisp & java can be integrated..
>
> The answer to that depends on why you need it, what kind of
> integration you need and how much work you're willing to put into it.
>
> A couple of pointers to get you started:
[ ... ]
> * Allegro Common Lisp (Franz Inc.) has some Java integration tools
> or mechanisms. I haven't looked at these.
The two major tools we have are
- Jlinker:
http://www.franz.com/support/documentation/6.1/doc/jlinker.htm
which is sort of a remote-call protocol that allows CL to call
Java methods, and:
- JiL:
http://www.franz.com/support/documentation/6.1/doc/jil.htm
which is a CL-like language for writing programs that run on
a JVM.
--
Duane Rettig Franz Inc. http://www.franz.com/ (www)
1995 University Ave Suite 275 Berkeley, CA 94704
Phone: (510) 548-3600; FAX: (510) 548-8253 ·····@Franz.COM (internet)
On Sat, 04 May 2002 23:44:16 -0500, eugene kim <··········@hotmail.com>
wrote:
> i'm wondering if lisp & java can be integrated..
Here is an example of Java/Common Lisp integration:
http://jacol.sourceforge.net
Paolo
--
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://www.paoloamoroso.it/ency/README
[http://cvs2.cons.org:8000/cmucl/doc/EncyCMUCLopedia/]