Hi everybody, i've been reading your posts because i'm looking for a
solution to call some routines written in lisp (i'm using CLISP) from
java programs.
I've seen JACOL, but I don't know if it's possible to run it under
windows(has anybody tried it?). I`ve read that there are some other
choices like CLORB (i've read that it`s not completely finished) or
Kawa (i really dont't know what is exactly).
Thank you.
Many Common Lisp implementations allow you to "call in" from C. Calling
from Java is thus just a few JNI calls away.
In alternative you can have a look at JFLI and friends.
Cheers
--
Marco
vrivero wrote:
> Hi everybody, i've been reading your posts because i'm looking for a
> solution to call some routines written in lisp (i'm using CLISP) from
> java programs.
>
> I've seen JACOL, but I don't know if it's possible to run it under
> windows(has anybody tried it?). I`ve read that there are some other
> choices like CLORB (i've read that it`s not completely finished) or
> Kawa (i really dont't know what is exactly).
>
> Thank you.
>
On Mon, 28 Mar 2005 17:37:58 -0500, Marco Antoniotti wrote:
> Many Common Lisp implementations allow you to "call in" from C. Calling
> from Java is thus just a few JNI calls away.
>
Actually, how many do? AFAIK even "call back" is a rather weak spot of a
lot of CL implementations - esp. the free/open source ones (esp, on
non x86/and or non-Linux boxes).
In alternative you can have a look at JFLI and friends.
>
> Cheers
> --
> Marco
>
>
>
>
>
>
> vrivero wrote:
>> Hi everybody, i've been reading your posts because i'm looking for a
>> solution to call some routines written in lisp (i'm using CLISP) from
>> java programs.
How about a setup where your Java code communicates with a Lisp by means
of xml-rpc (or similar soapy stuff :-)
I've used this approach to provide services to python programs.
You could also have a look at ECL - that implementation allows you to
create dlls/shared object libraries that seem to be much easier to
integrate into a JNI environment.
>> I've seen JACOL, but I don't know if it's possible to run it under
>> windows(has anybody tried it?). I`ve read that there are some other
>> choices like CLORB (i've read that it`s not completely finished) or
>> Kawa (i really dont't know what is exactly).
Kawa is scheme, so it might be a bit unusual if you only wrote CL so far
...
hth Ralf Mattes
>> Thank you.
>>
(message (Hello 'vrivero)
(you :wrote :on '(28 Mar 2005 14:12:55 -0800))
(
v> Hi everybody, i've been reading your posts because i'm looking for a
v> solution to call some routines written in lisp (i'm using CLISP) from
v> java programs.
if you need just call some routines, you can try using ABCL -- Armed Bear
Common Lisp, it's Common Lisp implemented in Java.
it's not very stable and conformant, but it works and can be used for many
applications.
)
(With-best-regards '(Alex Mizrahi) :aka 'killer_storm)
"People who lust for the Feel of keys on their fingertips (c) Inity")
i`ve found a solution, that it's good enough for me and not very
difficult.
I've executed clisp from java with Runtime.getRuntime().exec, then i've
attached a thread to this process to listen to the output of what i
told clisp to do.
Thank you for all of your suggestions, i'll consider them if i decide
to improve my program.