News for hackers. Stuff that matters.
Re:Rust Is Surprisingly Good as a Server Language by _-___________-_ on Monday July 13, 2020 @03:56AM (#23818266)
> I had a 10 second compilation cycle to add a comment to a file in a project with a couple hundred lines of code and like 4 lines in my cargo.toml.

Why compile again after adding a comment?

Re:Rust Is Surprisingly Good as a Server Language by im3w1l on Monday July 13, 2020 @07:10AM (#23819449)
In fast-compiling languages, it's viable to have recompile-on-file-save or even continuous recompilation. Modern (and they aren't that modern anymore) IDE's will show red squiggles under code with compilation errors without requiring any action at all.
Re:Rust Is Surprisingly Good as a Server Language by mlindner on Monday July 13, 2020 @08:41AM (#23820106)
That's already provided by other tools than the compiler like rust analyzer.
Re:Rust Is Surprisingly Good as a Server Language by johnfn on Monday July 13, 2020 @01:52PM (#23823515)
This was meant as an example, not something I'd literally do.

The most common trivial change would be to add a dbg! statement.

Re:Rust Is Surprisingly Good as a Server Language by bluecmd on Monday July 13, 2020 @03:59AM (#23818297)
Build systems usually don't care what you added. Modification of source means rebuild.
Re:Rust Is Surprisingly Good as a Server Language by _-___________-_ on Monday July 13, 2020 @04:31AM (#23818500)
Yes, but the programmer knows what they added, and I was asking why they wanted to build again if all they added was a comment? If this was in a CI context then 10 seconds seems unimportant; compile times of 10 seconds are usually only complained about in the context of programmers who've gotten used to tiny edit-compile-test cycles.
Re:Rust Is Surprisingly Good as a Server Language by entha_saava on Monday July 13, 2020 @06:24AM (#23819172)
In order to ensure the next rebuild on an actual code change doesn't need to compile this comment-changed file, I guess.