News for hackers. Stuff that matters.
Re:Anthropic acquires Bun by ozim on Tuesday December 02, 2025 @06:55PM (#46128583)
From what I gather everyone is still stuck on Java 8 so no need to check?
Re:Anthropic acquires Bun by foo4u on Tuesday December 02, 2025 @07:27PM (#46128804)
This is absolutely untrue. Code from JDK 8 runs fine on JDK 25 (just released LTS). It is true that if you did something silly that locks you into certain dependency versions, you may be stuck, but this is not the majority of applications.
Re:Anthropic acquires Bun by vips7L on Tuesday December 02, 2025 @08:51PM (#46129374)
No, everyone isn’t. You really should check.
Re:Anthropic acquires Bun by throwaway7783 on Tuesday December 02, 2025 @09:07PM (#46129481)
Where do you gather this from? We are a startup, on Java and on 25.
Re:Anthropic acquires Bun by pylotlight on Wednesday December 03, 2025 @03:27AM (#46131702)
Why didn't you choose something more modern/sensible. go/kotlin/anything else on the planet?
Re:Anthropic acquires Bun by gf000 on Wednesday December 03, 2025 @05:23AM (#46132757)
Go is more verbose than Java though, in what way would it be more sensible?

Also, Java's ecosystem is unparalleled (top 3 in size, depending on domain it usually has the best packages (e.g. typical backend-related functionality)), has stellar performance, a huge developer base, best-in-class IDE support, even LLMs understand it exceptionally well (given how widely represented it is in the training corpus, plus has a decent type system) if that's your thing.

For a typical backend system, you really have to have a good reason to choose something else at this point.

Re:Anthropic acquires Bun by codr7 on Wednesday December 03, 2025 @10:17AM (#46135455)
Except for Kotlin, which is a much nicer language to deal with.
Re:Anthropic acquires Bun by throwaway7783 on Wednesday December 03, 2025 @10:25AM (#46135552)
Little nicer for sure
Re:Anthropic acquires Bun by lenkite on Wednesday December 03, 2025 @01:05PM (#46137795)
A nicer language which is much slower to compile compared to Java.
Re:Anthropic acquires Bun by codr7 on Tuesday December 09, 2025 @02:37PM (#46209517)
If that's the only price, I'll take it.
Re:Anthropic acquires Bun by zeroc8 on Thursday December 04, 2025 @03:53AM (#46145292)
Java is ok for typical backend stuff, but Go doesn't hide things the way Java does. With Go, you actually learn what's going on, while with Java, you just learn your way around the various frameworks. As a programmer, I don't want that That said, my current company uses Spring Boot. It does its job, but it wouldn't be my top choice.
Re:Anthropic acquires Bun by throwaway7783 on Thursday December 04, 2025 @12:58PM (#46150640)
It is the programmer's job to learn what is going on. Java itself doesn't hide anything from you. You are free to write a servlet from scratch, or use a framework like Spring to hide everything. Your (company's) choice really.

People end up choosing something that has batteries included so they can focus on solving business problems. A programmer who will superficially understand SpringBoot without understanding how it works. Really, there is no magic there - its a few core concepts - annotations, bytecode enhancement and dynamic proxies. Maybe Im missing one or two. Everything else is built on top of this.

This is regardless of language/ecosystem. If I do not understand the fundamental concepts, I will never be successful in that ecosystem.

Re:Anthropic acquires Bun by zeroc8 on Thursday December 04, 2025 @06:43PM (#46154891)
The layer in Go is much thinner, if I want to learn about a new concept or technology. Of course there is no magic, if you are willing to put the time in. The question is how much time is required.
Re:Anthropic acquires Bun by gf000 on Friday December 05, 2025 @03:09AM (#46157922)
The layer is thinner because you can't create abstractions as well in that language.

But that's like saying that a bicycle is better than a car, because the first is simpler to understand. (At the same time, nothing prevents you from assembling a bicycle in Java if that's indeed what you need. But for general long distance travel you are better off starting with a car frame, aren't you?)

Re:Anthropic acquires Bun by throwaway7783 on Wednesday December 03, 2025 @10:24AM (#46135537)
While kotlin is somewhat nicer, it is not making a huge difference compared to java25. Like the sibling said, go is as verbose , the JVM is unparalleled still.

Why wouldn't I choose java

Re:Anthropic acquires Bun by BobbyJo on Wednesday December 03, 2025 @02:51PM (#46139138)
Golang has a way smaller memory footprint on average.

I left a place using Java to run edge apps and the footprint was a major issue.

Re:Anthropic acquires Bun by krzyk on Wednesday December 03, 2025 @10:58AM (#46135996)
Kotlin sensible? It plays catchup game with newest JDKs.
Re:Anthropic acquires Bun by gf000 on Wednesday December 03, 2025 @05:20AM (#46132734)
Even stuck on Java 8 it's less verbose than Go, which everyone seems to love.

But the majority of projects are on a newer JDK than 8 for quite some years now.

Re:Anthropic acquires Bun by the_gipsy on Wednesday December 03, 2025 @05:33AM (#46132848)
Not even latest Java is less verbose than Go.
Re:Anthropic acquires Bun by gf000 on Wednesday December 03, 2025 @05:40AM (#46132905)
Are we talking about the language that has a couple extra lines after every statement, disguising as error handling?
Re:Anthropic acquires Bun by the_gipsy on Wednesday December 03, 2025 @07:48AM (#46133880)
go's error handling is very poor and too verbose, but go is still way less verbose than Java overall. Like any other language.

Java is the running joke of verbosity, and you are too if you seriously argue that it's not.

Re:Anthropic acquires Bun by gf000 on Wednesday December 03, 2025 @08:30AM (#46134263)
Feel free to provide some evidence. Like really, I would be interested in examples e.g. from the Java stdlib that are significantly more verbose than another generic purpose language.

But I do know that you are meaning stuff like AbstractFactoryFactory, but you do realize that there is zero need to write anything like that and you can (and people do) write bad code in any language?

Re:Anthropic acquires Bun by groundzeros2015 on Wednesday December 03, 2025 @10:50AM (#46135871)
Why is the quality of discourse in this thread so low?
Re:Anthropic acquires Bun by the_gipsy on Wednesday December 03, 2025 @12:50PM (#46137600)
You started it, where's your evidence?
Re:Anthropic acquires Bun by lenkite on Wednesday December 03, 2025 @01:08PM (#46137835)
Coding repetitive for-loops for everything and mind-numbing error handling put everywhere makes line count bloat up like crazy. Go is one of the most verbose languages I have seen and I say this as a guy coding in Go in my daily work.

Evidence is easy - think of a problem and ask LLM to generate idiomatic examples (leverage Java streams, with functional decomposition, etc) in Go and Java and with error handling. You will find that more often than not, the Java line count is far smaller.

Re:Anthropic acquires Bun by the_gipsy on Wednesday December 03, 2025 @03:54PM (#46140003)
I also code go daily for work, and while what you say is true, it's still far less than what I remember from working with Java, which was constantly wrapping mundane crap in classes and other stuff.
Re:Anthropic acquires Bun by lenkite on Thursday December 04, 2025 @01:55AM (#46144578)
Yeah, well you can write "enterprise 10k patterns crap" in any language. Java projects suffered from the craze of those initial years where every "architect" and their grandmother insisted on patterns.

Idiomatic, Modern Java is written quite differently. Today, Go has a lot of arcane, noisy, complex code too. Ex: many, many k8s Go projects.

Re:Anthropic acquires Bun by ngrilly on Friday December 05, 2025 @08:06AM (#46160763)
What is an example of a modern Java open source codebase, so I can have a look?
Re:Anthropic acquires Bun by vips7L on Wednesday December 03, 2025 @11:04PM (#46143704)
I can guarantee you that 9/10 times any similar Go snippet will be more verbose than Java.
Re:Anthropic acquires Bun by BobbyJo on Wednesday December 03, 2025 @02:47PM (#46139089)
Go only looks like that in toy examples where you have one method calling a bunch of libraries and services. If you are writing actual logic, the error handling is preferable to exceptions IMO, because no project even uses them correctly.

Now if you complain about slice handling, I'm with you.

Re:Anthropic acquires Bun by vrighter on Thursday December 04, 2025 @09:06AM (#46147778)
Before go had generics it was pretty common to have multiple implementations of the same thing just for different datatypes.