Hacker News new | ask | show | jobs
by alco 4363 days ago
The differences are more than just in syntax. Elixir is also a standard lib that many enjoy, out-of-the box tooling (even Erlang folks have praised mix, the project manager for Elixir), meta-programming.

For example, this code generates a bunch of functions using some compile-time code execution and a macro: https://github.com/alco/benchfella/blob/2513f85eff3886fdf1b3.... Doing the same in Erlang would involve using some 3rd party tool for code generation or doing the whole thing at runtime, in a more verbose way.

In short, achieving similar development productivity with Erlang would be quite a challenge.

1 comments

The best version of that test would be done with a tool like QuickCheck, PropEr, or Triq, which would do property-based testing, and allow to get much better coverage and reporting of problem cases.

Edit: I assumed this was a test, turns out it's a benchmark. My bad.