Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If you want a stupid fast interpreter in C, you do computed goto, write a comment explaining why its not, in fact, cursed, and you're done.

Bit of an aside, but these days it might be worth experimenting with tail call interpreters coupled with `musttail` annotations. CPython saw performance improvements over their computed goto interpreters with this method, for example [0].

[0]: https://lwn.net/Articles/1010905/





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: