gopher-lua icon indicating copy to clipboard operation
gopher-lua copied to clipboard

GopherLua: VM and compiler for Lua in Go

Results 120 gopher-lua issues
Sort by recently updated
recently updated
newest added

Replace with method checking nilness of GFunction This reduces size of LFunction struct by 8 bytes

https://github.com/BixData/gluabit32 is a 404 now, so implement a fresh bit32 for gopher-lua

After finding LVAsBool typo, scanned rest of codebase with `rg '^func' -B1 | rg '-//' -A1`

In the past five years dependencies have gotten past v0.0.0

A couple years ago the go compiler finally implemented jumptables for switch: https://go-review.googlesource.com/c/go/+/357330 In order to avoid function call overhead of `evalInstruction`, a mainLoop/mainLoopWithContext are combined for inlining Benchmarks done...

reflect.SliceHeader is deprecated in favor of unsafe functions introduced in go 1.20 alloc's fheader was unused, so remove, leaving only unsafeFastStringToReadOnlyBytes to port

You **must** post issues only here. Questions, ideas **must** be posted in [discussions](https://github.com/yuin/gopher-lua/discussions). - [ ] GopherLua is a Lua5.1 implementation. You should be familiar with Lua programming language. Have...

Fixes # . Changes proposed in this pull request: a. fix README format error Before fix: ![image](https://github.com/yuin/gopher-lua/assets/10785626/cdd65be1-89f1-4b80-8856-78da550d4fb8) After fix: ![image](https://github.com/yuin/gopher-lua/assets/10785626/0e5a86a5-06f1-486d-bb29-301004886301) b. add awesome-gopher-lua

eg: local testTable = {} testTable[4001126229] = xxxxx it will malloc a lot memory.

![image](https://github.com/user-attachments/assets/5f7a6160-7c26-4256-bd44-f8cf197ecc15) I call the Lua script function cyclically in the go code, but using pprof shows that the memory occupied by recursiveVM is too high.