News for hackers. Stuff that matters.
Re:A Lua 5.3 VM and compiler written in Go by wruza on Monday October 02, 2017 @10:19PM (#15389624)
This project may have a value as interpreter/vm implementation, not as substitution of any sort. Table iterators and weak references are also missing. Name choice seems pretty arbitrary, so author surely could just mention that this vm was inspired by Lua and not name it alike.

The statement that he could easily implement coroutines via go seems like oversimplification or lack of problem domain understanding.

Re:A Lua 5.3 VM and compiler written in Go by weberc2 on Monday October 02, 2017 @11:05PM (#15389817)
> The statement that he could easily implement coroutines via go seems like oversimplification or lack of problem domain understanding.

For someone with a lack of problem domain understanding, could you elaborate on this? :)

Re:A Lua 5.3 VM and compiler written in Go by wruza on Tuesday October 03, 2017 @12:49AM (#15390251)
vm.go/l.call doesn't seem to be reentrant (though I'm not native go speaker). This means that yielding across, e.g. for-loop [edit:]iterators, would leave vm with broken invariants. There are also pcalls that must be dealt with. But since this language is just similar and differs in too many things, explicit restrictions may help solve that, like it was done for <= 5.1.