An introduction to Elixir delivered at the FuncProgSTHLM meetup in Stockholm, 2014-10-30.
http://www.meetup.com/FuncProgSTHLM/events/208417642/
ElixirModern alchemyperformed on top ofthe Erlang virtual machine
View Slide
José Valim
Elixir - Erlang TNG
Lennart Fridén@DevLCSC
Warmup
Matching and Pinning
Recursion
The pipe operator
Processes
lightweightisolatedconcurrentcommunicates by passing messagesconceptually no difference between local andremote processes
A simple key-value store
Providing a client API
OTP - GenServer
Adding a supervisor
It keeps coming back!
Macros
compile time macroshygienic - by default does not affect the contextlexical - no global injection of code or macroscan be used to create domain specific languages
Tools and Resources
Mix - a build tool
Hex - a package manager
Help is near
http://elixir-lang.org
Programming Elixir - http://pragprog.comIntroducing Elixir - http://oreilly.comExercism - http://exercism.io
http://www.meetup.com/stockholm-elixir