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.

Lua VM cross-compiled to JavaScript (1.4mb - takes a while to load)

58 pointsby pufuwozuover 14 years ago

4 comments

DanielRibeiroover 14 years ago
Wow. The backend, emscripten (<a href="http://code.google.com/p/emscripten/wiki/GettingStarted" rel="nofollow">http://code.google.com/p/emscripten/wiki/GettingStarted</a>), seems really nice. Wonder how it will work out with Rubinius....<p>Edit: Guess i just found it out :( <a href="http://code.google.com/p/emscripten/issues/detail?id=1" rel="nofollow">http://code.google.com/p/emscripten/issues/detail?id=1</a>
评论 #1941553 未加载
azakaiover 14 years ago
Thanks for the feedback in the comments here!<p>I made a few fixes to Emscripten, and the code that was mentioned that doesn't work, should now work in the demo, for example |for x = 1,10 do print(x) end|.
fbcocqover 14 years ago
It breaks for input as simple as "for x = 1,10 do print(x) end". It's a shame I can't use Lua for browser scripting instead of JS.
评论 #1942036 未加载
评论 #1942837 未加载
评论 #1941738 未加载
ajxover 14 years ago
another interpreted language running inside of an interpreted language... sweet. All we need now is to write a perl interpreter in Lua and then run it inside of the javascript Lua interpreter and we'll really see the scripts slow down to a crawl.
评论 #1941779 未加载