|
|
|
|
|
by wallstop
8 days ago
|
|
I mean, yes, but also, no - you can generate and cache (or return manual ownership to the caller) IL/whatever runtime code that doesn't box for any reflection thing that you need on the fly, assuming the type information is available. Like you make it an explicit API to do the code gen, no JIT required. 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.