Hacker GitHub

← All repos

yuin/gopher-lua

View on GitHub ↗ ★ 6,999 Go

GopherLua: VM and compiler for Lua in Go

13 mentions on Hacker News by 12 people: 1 story, 12 comments · first 2015-02-21 · latest 2026-05-13

Mentions per year 13 mentions · busiest year 2015 (4)
20082026
  1. …write a new server today, I could very well write it in Go, then use GopherLua for the Lua engine: https://github.com/yuin/gopher-lua Although, even here, the advantage of C is that I could increase performance by using LuaJIT:…
  2. …I measured a small perf improvement switching gopher-lua to switch: https://github.com/yuin/gopher-lua/pull/479 edit: looking closer, not sure `compiler.CallBuiltin` is doing them a favor anymore. They seem to have a lot of do
  3. …CGO) Lua implementations for Go and it's a great choice if you want an embedded scripting language: https://github.com/yuin/gopher-lua https://github.com/Shopify/go-lua Unless you specifically need a JVM either of these will be a much more…
  4. python, Lua and JS These functions are implemented by these packages: github.com/dop251/goja github.com/yuin/gopher-lua go.starlark.net Go scripts (programs) are not subject to any restrictions. So there is no Go script support in the…
  5. I'm generally using Visual Studio Code for all my development. Really like it. I chose https://github.com/yuin/gopher-lua as the Lua engine because it is Golang-based, while the Nginx Lua VM is C, unless I'm mistaken. Using gopher-lua is…
  6. Some other implementations of Lua: https://github.com/yuin/gopher-lua Lua in Go https://github.com/fengari-lua/fengari Lua in Javascript https://github.com/moonsharp-devs/moonsharp Lua in C#
    comment by strenholme · 2021-12-27 · in Lua: Good, Bad, and Ugly Parts (2012)
  7. …- these are all considered different major versions of the language (Lua doesn’t use SemVer). [0] https://github.com/yuin/gopher-lua [1] https://github.com/Shopify/go-lua [2] https://github.com/Azure/golua
  8. …a couple different Lua implementations in Go. Has anyone researched the difference between them? https://github.com/yuin/gopher-lua https://github.com/Shopify/go-lua https://github.com/milochristiansen/lua https://github.com/afitz/golua
    comment by jzelinskie · 2017-10-02 · in A Lua 5.3 VM and compiler written in Go
  9. This seems to be a thin wrapper for the actual Lua VM implemented in Go: https://github.com/yuin/gopher-lua
  10. …also GopherLua [1], which is more active and supports features like coroutines and channels. [1] https://github.com/yuin/gopher-lua
    comment by ferbivore · 2015-09-07 · in Proposal for a Go Interpreter
  11. …it in a web server that executes Lua with requests, take a look at the LState pool pattern[1]. [1] https://github.com/yuin/gopher-lua#the-lstate-pool-pattern
  12. …the same opcodes and the main VM loop looks very similar: http://www.lua.org/source/5.1/lvm.c.html https://github.com/yuin/gopher-lua/blob/master/vm.go It's interesting because the Go source appears to be annotating certain patterns with…
    comment by haberman · 2015-02-21 · in GopherLua: VM and Compiler for Lua in Go
  13. ▲ 147
    GopherLua: VM and Compiler for Lua in Go
    story by tombenner · 2015-02-21 · 16 comments