Introduction to Elixir for Rubyists
summary
Elixir runs on the Erlang VM and compiles to BEAM bytecode, borrows Ruby-like syntax, and emphasizes pattern matching, lightweight processes and the pipe operator. Examples show maps (Erlang 17), structs, list comprehensions, mix projects and IEx compilation. Demo code spawns ping/pong processes and an incrementing state process that work via message passing; OTP and gen_server are the next step. Benchmarks claim ~40,000 concurrent requests for a simple web render (versus ~300 in Ruby, ~8,000 in Node).
AI-written summary · about
chapters (37)
- 0:00Start
- 1:04Dave Thomas
- 1:25Bruce Tate
- 3:04Josh's Sales Pitch
- 4:26Atoms
- 4:44Strings
- 5:12Numbers/Integers
- 5:28Numbers/Floating Points
- 6:06Tuples
- 6:32Maps
- 8:40Regular Expressions
- 9:17Booleans
- 10:49Match Operator (cont)
- 12:16Function Definitions
- 12:50Case Statements
- 13:20Defining Them
- 15:06First-Class Functions
- 16:07Mix and Modules
- 16:31Using `mix
- 17:39Defining a Module
- 18:01Compiling a Module
- 18:52defmodule return value
- 19:42Documentation
- 21:35What are they for?
- 22:01Combining Lists
- 23:24Card Deck Example
- 24:45Defining Structs (cont)
- 25:49Updating Structs
- 26:25Matching Structs
- 28:38Basic Example
- 29:50Recursion
- 30:13Sum a list
- 32:00Processes
- 32:11What are they?
- 34:56Playing with them
- 36:37Encapsulating State
- 38:23Summary
related talks
32mElixir for the rubyist
39mElixir: Power of Erlang, Joy of Ruby
34mRubyists, have a sip of Elixir!
19mElixir – what it is and why is it amazing?
01h 06mWhat every Node.js developer needs to know about Elixir
48mElixir by the Bellyful
28mRuby + Elixir: Polyglotting FTW!
37mElixir - functional, concurrent, distributed programming
