by chrisseaton · 11y ago · 0 comments
RPython's technique also only works for JITs, and neither Swift nor Rust use a JIT in their normal compilation pipeline. Generation of compilers by partial evaluation of an interpreter is interesting, but as far as I know it has never been used in an industrial strength implementation of a language.
This would be akin to asking why do we need a C++-specific AST and a Swift-specific AST.