by wallstop · 1w ago · 0 comments
Just because the code isn't baked into the binary doesn't mean that it theoretically can't be done at runtime. At least, AFAICT.
IMO the big issue is AOT compilers only compile code that is referenced statically. Without a JIT you would have no choice but to error if you try to call something that wasn't compiled in. Compiling everything is not an option because generics.
An approach that doesn't need runtime would be to allow reflection for types provided at compile time (say, with a config file). There are many ways to approach reflection, from none to some to full. This appears to have chosen none. It could have chosen some, or potentially even full.