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

Introduction to Erlang

Roberto Aloi
November 19, 2013

Introduction to Erlang

Presented at the Stockholm Erlang User Group.

Roberto Aloi

November 19, 2013
Tweet

More Decks by Roberto Aloi

Other Decks in Programming

Transcript

  1. Do you need a distributed system? Do you need a

    scalable system? Do you need a reliable system? Do you need a fault-tolerant system? Do you need a massively concurrent system? Do you need a distributed system? Do you need a scalable system? Do you need a reliable system? Do you need a fault-tolerant system? Do distributed system? Do you need a scalable system? Do you need a reliable system? Do you need a fault-tolerant system? Do you need a massively NEED ERLANG? DO YOU
  2. ERLANG IS NOT DIFFICULT TO LEARN - O N C

    E Y O U G E T PA S T T H E I N I T I A L H E A D A C H E - YOU WON’T BE ABLE TO LIVE WITHOUT IT
  3. ERLANG MAKES YOUR LIFE EASIER - N O T T

    H E O T H E R WAY A R O U N D - HAVE A LOOK TO OTP
  4. ERLANG IS ALSO FUN - B U T D O

    N ’ T T E L L Y O U R B O S S - OR YOU’LL GET PAID LESS
  5. AND SEND A MESSAGE TO IT Pid2 Pid1 Pid2 !

    {self(),msg} Message Passing
  6. AND SEND A MESSAGE TO IT Pid2 Pid1 Pid2 !

    {self(),msg} {Pid1,msg} Message Passing
  7. Let It Crash convert(Day) -> case Day of monday ->

    1; tuesday -> 2; wednesday -> 3; thursday -> 4; friday -> 5; saturday -> 6; sunday -> 7; Other -> {error, unknown_day} end.
  8. Behaviours Servers Finite State Machines Event Handlers Supervisors Applications Less

    Code Less Bugs More Solid Code More Tested Code More Free Time
  9. erlang.org github.com/erlang/otp erlang-solutions.com www.learnyousomeerlang.org elearning.erlang-solutions.com Erlang Programming Erlang and OTP

    in Action Official Home Page Sources Binary Packages, News, Events Best Online Tutorial Commercial e-learning solution Best book about basics Best book about OTP