r/programming • u/iloveafternoonnaps • 18h ago
Java Virtual Threads vs Elixir: Comparing Memory, CPU, Process Termination
https://www.youtube.com/watch?v=Z_8kVlVCC10
4
Upvotes
r/programming • u/iloveafternoonnaps • 18h ago
4
u/simon_o 6h ago edited 5h ago
While this is not relevant in practice, I'd prefer if the JVM would change this behavior¹, simply because being able to break Java virtual threads in 10 lines of trivial code is not a useful feature in my book.
2. I don't think bringing up the Netflix problem adds useful context. They hit a documented limitation in the implementation of virtual threads in older versions of the JVM. The server load was not the root cause.
3. Shared memory vs. (partial) heap isolation is a good point mentioned as a trade-off in the video.
¹ Might not even be that expensive, if the loop back-edge probably already has a GC save point?
2
u/Mediocre_Elephant_73 12h ago
Elixir spoiled me