TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Luje 0.1 – a pure Lua JVM

160 点作者 leafo超过 11 年前

7 条评论

jacques_chester超过 11 年前
David Given is one of those prolific thinkers and doers who seem to be overrepresented in the Lua community.<p>He&#x27;s probably best known to HNers for his critical article &quot;On Go&quot; and Objective Lua.<p><a href="http://cowlark.com/2009-11-15-go/" rel="nofollow">http:&#x2F;&#x2F;cowlark.com&#x2F;2009-11-15-go&#x2F;</a> <a href="https://cowlark.com/objective-lua/index.html" rel="nofollow">https:&#x2F;&#x2F;cowlark.com&#x2F;objective-lua&#x2F;index.html</a>
评论 #6506696 未加载
tinco超过 11 年前
The article makes a rather hefty claim, that it is comparable or even in some ways faster performancewise than Sun&#x27;s hotspot JVM.<p>From what I&#x27;ve heard the JVM is one of the most heavily researched and optimized bytecode VM out there. Could it really be that some guy can write a competitor in a scripting language in his spare time?<p>Not saying it&#x27;s impossible, just curious if there&#x27;s anything to back that claim up, besides the very specific microbenchmarks.<p>edit: I was a bit too quick to comment, reading again he doesn&#x27;t really claim to be faster at anything other than small loops. Still interested if it&#x27;s fast at any real world things though.
评论 #6505853 未加载
评论 #6505818 未加载
评论 #6505801 未加载
评论 #6505807 未加载
评论 #6505799 未加载
评论 #6506015 未加载
hbbio超过 11 年前
It&#x27;s an impressive project that shows the extraordinary work of a single developer, Mike Pall. LuaJIT is not only an incredibly beautiful JIT, the current project also demonstrates it can run generated code efficiently, which is probably the hardest thing to do for a language.<p>When implementing Opa in OCaml, we run into tons of problem since the OCaml runtime was unable to run generated code efficiently. One of its author, Pierre Weis told us at the time: &quot;it&#x27;s normal, OCaml is not meant to run generated code at all&quot;.<p>As a side note regarding Luje source code: Fossil must be great and all that but having the code on a publicly available Git repository would probably bolster contributions.
评论 #6507143 未加载
doublec超过 11 年前
There&#x27;s an interesting paper about a similar project that was done using Self [1]. &quot;Design and Implementation of Pep, a Java Just-In-Time Translator written in Self&quot;<p>It goes through details with benchmarks. The PEP code is available with the Self distribution. They were able to get faster than the Java implementation at the time. Back then Java was interpreted though.<p>[1] <a href="http://bluishcoder.co.nz/self/97-pep.pdf" rel="nofollow">http:&#x2F;&#x2F;bluishcoder.co.nz&#x2F;self&#x2F;97-pep.pdf</a>
评论 #6506683 未加载
JulianMorrison超过 11 年前
Isn&#x27;t this going to be intrinsically restricted to one numeric type? Lua numbers are all the same type (double by default).
评论 #6507661 未加载
评论 #6507667 未加载
swah超过 11 年前
Is LuaJIT bytecode a good target for toy languages?
taranka231超过 11 年前
is there any java&#x2F;lua interop?