News for hackers. Stuff that matters.
Re:Go is still not good by pjmlp on Friday August 22, 2025 @08:45AM (#44983908)
And then people are amazed for it to achieve compile times, compiled languages were already doing on PCs running at 10 MHz within the constraints of 640 KB (TB, TP, Modula-2, Clipper, QB).
Re:Go is still not good by remus on Friday August 22, 2025 @08:51AM (#44983996)
> [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.

Re:Go is still not good by pjmlp on Friday August 22, 2025 @10:03AM (#44984834)
True, however there are more programming languages than only C++ and Rust.
Re:Go is still not good by gf000 on Friday August 22, 2025 @09:01AM (#44984117)
Well, spewing out barely-optimized machine code and having an ultra-weak type system certainly helps with speed - a la Go!
Re:Go is still not good by remus on Friday August 22, 2025 @09:48AM (#44984661)
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.
Re:Go is still not good by Filligree on Friday August 22, 2025 @11:27AM (#44985777)
Unfortunately the lack of abstraction and simple type system in Go makes it far _slower_ for me to code than e.g. Rust.
Re:Go is still not good by gf000 on Friday August 22, 2025 @10:12AM (#44984936)
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.

Re:Go is still not good by pjmlp on Friday August 22, 2025 @11:42AM (#44985955)
It is kind of ironic that from Go's point of view, Java's type system is PhD level of language knowledge.

Especially given how the language was criticised back in 1996.

Re:Go is still not good by Mawr on Friday August 22, 2025 @04:13PM (#44989265)
What do you mean by saying Java compiles just as fast? Do you mean to say that the Java->bytecode conversion is fast? Duh, it barely does anything. Go compilation generates machine code, you can't compare it to bytecode generation.

Are Java AOT compilation times just as fast as Go?

Re:Go is still not good by gf000 on Friday August 22, 2025 @05:22PM (#44989955)
> Duh, it barely does anything. Go compilation generates machine code, you can't compare it to bytecode generation

Why not? Machine code is not all that special - C++ and Rust is slow due to optimizations, not for machine code as target itself. Go "barely does anything", just spits out machine code almost as is.

Java AOT via GraalVM's native image is quite slow, but it has a different way of working (doing all the Java class loading and initialization and "baking" that into the native image).

Re:Go is still not good by const_cast on Friday August 22, 2025 @12:30PM (#44986534)
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.

Re:Go is still not good by ponow on Friday August 22, 2025 @02:39PM (#44988158)
Go was a response, in part, to C++, if I recall how it was described when it was introduced. That doesn't seem to be how it ended it out. Maybe it was that "systems programming language" means something different for different people.
Re:Go is still not good by tom_m on Friday August 22, 2025 @11:33PM (#44992904)
Go tooling is among the best out there. You ever see npm?
Re:Go is still not good by melodyogonna on Saturday August 23, 2025 @12:53PM (#44997224)
Go tooling is fine.
Re:Go is still not good by const_cast on Sunday August 24, 2025 @11:22PM (#45009891)
Again, compared to languages that you probably shouldn't be contorting to make a web backend in, sure. Its better than C++ and JS (npm).

Compared to incumbents like dotnet and PHP? Uhh, no. The tooling is very far behind and cumbersome in comparison.

Re:Go is still not good by adastra22 on Friday August 22, 2025 @12:42PM (#44986664)
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…

Re:Go is still not good by pjmlp on Friday August 22, 2025 @01:14PM (#44987076)
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.

Re:Go is still not good by surajrmal on Sunday August 24, 2025 @02:33AM (#45001881)
If you use lto, rust compilation is far worse for comparable c++ code.
Re:Go is still not good by rollcat on Friday August 22, 2025 @01:48PM (#44987458)
That's a bit unfair to the modern compilers - there's a lot more standards to adhere to, more (micro)architectures, frontends need to plug into IRs into optimisers into codegen, etc. Some of it is self-inflicted: do you need yet-another 0.01% optimisation? At the cost of maintainability, or even correctness? (Hello, UB.) But most of it is just computers evolving.

But those are not rules. If you're doing stuff for fun, check out QBE <https://c9x.me/compile/> or Plan 9 C <https://plan9.io/sys/doc/comp.html> (which Go was derived from!)

Re:Go is still not good by bsder on Friday August 22, 2025 @06:19PM (#44990568)
> That's a bit unfair to the modern compilers

It's really not. Proebsting's Law applies.

Given that, compilers/languages should be optimized for programmer productivity first and code speed second.

Re:Go is still not good by pjmlp on Saturday August 23, 2025 @06:55AM (#44995016)
Indeed, and thankfully there exist languages like D and Delphi to prove as being a modern compiler and fast compilation times are still possible 40 years later.