3 ms·
Excuse me if this is a dumb question, but I've seen a lot on HN these days where people would suggest Erlang/Elixer for this kind of use case (high performance
by hectormalot 11y ago
Excuse me if this is a dumb question, but I've seen a lot on HN these days where people would suggest Erlang/Elixer for this kind of use case (high performance distributed). Any reason (beyond syntax preference) that this was not one of the languages considered?
- jerf 11y agoI wouldn't recommend the Erlang VM for anything that needs to itself be running at the highest performance levels. The VM is not very fast when it comes to computation. It's a great VM for what it does, and absolutely should be considered for many other such tasks, but probably not a great choice for a database. To some extent, but a lesser extent, the same could be said for Go: http://benchmarksgame.alioth.debian.org/u64q/which-programs-are-fastest.html http://benchmarksgame.alioth.debian.org/u64q/which-programs-... (It's a bit weird reading that page, because it's broken into two graphs, but they appear to be about the same thing.) If I were thinking "trendy language to write my next database in" personally I'd favor Rust by a country mile. This is exactly where you'd like all that stuff Rust provides just for correctness' sake, and this is the sort of task where you may even be able to outrun C++ if Rust helps you write correct code with fewer barriers slathered about for correctness. Edit: Ha, and just below this comment as I read it I see the team commenting about Rust.
- greenleafjacob 11y agoRiak is a database written in Erlang. Erlang is not good for "high performance distributed" systems. It's good for systems whose primary characteristic is uptime rather than latency or throughput.