I’m starting to believe that one of the reasons why Rust is perceived to compile more slowly than C++ is that Rust *forces* use of “modern C++” idioms everywhere, while industrial C++ tends to be more C-like than C++ fans want to admit.
-
-
Replying to @pcwalton
I expected Rust to be much faster than C++ because of all the preprocessor generated code that rustc doesn't have to care about. Sophisticated code generation (LLVM) seems to be the source of most of the slowness, no matter the language.
1 reply 0 retweets 2 likes -
Cargo check is great though. Compile times are slowish, but often I just want to check: Will it compile?
2 replies 0 retweets 1 like -
I think you can get some approximation of that in clang or gcc with -fsyntax-only. Isn’t as comprehensive a check as cargo iirc
2 replies 0 retweets 1 like
Yeah, that switch would have to perform at least parsing and typechecking, since you can’t parse C++ without checking types…
5:08 PM - 30 Apr 2018
from South Beach, San Francisco
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.