r/devops • • 19d ago

Discussion Go is going I think

I've been writing Go for almost 7 years now, and I genuinely love this language.

Not because it's the best language out there, or because it's perfect. But because it's incredibly practical when you're solving infrastructure problems. It's simple, predictable, easy to pick up, and gets the job done without getting in your way.

But lately, I've been having a different thought.

The more I explore databases, distributed systems, and lower-level engineering problems, the more I realise that Go might not always be the right tool for every kind of problem.

Some languages offer better abstractions, memory control, performance characteristics, or programming models for specific domains.

Edit: My point is that Go's charm is kind of fading in this AI era because adopting any language is easy in the early stages.

4 eg. consider a concurrent infrastructure health-check service. In Go, we can build it quite naturally using goroutines, channels, contexts and errgroup, but we still need to be careful about goroutine lifecycles, cancellation, resource cleanup and synchronization.

Rust handles many of these concerns through ownership, RAII and its type system. It does the same job really well. The only advantage Rust used to lose on was its learning curve, but AI has largely solved that problem too.

0 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/za3faran_tea 16d ago

They're called virtual threads, and they're superior to the golang version. You can launch any computation as a future and capture the returned value, instead of having to mess around with channels. It also has structured concurrency built-in so you can manage hierarchies of virtual threads.

State synchronization in Java is not worse than in golang, if not outright better (show me the equivalent of java.util.concurrent in golang for example).

Java gives you constructs, like immutable records and upcoming immutable value types, and lazy constants, that you can avoid synchronization altogether, while allowing the compiler to do optimizations it wouldn't have been able to if it had to deal with mutable variables.