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
Calling Java From Haskell
S. Alexander Jacobson Fri, 13 Nov 1998 10:02:02 -0500 (Eastern Standard Time)
- Re: Calling Java From Haskell S. Alexander Jacobson
- Re: Calling Java From Haskell Claus Reinke
- Re: Calling Java From Haskell S. Alexander Jacobson
- Re: Calling Java From Haskell Olivier . Lefevre
- Re: Calling Java From Haskell Felix Schroeter
- Re: Calling Java From Haskell Claus Reinke
- Re: Calling Java From Haskell S. Alexander Jacobson