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

63 pointsby iambotalmost 12 years ago

6 comments

brualmost 12 years ago
&gt;Score: 130<p>&gt;binarytrees 46.051 seconds<p>Without any frame of reference, those values are meaningless.<p>However there is one I can evaluate:<p>&gt;1.58 MFLOPS<p>Given I have an i7-2600 and its flops on benchmarks[1] (FPU Flops score: 8500.09 MFlops), that tells me something I could have guessed: performance is 3 orders of magnitude worse than native high performing code.<p>Still, in order for this comparison to be complete, I&#x27;ll have to<p>- try this benchmark in Firefox with OdinMonkey, the new and very promising JS engine[2]<p>- run a similar benchmark with &quot;native&quot; LUA<p><i>edit</i>: results obtained on W7 SP1 with 16GO RAM and Chrome 27.<p>1: <a href="http:&#x2F;&#x2F;www.maxxpi.net&#x2F;results&#x2F;show.php?ID=c3x2c5w6d7b7" rel="nofollow">http:&#x2F;&#x2F;www.maxxpi.net&#x2F;results&#x2F;show.php?ID=c3x2c5w6d7b7</a><p>2: did you know the logo was awesome? <a href="https:&#x2F;&#x2F;wiki.mozilla.org&#x2F;File:Odinmonkey800.jpg" rel="nofollow">https:&#x2F;&#x2F;wiki.mozilla.org&#x2F;File:Odinmonkey800.jpg</a>
评论 #5917851 未加载
评论 #5917570 未加载
评论 #5918145 未加载
评论 #5922227 未加载
justincormackalmost 12 years ago
Would be interesting to compare performance to the other ways of getting Lua to run in the browser, which include writing a Lua bytecode interpreter in JS, converting Lua to JS, and code generation from bytecode.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;creationix&#x2F;brozula" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;creationix&#x2F;brozula</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;mherkender&#x2F;lua.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mherkender&#x2F;lua.js</a> (and others, I had a list somewhere)<p>Quite a few companies are using Lua-&gt;JS as a way of doing write once run cross platform games eg we had this talk at London Lua <a href="http:&#x2F;&#x2F;www.londonlua.org&#x2F;luajavascript&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;www.londonlua.org&#x2F;luajavascript&#x2F;index.html</a>
评论 #5918000 未加载
acron0almost 12 years ago
I have no immediate use for this but goddamnit, it&#x27;s cool.
评论 #5918891 未加载
manuletrollalmost 12 years ago
Does anyone know of a good &quot;compile to js&quot; lua implementation ?
评论 #5917432 未加载
rajahafifyalmost 12 years ago
When people blog about don&#x27;t use default bootstrap template, I often take it with a grain of salt. Now i&#x27;m absolutely positive.
评论 #5918112 未加载
评论 #5918119 未加载
otikikalmost 12 years ago
&lt;3 &lt;3 &lt;3