4 ms·
A big pain is still JIT compilation. Last time I used rust, even small changes to code required a full re-compilation.
by krisdol 10y ago
A big pain is still JIT compilation. Last time I used rust, even small changes to code required a full re-compilation.
- steveklabnik 10y agoTo be clear: Rust doesn't have a JIT. But we've been doing a lot of work on incremental recompilation, which will fix this problem. (Or rather, we've been working on the precursor requirement, MIR.) To be extra clear, a crate is the unit of compilation in Rust, so changing your code means that the whole crate it's in needs recompiled; your dependencies won't be. Or, if your project is split up into multiple crates, the other ones won't. Incremental recompilation will reduce this level of granularity such that the whole crate won't need to be recompiled.
- matthewmacleod 10y agoAre you sure you mean JIT rather than incremental compilation? The former is a pretty different concept that AFAIK Rust has no implementation of. I think we are likely to see better incremental support with the recent development of MIR, but I'm not sure what the current plans are. Should help tooling around the language generally!
- krisdol 10y agoYou are correct. I doubted JIT was the right word at the time but couldn't think of the right term. Incremental support is what I mean.