What should I keep in mind if I'm using Elixir in Action today?

Elixir in Action was written in 2015, and since then a lot is changed, so if I am using this book today with Elixir 1.5.2, what should I keep in mind.

2 Likes

@sasajuric, the writer of this book wrote a blog post about compatibility of the book with Elixir version 1.2. He mentioned the major deprecations like HashDict and HashSet. I think the book should work with the new version of elixir, but only keep in mind to use Maps instead of HashDict and MapSet instead of HashSet. Please also read that post.

2 Likes

The setup for supervisor children has changed with elixir 1.5 deprecating the old. For more info on that search for child_spec.

4 Likes

@pillaiindu a good point to be noted, it’s not mentioned in the blog post Elixir 1.2 and Elixir in Action by @sasajuric as that post was written before this change.

2 Likes

There should be an update of EIA coming in 2018.

2 Likes

this looks like a big change, is there some detailed post etc about it?

1 Like

Here’s the quick primer on why/how: https://elixir-lang.github.io/blog/2017/07/25/elixir-v1-5-0-released/
And this is the more in detail one: https://hexdocs.pm/elixir/master/Supervisor.html#content

5 Likes

Thank you!

1 Like

Also look at GenServer child_spec/1 in Elixir 1.5

2 Likes

Thanks everyone for responding. Just to confirm, yes the biggest deprecations I’m currently aware of are HashSet and childspecs. I’ve already started working on the updated version, which I expect to finish by mid March 2018.

EDIT: one more change I forgot to mention is the addition of Registry, which means you don’t have to use :gproc anymore.

9 Likes

No MEAP?

1 Like

There will be MEAP of course, but not exactly sure when. Stay tuned for updates :slight_smile:

3 Likes