Rust Compile Times and Code Graphs
blog.danhhz.com
Rust Compile Times and Code Graphs
1–10 of 17 posts
Re: Rust Compile Times and Code Graphs
#2I think that part of “compile times suck” is that, when we are learning, we are building extremely small programs. Hundreds of lines at the very top end. During this phase of our personal development, we build a habit of writing a line of code, then compiling. Then changing an index, then compiling. Then realize we use a wrong variable, then compile. Then then compile.
Somewhere along the way, we get to needing to build thousands or hundreds of thousands of lines, and there’s very frequently no build up to this so our habit of making very minor change and then making the compiler tell us what’s wrong hurts.
Re: Rust Compile Times and Code Graphs
#32 minutes isn’t even really bad build times. I think that part of “compile times suck” is that, when we are learning, we are building extremely small programs. Hundreds of lines at the very top end. During this phase of our personal development, we build a habit of writing a line of code, then compiling. Then changing an index, then compiling. Then realize we use a wrong variable, then compile. Then then compile. Som…
Re: Rust Compile Times and Code Graphs
#42 minutes isn’t even really bad build times. I think that part of “compile times suck” is that, when we are learning, we are building extremely small programs. Hundreds of lines at the very top end. During this phase of our personal development, we build a habit of writing a line of code, then compiling. Then changing an index, then compiling. Then realize we use a wrong variable, then compile. Then then compile. Som…
Re: Rust Compile Times and Code Graphs
#5What I mean by this is that if Rust tracked dependency information at the level of “my function too dependent on type declarations XYZ from crate A” vs “my function depends on the implementation of function in crate A”, then the Rust compiler would automatically apply this for you. It wouldn’t eliminate all dependency massaging, but it would eliminate the need for purely mechanical tasks and be more optimal (eg rearranging the internal fields of a crate shouldn’t dirty that dependency chain)
Re: Rust Compile Times and Code Graphs
#62 minutes isn’t even really bad build times. I think that part of “compile times suck” is that, when we are learning, we are building extremely small programs. Hundreds of lines at the very top end. During this phase of our personal development, we build a habit of writing a line of code, then compiling. Then changing an index, then compiling. Then realize we use a wrong variable, then compile. Then then compile. Som…
if you have a reasonably good IDE you don't really need to explicitly compile the whole program outside of when you want to run it.
Re: Rust Compile Times and Code Graphs
#72 minutes isn’t even really bad build times. I think that part of “compile times suck” is that, when we are learning, we are building extremely small programs. Hundreds of lines at the very top end. During this phase of our personal development, we build a habit of writing a line of code, then compiling. Then changing an index, then compiling. Then realize we use a wrong variable, then compile. Then then compile. Som…
If it can't compete with the compile times from. NET, Java, Dart, Typescript then it won't be used by most folks.
C++ already lost the GUI wars for a reason, now stuck being the low level implementation language for GUI frameworks, driven by other languages.
Re: Rust Compile Times and Code Graphs
#82 minutes isn’t even really bad build times. I think that part of “compile times suck” is that, when we are learning, we are building extremely small programs. Hundreds of lines at the very top end. During this phase of our personal development, we build a habit of writing a line of code, then compiling. Then changing an index, then compiling. Then realize we use a wrong variable, then compile. Then then compile. Som…
Which is exactly what we need when doing GUI and games in Rust. If it can't compete with the compile times from. NET, Java, Dart, Typescript then it won't be used by most folks. C++ already lost the GUI wars for a reason, now stuck being the low level implementation language for GUI frameworks, driven by other languages.
Re: Rust Compile Times and Code Graphs
#92 minutes isn’t even really bad build times. I think that part of “compile times suck” is that, when we are learning, we are building extremely small programs. Hundreds of lines at the very top end. During this phase of our personal development, we build a habit of writing a line of code, then compiling. Then changing an index, then compiling. Then realize we use a wrong variable, then compile. Then then compile. Som…
Compiling to see if you have syntax errors? What do you not have an editor?
Re: Rust Compile Times and Code Graphs
#10I really dislike the need to artificial decompose crates in this way. If Rust could accurately track dependencies at a more fine-grained level, then no one would do this because it adds complexity. It’s like optimizing assembly but for build systems. What I mean by this is that if Rust tracked dependency information at the level of “my function too dependent on type declarations XYZ from crate A” vs “my function depe…