2 ms·
You can coroutine if you want, but it's not difficult to write an efficient interpreter - some keywords are "direct threading" or "code copying JIT".
by astrange 4y ago
You can coroutine if you want, but it's not difficult to write an efficient interpreter - some keywords are "direct threading" or "code copying JIT".
- MarceColl 4y agoI think you are mixing things here. Only the first part of the post is about "writing" an interpreter for this fantasy ISA, for which I leverage the macro system of fasm. direct threading and code copying JIT has nothing to do with the coroutine part of the post.
- astrange 4y ago> Some years ago I did some tests around this idea and the VMs I came up with were underperforming messes of either rust or C. There was no way I could deliver the performance I had in mind with that. It's a way to do that efficiently.