2026-02-28 19:52 UTC
tired: "Just trust the compiler, it's smarter than you are"
wired: "You are going to generate a fucking jump table, so help me god"
(this has made my GPU bytecode interpreter 1.5× faster)
Replies (3)
-
@mjk@hachyderm.io 2026-03-01 00:21
google's AI overview: "Get ready to learn Chinese, buddy" (尾 is apparently "tail")
-
@lesley@mastodon.gamedev.place 2026-02-28 20:04
@mjk@hachyderm.io I've read that people rely on computed goto or, more recently, Clang's tail call annotations for interpreter loop too
-
@dominikg@mastodon.gamedev.place 2026-02-28 23:20
@mjk@hachyderm.io Have you tried using function pointer tables to guarantee making a jump table? Kind of like I wrote up https://www.dominikgrabiec.com/posts/2025/09/11/compile_time_function_tables.html