Re:Java 21 makes me like Java again
by gabereiser on Saturday September 16, 2023 @06:39PM
(#37539506)
Except I’m over here serving 10x the traffic with 10x less cloud spend on CPU and Memory for hosts.
[ Parent
| on HN ]
In what language would that marvel be? I give you the less memory....
Go has goroutines which have better cpu and memory than threads which are commonly used in java.
Java is now catching up with go and adding virtual threads which in september 2023 will have the same ease of use as go had in … 2007?
But as I wrote above, it migh really get me to check java again.
Well is it correct that until 1.14 (so 2020) Go used cooperative scheduling? Because
Java Threads, (before the new virtual threads) are preempted by the OS...Go was launched in 2009? Who is doing the catching up?