Lambda the Ultimate

inactiveTopic Haskell/Java VM Bridge
started 12/17/2001; 1:42:57 AM - last post 12/17/2001; 1:42:57 AM
Ehud Lamm - Haskell/Java VM Bridge  blueArrow
12/17/2001; 1:42:57 AM (reads: 640, responses: 0)
Haskell/Java VM Bridge
(via the Haskell mailing list)

Haskell/Java VM Bridge allows Haskell programs access to the Java Virtual Machine. Features include:

  • On-the-fly creation of Java classes with Haskell functions for methods.

  • Lifted monads which do all the necessary JNI preloading and 'env'-pointer variable handling for you. These can be automatically generated via a tool (MakeJVMModule).

  • Integration of garbage collectors, type-class based overloading, and a tool (MakeClassModule) which uses Java reflection etc. to generate a Haskell module etc., etc.

No documentation is currently available, sorry. Two examples have been included: a trivial "hello world" program, and a program that shows a Java Frame containing an instance of a Haskell-defined subclass of Canvas that has a Haskell 'paint' method that draws an oval. You should be able to figure out most of it from that... and of course the source is available from SourceForge CVS.

Looks quite interesting. Did anyone try this?


Posted to functional by Ehud Lamm on 12/17/01; 1:53:45 AM