My colleague and I have developed a STG-to-Java compiler, hopefully
as a backend of GHC. We defined our own syntax of the STG language.
For several small Haskell programs, we could translate them into
those in our own syntax, and we could run them with no difficulty.
Our compiler works well for the programs written in our own syntax,
For the translated STG programs, however, somewhat a straightforward
correction of the syntax is needed. The main reason for the correction
is due to library and I/O issues.
Kwanghoon
On Wed, 24 May 2000, Simon Peyton-Jones wrote:
> GHC has a Java back end in development. You say ghc -J Foo.hs to produce
> Foo.java.
>
> It doesn't work properly yet (library and I/O issues mainly). But
> Erik Meijer, Nigel Perry and Andy Gill are actively working on it.
> So it'll work soon. Performance will not be great. More like Hugs than
> GHC.
>
> Simon
>
> | -----Original Message-----
> | From: Johannes Waldmann [mailto:[EMAIL PROTECTED]]
> | Sent: 24 May 2000 09:20
> | To: [EMAIL PROTECTED]
> | Subject: Haskell -> Java bytecode?
> |
> |
> | Wouldn't it be nice if there were a Haskell compiler backend
> | that produced Java bytecode? Then I could write applets
> | in my favourite language, compile them, put them on my web page,
> | and everyone could execute them in their browser...
> |
> | Seriously, is there any work in that direction?
> | Surely someone must have investigated this before.
> | Perhaps there are convincing arguments why it can't/shouldn't be done?
> | --
> | -- Johannes Waldmann ----
> | http://www.informatik.uni-leipzig.de/~joe/ --
> | -- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732
> | 204/209 --
> |
> |
>