I was reading https://blog.rust-lang.org/2017/07/05/Rust-Roadmap-Update.html, which mentioned that the Rust compiler now has a mode to go through the motions of compiling and show errors, but without generating any code. This way you can do a much faster build while iterating until you have no compile errors, then do a single build with code generation once everything looks good.

I was wondering what people's thoughts on this was. I haven't gone digging through DMD's codebase recently. Is DMD set up in such a way that this would be feasible to implement? Does this even make sense with the way DMD generates code, or would it only work for a language like Rust that does a ton of compile-time checking?

DMD already compiles pretty fast, and this strikes me as a useful feature to further cement D's competitive edge with respect to compilation speed.

Reply via email to