Live data from Hacker News

Java 26 is here

hanno.codes

351–352 of 352 posts

Re: Java 26 is here

#351
post #329

Earlier quoted context omitted.

The drawback is also the JVM. Its a heavy, bulky VM. The alternative being Go that is much lighter.

With all due respect, I'm fairly sure that anyone using "VM" the same way as you do here really think of it as a container or what. It's a runtime, and go also has a similar, fairly fat runtime. It's just burnt into the binary instead of being shipped separately. (Hell, even Rust has a runtime, it's just very very lean compared to languages featuring a full GC like go and java)

You cant seriously compare JVM to the Go runtime. The JVM is on another level in size, complexity and bulkiness and size for a "compiled binary".

The Go runtime is mostly just for goroutines and other runtime stuff, like relection etc.

A go hello world binary is around 1mb, while the java one is (with a jre) up and around 50mb.

Re: Java 26 is here

#352
post #240

Earlier quoted context omitted.

Rust with traits and Swift with protocols

So just type classes? How does a type class help with composition? They do help with the expression problem (adding support for an "interface" after definition), and via parametric polymorphism they might give you a bit with regards to composing two traits.. but you do also have generics in Java, even if not as good as type classes. So anyways, I don't see as big of a change here. But there was a Brian Goetz mail/pre…

Here it is https://youtu.be/Gz7Or9C0TpM?si=Rk5pTeAC6ibqS-M-
Post reply on HN