small medium large xlarge

Programming Elixir ≥ 1.6, in print, plus free offers

May 16, 2018

Big news! Programming Elixir ≥ 1.6 is now in print and shipping from pragprog.com/book/elixir16.

Free ebooks for .edu addresses. If you have a valid email address ending in .edu, you can use coupon code elixir2sFMhJN to get a free ebook of Programming Elixir ≥ 1.6 from pragprog.com.

Help us get the word out. Tell all of your friends in the .edu world about Elixir. Forward them this newsletter, text them, even call them if you're feeling retro.

If you bought the ebook of a previous edition, you'll have an upgrade coupon from the previous edition to this edition already in your account. If you're already reading the beta of Programming Elixir ≥ 1.6, this First Printing ebook is already in your account, and may even be in your Dropbox already.

Come and get it and show the world the power of Elixir!

/\ndy

Programming Elixir ≥ 1.6: Functional |> Concurrent |> Pragmatic |> Fun

Functional programming techniques help you manage the complexities of today’s real-world, concurrent systems; maximize uptime; and manage security. Enter Elixir, with its modern, Ruby-like, extendable syntax, compile and runtime evaluation, hygienic macro system, and more. But, just as importantly, Elixir brings a sense of enjoyment to parallel, functional programming. Your applications become fun to work with, and the language encourages you to experiment.

Part 1 covers the basics of writing sequential Elixir programs. We’ll look at the language, the tools, and the conventions. Part 2 uses these skills to start writing concurrent code—applications that use all the cores on your machine, or all the machines on your network! And we do it both with and without OTP. Part 3 looks at the more advanced features of the language, from DSLs and code generation to extending the syntax.

This edition is fully updated with all the new features of Elixir 1.6, with a new chapter on structuring OTP applications, and new sections on the debugger, code formatter, Distillery, and protocols.

Now in print and shipping from pragprog.com/book/elixir16.


Interview with Dave Thomas

It's been a while since the last revision of this book. Why a new edition now?

I guess it's been almost 3 years. I've resisted doing another edition because not much has actually changed in the core language. There've been a few deprecations, and a bunch of new functions, but almost all the code in the 1.3 version of the book runs just fine on Elixir 1.6.

But…it has been 3 years. And during that time the Elixir community has gained a lot of experience. Although the language is pretty stable, the way we use it has become more sophisticated. That's what triggered me to update the book: I wanted to show some of those new ideas.

Can you give an example?

Let's look at one of the core components of the Elixir runtime, the GenServer module. This comes from Erlang, and in the past we designed Elixir GenServers just about the same way the Erlang folks did (although the implementations were a lot simpler). But we've moved on from that. Elixir has new ways of specifying the supervisors for servers, and new convenience servers such as Agents and Tasks. The result is that idiomatic Elixir has moved on quite a lot. I ended up writing a new chapter, and substantially changing two others, to reflect these new (and better) styles.

In the past, you said that developers should learn Elixir because it teaches them a new way of thinking about code. Do you still feel the same way?

Yes and no. I think that reason is still valid. Apple just shipped an 18 core iMac. Servers with 64 and 128 cores are in the works. You need to find reliable and manageable ways to write code for these beasts. I still firmly believe that functional programming is the key technology to make this happen. On top of that, the actor model seems to be the best way to communicate between processes. And Elixir is both a functional language and it has a runtime library based on the actor model that has been battle tested for decades.

But now I give a second reason why developers should learn Elixir: there's a well-paying and expanding job market for Elixir developers. It's a skill that's in short supply, and this is a great time to join in.

What do you see in the future of Elixir?

I'm more and more convinced that the browser will not be the dominant way we interact with the internet in the (near term) future. You can already see the growth of alternatives: mobile apps, smart devices, and even things like Alexa and Google Home. As computer power becomes ambient, we'll need technologies that let us deal with this dynamic, long-running, and fault-resistant world. I think Elixir has a big part to play in this.

Already we have the Nerves project, which lets you burn your Elixir applications into free standing images which will boot on devices such as the Raspberry Pi Zero. That's a $10 processor with WiFi, lots of I/O, and a full Elixir and Erlang runtime. I made a touch sensitive xylophone that uses pubsub to communicate over the net with synthesizers running on desktops, both client and server in Elixir.

And that brings me to the second revolution. Elixir has a framework called Phoenix. Unfortunately, people see it as some kind of Rails replacement. But Phoenix is way more than that. Phoenix is a connectivity framework. If it connects to the 'net, Phoenix can talk to it, switch traffic to and from it, and manage it. It's a natural for driving millions of IoT devices from a single server.

So I see the future of Elixir as being the future of software. And it sounds like fun.

By the end of this book, you’ll understand Elixir, and know how to apply it to solve your complex, modern problems.

Now in print and shipping from pragprog.com/book/elixir16.

Upcoming Author Appearances

  • 2018-05-16 Richard Whaling, Scala Days Berlin
  • 2018-05-18 Chris Strom, NationJS
  • 2018-05-22 Diana Larsen, Mile High Agile 2018, Denver, CO
  • 2018-05-23 Michael Keeling, XP 2018 in Porto, Portugal
  • 2018-05-24 Michael Keeling, XP 2018 in Porto, Portugal
  • 2018-06-04 Ryan Ripley, Agile Dev West 2018 – Las Vegas, NV
  • 2018-06-04 Ryan Ripley, Agile Dev West 2018 – Las Vegas, NV
  • 2018-06-06 VM Brasseur, OpenWest, Sandy, UT
  • 2018-06-07 Johanna Rothman, Influential Agile Leader, Boston
  • 2018-06-07 VM Brasseur, OpenWest, Sandy, UT
  • 2018-06-12 Jeremy Fairbank, Fluent Conf, San Jose, CA
  • 2018-06-13 Diana Larsen, Perfecting Practice Adoption with Agile Fluency™ Model – an Agile Fluency game workshop, Louisville, KY
  • 2018-06-15 Diana Larsen, Derby City Agile, Louisville, KY
  • 2018-06-17 VM Brasseur, The Perl Conference, Salt Lake City, UT
  • 2018-06-20 Richard Whaling, Scala Days New York
  • 2018-07-13 Dmitry Zinoviev, IC2S2, Evanston, IL
  • 2018-07-16 VM Brasseur, OSCON, Portland, OR
  • 2018-07-16 VM Brasseur, OSCON, Portland, OR
  • 2018-07-18 Johanna Rothman, Uberconf, Denver
  • You Could Be a Published Author

    Is there a tech topic you are deeply passionate about and want to share with the rest of us? You could become a published Pragmatic Bookshelf author! Take a look at our pragprog.com/write-for-us page for details, including our 50% royalty (yes, for real!) and world-class development editors.

    Don't Get Left Out

    Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on pragprog.com (email address and password is all it takes) and select the checkbox to receive newsletters.

    Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:

    Tell your friends! Tweet this

    Follow us on Twitter: @pragprog, @pragpub, Andy Hunt @PragmaticAndy.

    Coming Soon:

    • Programming Phoenix ≥ 1.4: Productive |> Reliable |> Fast, in beta
    • Programming Ecto: Build Database Apps in Elixir for Scalability and Performance, in beta
    • Build Reactive Websites with RxJS: Master Observables and Wrangle Events, in beta

    Recently Released:

    Thanks for your continued support,

    Andy Hunt Publisher, Pragmatic Bookshelf

    Books • eBooks • PragPub Magazine • Audiobooks and Screencasts
    PragProg.com