[Haskell-cafe] Re: Libraries for Commercial Users
John A. De Goes
john at n-brain.net
Sun Oct 11 13:10:57 EDT 2009
On Oct 10, 2009, at 12:47 PM, Brad Larsen wrote:
> With this hypothetical ``import foreign jvm'' mechanism, what would
> the be type of imported Java stuff? Would it all be done in IO?
Yes, that's a good first-start.
> The more I think about it, the trickier it seems. Beside the purity
> mismatch of Haskell and Java, there is an OO/functional mismatch.
That just means an extra argument to every function and some unsafe
downcasts; and maybe some funky mechanism for subclassing, for those
libraries that require it (deprecated in modern OOP but not uncommon).
> Haskell / Java interop could be a huge boon; I just have trouble
> seeing how it could be so simple as a one-line import in your Haskell
> code.
I'm not saying the one-line import would give you anything more than
purely imperative wrappers around Java code. But that's a start. It's
"good enough". If it existed, I could transition two companies over to
Haskell, and likely more in the future.
Regards,
John A. De Goes
N-Brain, Inc.
The Evolution of Collaboration
http://www.n-brain.net | 877-376-2724 x 101
More information about the Haskell-Cafe
mailing list