erlang - dive right in
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)
Behaviours
• gen_sup - supervisor, often linked to one of:
• gen_server - generic module
• gen_fsm - finite state machine
• gen_event - event-driven pub/sub
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