Top Banner
Erlang DIVE RIGHT IN A short presentation with bullet points but no lolcats in a default keynote theme by Vaughan Allan http://github.com/vorn
12

Erlang - Dive Right In

Jan 29, 2018

Download

Technology

vorn
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Erlang - Dive Right In

ErlangDIVE RIGHT IN

A short presentationwith bullet pointsbut no lolcatsin a default keynote themeby Vaughan Allanhttp://github.com/vorn

Page 2: Erlang - Dive Right In
Page 3: Erlang - Dive Right In

Erlang in 2 minutes

• Functional• Built for reliability (nine nines)• Some nice adjectives include:

• concurrent, distributed, “soft real-time”• fault tolerant• scalable (cloud-scale, web-scale)• green (sort of)

Page 4: Erlang - Dive Right In

Erlang in 2 minutes

• Gotchas include:• It looks a lot like Prolog• Immutability• No “loops” (use tail recursion, or map funs)• Strings are weird-ish

Page 5: Erlang - Dive Right In

OTP in 5 minutes

• It’s an application framework

• Release handling (sort of), hot code-swapping

• Supervision Tree

• Patterns (behaviours)

Page 6: Erlang - Dive Right In

Supervision Tree

Page 7: Erlang - Dive Right In

Behaviours

• gen_sup - supervisor, often linked to one of:

• gen_server - generic module

• gen_fsm - finite state machine

• gen_event - event-driven pub/sub

Page 8: Erlang - Dive Right In

Supervision Tree

Page 9: Erlang - Dive Right In

Read Something

• http://learnyousomeerlang.com

• “Programming Erlang” (pragprog.com)

• “Erlang Programming” (O’Reilly) - good for learning OTP

• “Erlang and OTP in Action” (Manning)• “7 Languages in 7 weeks” (pragprog.com)

“Don't drink too much Kool-Aid”

Page 10: Erlang - Dive Right In

Build Something

• rebar - a build tool (on steroids)

• ChicagoBoss - (Rails-like MVC Framework)• for immediate gratification

• webmachine by Basho (a “REST Toolkit”)

• Emacs! (?)

Page 11: Erlang - Dive Right In

Hack Something

• ChicagoBoss - http://github.com/evanmiller

• http://github.com/languages/Erlang

• Riak, RabbitMQ, eJabberd, CouchDB

Page 12: Erlang - Dive Right In

Double-Click to Edit(this is the last slide)