4 ms·
You mean, he should implement a VM for Go or in Go? So the comparison is fair, but totally useless by ignoring the way programs in those languages are typically
by dozzie 11y ago
You mean, he should implement a VM for Go or in Go? So the comparison is fair,
but totally useless by ignoring the way programs in those languages are
typically run? It wasn't meant to be fair, it was meant to be relevant.
Of course the results are more or less expected. JVM is by far the worst,
because it uses OS-level threads, while Go and Erlang use userland threads,
which are way cheaper to spawn and manage.
[edit] According to some other comment around here, Scala is supposed to use userland threads as well.
- travjones 11y agoNope. I just think the comparison should be nuanced. I agree that these data are relevant. Yup.
- emergentcypher 11y agoScala runs on JVM and uses OS-level threads. However, Actors are not threads, so in a way it's like user threads. One million actors will be scheduled to run on a pool of OS threads.