r/programming • u/iloveafternoonnaps • 1d ago
Java Virtual Threads vs Elixir: Comparing Memory, CPU, Process Termination
https://www.youtube.com/watch?v=Z_8kVlVCC10
3
Upvotes
r/programming • u/iloveafternoonnaps • 1d ago
6
u/simon_o 1d ago edited 3h 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 already has a GC safe point?
2
u/Mediocre_Elephant_73 1d ago
Elixir spoiled me