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.

Emscripten: an LLVM to JavaScript compiler

71 pointsby stephenjudkinsover 14 years ago

6 comments

jrockwayover 14 years ago
I'm tempted to compile node.js to LLVM bitcode, then compile it to JavaScript and then run it with node.js. Self-hosting!
agazsoover 14 years ago
This is cool for porting existing C/C++ libraries to the web without actually having to rewrite it in Javascript.<p>Similar project for Flash is Alchemy: <a href="http://labs.adobe.com/technologies/alchemy/" rel="nofollow">http://labs.adobe.com/technologies/alchemy/</a>
icefoxover 14 years ago
This is really really cool. I have ported various c/c++ code based to javascript and have thought about doing this myself. No doubt some really cool demos will come out of this.<p>One interesting hacks to be build on this would be to optimize the resulting javascript so it can be compressed the best.
jhuniover 14 years ago
Right now we take JavaScript code and we compile it to ObfuScript (obfuscated JavaScript).<p>It would be much better to have a variety of languages as front-ends and a real assembly language as a back-end.
DrJosiahover 14 years ago
The quality of the output is quite good, considering the intermediate representation. Also, I am totally blown away that there are Lua and CPython demos.
klsover 14 years ago
I would like to see one that goes the other way.I would love to be able to write JavaScript and compile it to run via the LLVM.