3 ms·
> Rust is the first language I've seen that is trying to do something about it. I think the idea is that MIR is an intermediate language that still retains type
by shpongled 6y ago
> Rust is the first language I've seen that is trying to do something about it. I think the idea is that MIR is an intermediate language that still retains type information, after lifetimes have been resolved. Using this, they can implement better analysis and preoptimize code before it hits LLVMs optimizers.
MLton also keeps type information around basically until machine code generation (as far as I understand, at least). There have also been several interesting papers/projects about typed assembly languages.