Functional Programing Intro Dengan Erlang
Functional Programing Intro Dengan Erlang
Programing ?
With Erlang
Me ?
● Computer Science Graduate from this University
● Opensource community participant (http://github.com/freezmeinster)
● Member of POSS-UPI since 2008
● A Husband
● And A Proud father of Dhuha
What’s FP ?
● Program are executed by evaluating expression.
● FP avoid using mutable state.
● Function is first-class (can pass to other function and can return as result ).
● In pure FP there’s no side effect.
● Lazy Evaluation.
● Look like complex system at first, but ….
What’s Erlang ?
● Not some god from Journe To The West Mythology
● Highly Concurrent and Distributed
● Fault Tolerance (let’s it crash)
Why ?
● Hot Code Upgrade
● Have their own distributed relational database called mnesia (what, realy ?).
● Highly Concurrent (not so good in parallerizm tho)
● Horizontal Scalability (ability to distribute jobs across machine boundaries)
● Vertical Scalability (ability to use all avaliable processing power easly)
● Message Passing.
● Are you learning some Distributed system? Then learn this bad ass.
When use it ?
● You want to build something scalable and realtime (chat server, game server).
● Need uptime 99.999999999 %