3 ms·
I wonder if a solution to your use case could look something like mrustc: https://github.com/thepowersgang/mrustc https://github.com/thepowersgang/mrustc The i
by jeffparsons 4y ago
I wonder if a solution to your use case could look something like mrustc: https://github.com/thepowersgang/mrustc https://github.com/thepowersgang/mrustc
The idea here would be to compile in a way that just assumes everything is correct and either crashes catastrophically or produces invalid output otherwise. But in doing so, it should allow at least slightly faster compilation.
You could even remove the need for this "fast and loose" compiler to do any type inference by shipping pre-processed source with all types resolved. However I don't know if this addition would fit your needs if, e.g., your goal is to be able to compile from any given commit rather than only official releases.
At very least it could be an interesting experiment to discover what tradeoffs are possible.