(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
|