6 ms·
Ghcjs: Haskell to Javascript compiler
- d0m 16y agoHey, it seems awesome. Here's a suggestion: On the main page, even thought you specify where to find examples, it would still be nice to have a small example of what this library does.
- pbiggar 16y agoSo there's now a haskell to javascript compiler, and an implementation of haskell in javascript. I want to see a benchmark comparing the two.
- grav1tas 16y agoI'm pretty excited about this. There used to be another Haskell -> Javascript compilation tool in the York Haskell Compiler and it kinda disappeared into the bowels of the Internet. Haskell is an incredible tool for writing parsers and interpreters. Leveraging this in Javascript could give us some interesting web software. I've always gotten the feeling that Haskell could fit in the same problem solving spot that some Javascript functions do with respect to passing call backs and higher order functions and all that. Nows the time to give it a try!
- zeteo 16y agoAny idea how this deals with the DOM?
- JoelMcCracken 16y agoAwesome. I really think there is a strong opportunity for javascript compilers, and while I don't think haskell->js is where we will be "eventually", I think this is a very admirable effort.
- anonymous 16y agoHaskell to Javascript, Clojure to Javascript... Javascript is starting to play role of intermediate representation rather than programming language, and bytecode that could be embedded or referenced by web pages would be more appropriate for this task.
- grav1tas 16y agoSure. So draft a spec and submit it to a standards committee!
- anonymous 16y agoHere it is: http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.html http://java.sun.com/docs/books/jvms/second_edition/html/VMSp...
- danbmil99 16y agothink of it as an ascii serialization of a (virtual) bytecode language
- gasull 16y agoRelated: Python to JavaScript compiler http://pyjs.org/ http://pyjs.org/ Pyjamas is a port of Google Web Toolkit to Python.