Now that Javasoft is on the verge of releasing the jdk1.2, I figure that
it is time to try to call Java from Haskell again.

Java would provide Haskell with 
* JDBC database access (standard database access on platforms other than windows) 
* HTTP client and server libs 
* JavaSpaces linda style distributed programming 
* GUI

I think one can autogenerate Haskell modules from Java as follows:
Java                    Haskell
-------                 -------
Class                   Module
Static method           function
Instance                Module.Instance (Haskell data type)
Instance Method         (Module.Instance ->) (function w/ instance arg)
get static variable     function w/ no args
set static variable     set_varName::value->IO ()
get instance variable   varName::Instance->value        
set instance variable   set_varName::Instance->value->IO()

I would like to write a tool that takes the output of javap and returns a
Haskell module that exports the above mappings (implements them using
hdirect and the invocation API)?

Are these semantics reasonable? Has anyone tried something similar?
Would anyone else find this useful?

-Alex-
___________________________________________________________________
S. Alexander Jacobson                   i2x Media  
1-212-697-0184 voice                    1-212-697-1427 fax



Reply via email to