Hacker News new | past | comments | ask | show | jobs | submit login
Ghcjs: Haskell to Javascript compiler (github.com/sviperll)
56 points by alrex021 on Oct 22, 2010 | hide | past | favorite | 10 comments



Hey, 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.


I'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!


So there's now a haskell to javascript compiler, and an implementation of haskell in javascript. I want to see a benchmark comparing the two.


Haskell 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.


Sure. So draft a spec and submit it to a standards committee!



think of it as an ascii serialization of a (virtual) bytecode language


Awesome. 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.


Related: Python to JavaScript compiler http://pyjs.org/

Pyjamas is a port of Google Web Toolkit to Python.


Any idea how this deals with the DOM?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: