[plt-dev] Java FFI?

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Tue May 25 13:40:19 EDT 2010

Does this help?


I wrote it a few years ago for no particular reason. It starts up a JVM 
and lets you talk to it through FFI.

On 05/25/2010 11:07 AM, Shriram Krishnamurthi wrote:
> It's been a while since I've looked closely at our FFI docs, so maybe
> this question has a trivial answer, but I can't find it by searching.
> For our security tools, we used to use the C FFI for a long time.  But
> then we switched out some of the underlying infrastructure, which is
> in Java instead of C.  It was much easier to prototype in SISC than in
> PLT Scheme, so we switched to SISC for a while.
> Unfortunately, of course, the script grew up into a program.  Since
> there is likely to be a major re-implementation in the near future,
> this is a good time to port it back to PLT.  (Plus, I hear there's
> this incredibly cool new thing called Racket coming out, and we want
> to jump on the bandwagon so we're thought of as cool kids.)
> Question: What is the current state of an FFI to Java or the JVM?  It
> presumably won't be as nice as that in SISC, but we understand that
> trade-off.  However, with only one grad student on the tool, and his
> time mostly spent on the theory, we don't want to get stuck in a rut
> building and maintaining an FFI infrastructure.  We'd rather use a
> sanctioned and mantained FFI instead.
> Is there already a good Java FFI story?  If not, are we the only ones
> who could really use one?  I'd have thought the Untyped and other Web
> guys would have real use for one.
> Shriram
> _________________________________________________
>    For list-related administrative tasks:
>    http://list.cs.brown.edu/mailman/listinfo/plt-dev

Posted on the dev mailing list.