erlang - dive right in

12
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

Upload: vorn

Post on 29-Jan-2018

739 views

Category:

Technology


0 download

TRANSCRIPT

ErlangDIVE RIGHT IN

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

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)

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

OTP in 5 minutes

• It’s an application framework

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

• Supervision Tree

• Patterns (behaviours)

Supervision Tree

Behaviours

• gen_sup - supervisor, often linked to one of:

• gen_server - generic module

• gen_fsm - finite state machine

• gen_event - event-driven pub/sub

Supervision Tree

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”

Build Something

• rebar - a build tool (on steroids)

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

• webmachine by Basho (a “REST Toolkit”)

• Emacs! (?)

Hack Something

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

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

• Riak, RabbitMQ, eJabberd, CouchDB

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