erlang introduction geek2geek berlin

Post on 28-Nov-2014

681 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Introduction about erlang given at the berlin geek2geek meetup

TRANSCRIPT

Erlang introductionPaolo Negri @hungryblank

ME

• confounder at contentful.com

• experience in erlang from building game servers

• interested in programming languages

“Traveling, whether in the mental or the physical word

is a Joy”Bertrand Russell

“The anlysis of mind”

Agenda

• Why erlang is a place worth visiting

How would you visualize your code running?

Erlang

Erlang

Erlang

2 Concepts

1) Process

2) Message

How it works?

A process sends and receives

messages to/from other

processes

Process

Erlang processes are light-weightwith small memory footprint,fast to create and terminate, scheduling overhead is low.

Erlang documentation

Process is key to

• Concurrency

• Isolation

• Fault tolerance

• Control of state

Message

Messages between processes are simply valid Erlang terms

They can belists, tuples, integers...

Single Assignment?a.k.a immutability

“Once created by single assignment, named values are not variables but immutable objects.”

Wikipedia

Mutabilityaccess only current state

Immutabilityaccess all states

What for?

• Building reliable systems

• Building high concurrency systems

• Building SOA infrastructure

Questions?

top related