Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elixir - Modern alchemy performed on top of the Erlang virtual machine

Elixir - Modern alchemy performed on top of the Erlang virtual machine

An introduction to Elixir delivered at the FuncProgSTHLM meetup in Stockholm, 2014-10-30.

http://www.meetup.com/FuncProgSTHLM/events/208417642/

Lennart Fridén

October 30, 2014
Tweet

More Decks by Lennart Fridén

Other Decks in Programming

Transcript

  1. Elixir
    Modern alchemy
    performed on top of
    the Erlang virtual machine

    View full-size slide

  2. Elixir - Erlang TNG

    View full-size slide

  3. Lennart Fridén
    @DevLCSC

    View full-size slide

  4. Matching and Pinning

    View full-size slide

  5. The pipe operator

    View full-size slide

  6. lightweight
    isolated
    concurrent
    communicates by passing messages
    conceptually no difference between local and
    remote processes

    View full-size slide

  7. A simple key-value store

    View full-size slide

  8. Providing a client API

    View full-size slide

  9. OTP - GenServer

    View full-size slide

  10. Adding a supervisor

    View full-size slide

  11. It keeps coming back!

    View full-size slide

  12. compile time macros
    hygienic - by default does not affect the context
    lexical - no global injection of code or macros
    can be used to create domain specific languages

    View full-size slide

  13. Tools and Resources

    View full-size slide

  14. Mix - a build tool

    View full-size slide

  15. Hex - a package manager

    View full-size slide

  16. Help is near

    View full-size slide

  17. http://elixir-lang.org

    View full-size slide

  18. Programming Elixir - http://pragprog.com
    Introducing Elixir - http://oreilly.com
    Exercism - http://exercism.io

    View full-size slide

  19. http://www.meetup.com/stockholm-elixir

    View full-size slide