I wonder how tricks that rely on compiler extensions (e.g., computed goto, musttail, and preserve_none) compare against the weval transform? The weval transform involves a small language extension backed by a larger change to the compiler implementation.
I suppose the downside of the weval transform is that it is only helpful for interpreters, whereas the other extensions could have other use cases.
Academic paper about weval: https://dl.acm.org/doi/pdf/10.1145/3729259
My summary of that paper: https://danglingpointers.substack.com/p/partial-evaluation-w...