News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by erik_seaberg on Saturday September 16, 2023 @06:47PM (#37539565)
You’re likely to need a lot of boilerplate that “go” statement won’t generate: pass and wait for completed results, report errors, timeouts, cancellation, bounded parallelism, pushback, service monitoring.
Re:Java 21 makes me like Java again by insanitybit on Saturday September 16, 2023 @06:48PM (#37539576)
My comment is perhaps too glib. I'm not trying to say that Go is better, I frankly like Java more. I only mean that if I'm in a Go mindset and I read the linked document on virtual threads, and I see that code example, I'm going to close the tab.
Re:Java 21 makes me like Java again by chrisdinn on Saturday September 16, 2023 @08:19PM (#37540212)
Been a while for me but is that three line Java snippet doing service monitoring? Go has simple tools for all those purposes, too, obviously.

I rarely see anyone mention this but having built the exact same large system on the JVM and then in Go (post Google acquisition forced to rewrite) the biggest benefit of Go at scale for us (besides dev velocity) was gc performance.

Also, Go has to be saving people a ton on LLM tokens.