News for hackers. Stuff that matters.
Re:Ask HN: What is the state-of-the-art environment for deve... by cpursley on Thursday August 08, 2019 @08:46AM (#20643982)
Re:Ask HN: What is the state-of-the-art environment for deve... by arnon on Thursday August 08, 2019 @09:29AM (#20644327)
What would be the reasons I'd want to use Elixir over Erlang?
Re:Ask HN: What is the state-of-the-art environment for deve... by ddragon on Thursday August 08, 2019 @10:01AM (#20644641)
The greatest feature of Elixir in my opinion (and it's a beautiful language with a lot of great features in the first place, including the advantages of the Erlang VM and Library) is the care it got in being approachable and easy to use. It has some of the best documentation I've seen extended to pretty much all environment surrounding the base language (including the integration with OTP for parallel processing), Phoenix and Ecto, plus great books and a very friendly community. The design of all those components is also very well done to avoid surprises for people coming from "modern" languages and to avoid unnecessary complexity. And it also has a nice plugin and formatter for vscode.
Re:Ask HN: What is the state-of-the-art environment for deve... by pdmd_api on Thursday August 08, 2019 @10:50AM (#20645095)
Yes, documentation and just the syntax (to me at least) seems a hell of a lot simpler than erlang. You can always use erlang libraries in Elixir as well.
Re:Ask HN: What is the state-of-the-art environment for deve... by davidw on Thursday August 08, 2019 @12:07PM (#20645766)
Erlang's syntax is not difficult or complex; it's just 'different' from what people are used to.

I will add though, that Elixir does add some nice things besides just a more familiar syntax. Things like their string implementation stand out as a real improvement.

Re:Ask HN: What is the state-of-the-art environment for deve... by PopeDotNinja on Thursday August 08, 2019 @02:23PM (#20647132)
> Erlang's syntax is not difficult or complex

I will say a lot of it does feel dated & crusty though, especially when digging thru the documentation. And the different forms of iodata, list, binaries, bitstrings, and other string-y things is super confusing in the beginning.

Re:Ask HN: What is the state-of-the-art environment for deve... by rkangel on Thursday August 08, 2019 @12:39PM (#20646066)
From a language point of view, the main difference is that Elixir has macros. Used judiciously they are a good tool for abstraction and can provide some nice APIs.

As other people have said, there are no big new ideas in Elixir, it's just a well executed design in all the details. It also has the advantage of the tooling having been built from the ground up to current state of the art. As such, it is lovely to use.

The standard library benefits similarly. For example the '|>' operator in Elixir benefits from the fact that the standard library has a consistent argument order.

Re:Ask HN: What is the state-of-the-art environment for deve... by edgar971 on Thursday August 08, 2019 @09:11AM (#20644143)
Huge plus!