3 ms·
And yet despite that theoretical limit C compiles faster than any other language. Even C++ is very fast if you are not using header-only style. What’s better?
by groundzeros2015 10mo ago
And yet despite that theoretical limit C compiles faster than any other language. Even C++ is very fast if you are not using header-only style.
What’s better? Rust? Haskell? Swift?
It’s very hard to do multithreading at a more granular level without hitting amdahl’s law and synchronization traps.
- pjmlp 10mo agoNo it doesn't, try it against a language with modules support, even the oldie Turbo Pascal for MS-DOS.
- groundzeros2015 10mo agoTurbo pascal compiles faster because of better parallelization?
- gf000 10mo agoIt reminds me of the joke that "I can do math very fast", probed with a multiplication and immediately answering some total bollocks answer. - "That's not even close" - "Yeah, but it was fast" Sure, it's not a trivial problem, but why wouldn't we want better compilation results/developer ergonomics at the price of more compiler complexity and some minimal performance penalty? And it's not like the performance doesn't have its own set of negatives, like header-only libraries are a hack directly manifested from this compilation model.
- groundzeros2015 10mo agoyour topic is shifting from multi-threading benefits in language compilation, to ergonomics of C headers.