4 ms·
What is the use in Lua without pattern matching or coroutines?
by lasfter 9y ago
What is the use in Lua without pattern matching or coroutines?
- wruza 9y agoThis 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.
- weberc2 9y ago> 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? :)
- wruza 9y agovm.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.