Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Erlang u praksi

Saša Jurić
November 24, 2012

Erlang u praksi

WebCamp Zagreb, 2012

Saša Jurić

November 24, 2012
Tweet

More Decks by Saša Jurić

Other Decks in Programming

Transcript

  1. Komunikacija P1 poruka P2 P2 = spawn(...), P2 ! Poruka

    receive Poruka1 -> ... Poruka2 -> ... ... end
  2. Komunikacija P1 poruka odgovor P2 P2 ! {self(), ...}, receive

    ... receive {Sender, ...} -> ... Sender ! Response end
  3. Stanje S f(Stanje) -> Poruka = receive ... end, NovoStanje

    = f2(Poruka, Stanje), f(NovoStanje).
  4. Stanje {set, ...} {get, ...} P S f(Stanje) -> Poruka

    = receive ... end, NovoStanje = f2(Poruka, Stanje), f(NovoStanje).
  5. Erlang • actor model • supervisor • distribuiranost • mnesia

    • hot code swapping • interoperabilnost • alati
  6. Linkovi • Why Erlang? • Programming Erlang • Learn You

    Some Erlang for Great Good! • Erlang and OTP in Action • A History of Erlang • erlang.org • Erlang Programming Group