2 ms·
This is somewhat off-topic, but if the author is still reading these comments: in the chapter on bytecode, it seems that an obvious alternative was overlooked.
by marvy 13y ago
This is somewhat off-topic, but if the author is still reading these comments: in the chapter on bytecode, it seems that an obvious alternative was overlooked. Don't implement your own little language. Take one that's already there. Lua, Python, JavaScript, there are lots of them! Why not?
- munificent 13y agoI think it mentions Lua and a few others. I think the chapter is equally applicable to those too. It's as much about how to implement your language as it is about how those languages were implemented. (In particular, I learned much of what I know about bytecode VMs from Lua's implementation.)
- marvy 13y agoYes, you mentioned them. But what surprised me is that you never suggested using them, instead of implementing your own. I understand that sometimes implementing your own is the way to go, but surely sometimes it makes sense to just use Lua?