2 ms·
Show me a module based language that maintains the same parallelism of compiles.
by charcircuit 3y ago
Show me a module based language that maintains the same parallelism of compiles.
- pjmlp 3y agoC#, compiling in parallel since the C++ compiler was replaced with a C# written one, beating C++ traditional compile times hands down. Go, compiling code in parallel since Go 1.19. One is able to compile the whole toolchain from scratch faster than many C++ codebases. Active Oberon, compiling in parallel via the Paco toolchain since 2003, a full graphical workstation OS, built in a couple of minutes. Ada, parallel compilation available in most toolchains since 1989. Also available in GNAT. Delphi, yet another example. It is C++ that needs to get up to date with modern toolchains and away from hacks like unity builds.
- neonsunset 3y agoGo compiler does incomparably less work than GCC. Arguably, GCC could have been faster, but this is somewhat apple to oranges comparison. The closer one possibly is comparing .NET Native AOT and GCC, where the compilation times and memory use start not to differ that much because of significant amount of work required to properly optimize and link all assemblies/compilation units. Otherwise, I agree that LLVM and GCC are not an end all and be all, and have significant issues with compilation performance.
- pjmlp 3y agoNotice how you ignored the existence of .NET Native, Ada, Delphi. While I can pick other examples, I can't be bothered providing an exaustive list of every single language with compiler toolchains doing parallel compilation.
- neonsunset 3y ago.NET Native is dead and when Ada or Delphi were in their prime I did not even have a computer which is why they got no mention :)