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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: LadyLua, batteries-included static Lua 5.1 interpreter

61 点作者 Propolice大约 4 年前

6 条评论

marktangotango大约 4 年前
Nice effort, my main question is why not the &quot;standard&quot; go lua wrapper, golua[1]? More specifically, why implement a lua interpreter in go, when there is a perfectly useable c-api wrapper for go?<p>[1] <a href="https:&#x2F;&#x2F;pkg.go.dev&#x2F;github.com&#x2F;aarzilli&#x2F;golua&#x2F;lua" rel="nofollow">https:&#x2F;&#x2F;pkg.go.dev&#x2F;github.com&#x2F;aarzilli&#x2F;golua&#x2F;lua</a>
评论 #26739413 未加载
chgibb大约 4 年前
This is really cool!<p>Why Lua 5.1 and not 5.2 or 5.3? What does the marshalling story between Lua and the builtin Go modules look like? What would it take to add more builtins or richer marshalling?<p>I love seeing other Lua implementations.
评论 #26740662 未加载
评论 #26740620 未加载
评论 #26740930 未加载
the_duke大约 4 年前
Go seems like a suboptimal language for implementing an interpreter, since it lacks the low level primitives to make a fast interpreter loop.<p>But I guess, as will all things Go, that it will be fast enough for a good amount of use cases, and having a language native dependency rather than messing with C libraries is always a plus.
评论 #26741047 未加载
评论 #26742072 未加载
评论 #26741501 未加载
Evidlo大约 4 年前
I think the readme could use some examples of where this might be useful
评论 #26738602 未加载
the_hoser大约 4 年前
This doesn&#x27;t appear to really do anything to address the one big problem I&#x27;ve had with using Lua for larger applications. Does GopherLua still have global-by-default variables?
评论 #26742337 未加载
BugsJustFindMe大约 4 年前
It&#x27;s a real shame to pin to Lua 5.1 but not use LuaJIT.
评论 #26741096 未加载