← Back to context

Comment by thayne

15 hours ago

> very slow compilation times

That isn't always the case. Slow compilations are usually because of procedural macros and/or heavy use of generics. And even then compile times are often comparable to languages like typescript and scala.

Compared to C, rust compiles much slower. This might not matter on performant systems, but when resources are constrained you definitely notice it. And if the whole world is rewritten in Rust, this will have a non-significant impact on the total build time of a bunch of projects.

  • Runtime memory issues probably have a significantly higher total cost.

    But of course that doesn't negate this cost, but building can always be done on another machine as a way to circumvent the problem.

typescript transpilation to js is nearly instant, it's not comparable

  • Good to know, my $DAYJOB project unfortunately isn’t as well informed and we have to use esbuild just to survive.