← Back to context

Comment by remus

1 day ago

> [some] compiled languages were already doing on PCs running at 10 MHz within the constraints of 640 KB

Many compiled languages are very slow to compile however, especially for large projects, C++ and rust being the usual examples.

It is weird to lump C++ and Rust together. I have used Rust code bases that compile in 2-3 minutes what a C++ compiler would take literally hours to compile.

I feel people who complain about rustc compile times must be new to using compiled languages…

  • There is a way to make C++ beat Rust though.

    Make use of binary libraries, export templates, incremental compilation and linking with multiple cores, and if using VC++ or clang vLatest, modules.

    It still isn't Delphi fast, but becomes more manageable.

True, however there are more programming languages than only C++ and Rust.

Well, spewing out barely-optimized machine code and having an ultra-weak type system certainly helps with speed - a la Go!

  • That's a reasonable trade-off to make for some people, no? There's plenty of work to be done where you can cope with the occasional runtime error and less then bleeding edge performance, especially if that then means wins in other areas (compile speeds, tooling). Having a variety of languages available feels like a pretty good thing to me.

    • But go tooling is bad. Like, really really bad.

      Sure it's good compared to like... C++. Is go actually competing with C++? From where I'm standing, no.

      But compared to what you might actually use Go for... The tooling is bad. PHP has better tooling, dotnet has better tooling, Java has better tooling.

      3 replies →

    • Well, I personally would be happier with a stronger type system (e.g. java can compile just as fast, and it has a less anemic type system), but sure.

      And sure, it is welcome from a dev POV on one hand, though from an ecosystem perspective, more languages are not necessarily good as it multiplies the effort required.

      3 replies →

    • Unfortunately the lack of abstraction and simple type system in Go makes it far _slower_ for me to code than e.g. Rust.