|
|
|
|
|
by pron
2557 days ago
|
|
Yeah, but lightweight threading is a built in primitive in BEAM, so if you only measure scheduling overhead it is very low, but once you do any work inside those processes, it runs like any code running on low-performance runtimes. The isolated heaps are also OK, but the modern JVM GCs would still give you lower latency even with a shared heap. BEAM, CPython, MRI Ruby and other low-performance runtimes get the job done for whatever it is they're used for, and if all you're doing is IO it may not be too bad, but let's not mention those runtimes anywhere near good performance. BEAM is certainly in the bottom half or third of the Techempower benchmarks. |
|
Luckily, computational parallelization is not a big challenge with new libraries such as: https://github.com/plataformatec/flow
However, immutability might still become a challenge in terms of resources/performance. Rust is often used to patch that with Erlang's NIF.