[Haskell-cafe] Emscripten: compiling LLVM to JavaScript

2011-04-11 Thread Sönke Hahn
Hi all! I haven't tried the tool myself, but it seems interesting to the Haskell efforts to compile to JavaScript: http://syntensity.blogspot.com/2011/04/emscripten-10.html Cheers, Sönke ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Emscripten: compiling LLVM to JavaScript

2011-04-11 Thread Christopher Done
On 11 April 2011 14:54, Sönke Hahn sh...@cs.tu-berlin.de wrote: I haven't tried the tool myself, but it seems interesting to the Haskell efforts to compile to JavaScript: http://syntensity.blogspot.com/2011/04/emscripten-10.html Good grief, that sounds incredibly awesome. GHC → LLVM → JS.

Re: [Haskell-cafe] Emscripten: compiling LLVM to JavaScript

2011-04-11 Thread KC
Can JS in a browser call out to heavy computational routines in Haskell? I suppose JS run as a scripting language outside the browser can call out to Haskell. Can Haskell open and interact with a browser window without going through a server like component? On Mon, Apr 11, 2011 at 9:02 AM,

Re: [Haskell-cafe] Emscripten: compiling LLVM to JavaScript

2011-04-11 Thread Michael Snoyman
On Mon, Apr 11, 2011 at 3:54 PM, Sönke Hahn sh...@cs.tu-berlin.de wrote: Hi all! I haven't tried the tool myself, but it seems interesting to the Haskell efforts to compile to JavaScript: http://syntensity.blogspot.com/2011/04/emscripten-10.html I saw this same article this morning. I

Re: [Haskell-cafe] Emscripten: compiling LLVM to JavaScript

2011-04-11 Thread austin seipp
I do wonder how Emscripten handles the GHC calling convention that is part of LLVM. In particular, global register declarations in the RTS scare me from a side line view, and LLVM's calling convention support is what makes the combination work at all in a registered environment. It's currently not

Re: [Haskell-cafe] Emscripten: compiling LLVM to JavaScript

2011-04-11 Thread Szymon Jachim
Time ago YHC compiler (not longer active) got additional backend that generated JS from Yhc.Core. It was working quite ok. You can still find demos online. Generating JS (high level code) from Ghc.Core feels better than from low level code of LLVM. Is GHC.core very different from YHC.core? Sz.