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.

Compiling LLJS to asm.js

101 pointsby jlongsterabout 12 years ago

6 comments

STRMLabout 12 years ago
LLJS, asm.js, & Emscripten are really moving Javascript forward at incredible speed. I wonder if these projects will affect the future of the JS spec (ECMAScript Harmony + above). It's an exciting time to be a web programmer.
评论 #5440938 未加载
abecedariusabout 12 years ago
Yesterday I rewrote a tiny Javascript demo in asm.js and also saw an order-of-magnitude speedup. (I thought at first it didn't help at all, apparently because the framerate was limited by setInterval().)<p>Code at <a href="http://wry.me/hacking/canvas_asm.html" rel="nofollow">http://wry.me/hacking/canvas_asm.html</a>
评论 #5439558 未加载
评论 #5438929 未加载
评论 #5440020 未加载
kayooneabout 12 years ago
Whats the use for LLJS ? I dont really get it. So its not meant to be used in web development but for things like games or complete VMs. But isnt it much simpler for those cases to compile existing C codebases with emscripten instead of rewriting everything in LLJS ? Even if you start today with writing a new game engine, wouldnt it make more sense to use C++ and be able to target any platform there is instead of just the browser?
评论 #5438409 未加载
评论 #5438440 未加载
nigglerabout 12 years ago
Has anyone built the <i>entire stack in javascript</i> (C to JS compiler in JS + standard library) so that you could write JS applications in C and compile and run in the browser?<p>EDIT: to clarify, the ideal solution would be an editor (like codemirror or ace) with a compile+run button that would compile the code down to JS and run it.
评论 #5437962 未加载
评论 #5437960 未加载
y0ghur7_xxxabout 12 years ago
I am sure there is some reason this can't be done, but can we compile JavaScript to asm.js? If this can be done with C, it can be done with JS?
评论 #5439527 未加载
gruseomabout 12 years ago
How far are we from being able to do meaningful text processing with typed arrays and (therefore, presumably) asm.js? Last I checked, there was work being done on a string encoding/decoding standard but it wasn't implemented in browsers yet. Can anyone say more about this?