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.

A Lua 5.3 VM and compiler written in Go

196 pointsby erwanover 7 years ago

7 comments

jzelinskieover 7 years ago
There are a couple different Lua implementations in Go. Has anyone researched the difference between them?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;yuin&#x2F;gopher-lua" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yuin&#x2F;gopher-lua</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;Shopify&#x2F;go-lua" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Shopify&#x2F;go-lua</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;milochristiansen&#x2F;lua" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;milochristiansen&#x2F;lua</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;afitz&#x2F;golua" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;afitz&#x2F;golua</a>
评论 #15389465 未加载
ComputerGuruover 7 years ago
A _partial_ implementation without IO, pattern matching, or coroutines.<p>Nothing to see here, really. Just remaps basic Lua syntax to Go without actually _implementing_ what makes Lua useful.
评论 #15390437 未加载
评论 #15391666 未加载
评论 #15391321 未加载
bpizziover 7 years ago
Slightly related: I&#x27;m in the process of choosing the best way to give our Go binaries some scripting capabilities (it&#x27;s entreprise stuff, the idea is &quot;let&#x27;s the customer script this behaviour&quot;).<p>I&#x27;m aware of Lua and JS interpreters, some fully native, some made of binding against existing interpreters. Native JS interpreters have my preference right now: easier to build&#x2F;maintain, I can bear the loss of perfs, and JS seems easier to sell than Lua (remember it&#x27;s entreprise stuff).<p>Does anyone have some insight or experience in that area and care to give feedback to a fellow HNer? And did I miss other scripting languages?
评论 #15391246 未加载
评论 #15391750 未加载
throwaway2016aover 7 years ago
This is really interesting for me personally because I just completed writing an interpreter in Golang and it&#x27;s great to compare and contrast.<p>One thing I noticed is that the parser is hand written. Which is interesting. I always preferred to write my parsers in Yacc and Go actually has Yacc as a built in tool (although know Lex).<p>Edit: I went through the list someone else posted and only one of the implementations actually has a Yacc grammar file in it.
评论 #15389899 未加载
评论 #15389582 未加载
评论 #15391098 未加载
评论 #15389470 未加载
lasfterover 7 years ago
What is the use in Lua without pattern matching or coroutines?
评论 #15389624 未加载
gaigeprover 7 years ago
Is the security policy that is used as a reason to not implement a bunch of stuff documented somewhere?
评论 #15389270 未加载
alvilover 7 years ago
Crippled Lua
评论 #15391062 未加载