TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ghcjs: Haskell to Javascript compiler

56 pointsby alrex021over 14 years ago

7 comments

d0mover 14 years ago
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.
grav1tasover 14 years ago
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!
pbiggarover 14 years ago
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.
anonymousover 14 years ago
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.
评论 #1820448 未加载
评论 #1821479 未加载
JoelMcCrackenover 14 years ago
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.
gasullover 14 years ago
Related: Python to JavaScript compiler <a href="http://pyjs.org/" rel="nofollow">http://pyjs.org/</a><p>Pyjamas is a port of Google Web Toolkit to Python.
zeteoover 14 years ago
Any idea how this deals with the DOM?