Fireship · @fireship
Elixir in 100 Seconds
Uploaded April 8, 2022 · Length 2:35
Summary
elixir programming language basics and concurrency model in 100 seconds
- elixir programming
- concurrency model
- functional syntax
- beam virtual machine
- erlang
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Elixir a dynamic general purpose
- 0:02
programming language designed to build
- 0:03
scalable concurrent applications with a
- 0:06
beautiful functional syntax it was
- 0:08
created by Jose valim and first released
- 0:10
in 2012 and today it consistently ranks
- 0:12
among the most loved programming
- 0:13
languages it runs on top of the erlang
- 0:16
beam virtual machine which itself is
- 0:18
developed in the 1980s to scale the
- 0:19
massive demands of phone switching which
- 0:21
it did with extreme reliability and
- 0:23
Vault tolerance Elixir was created to
- 0:25
make this powerful technology accessible
- 0:27
to the modern developer it's dynamically
- 0:29
tight with a minimal Ruby inspired
- 0:31
syntax making it more approachable than
- 0:33
statically typed functional languages
- 0:35
like hasle however because it's compiled
- 0:37
to beam Bode it delivers better
- 0:39
performance and scalability compared to
- 0:41
interpreted languages it's used by
- 0:42
companies like Discord to handle massive
- 0:44
amounts of concurrent users by Motorola
- 0:47
to build fault tolerant communication
- 0:48
systems by Pinterest to scale up their
- 0:51
real-time notification system and The
- 0:52
Elixir based Phoenix framework is
- 0:54
responsible for thousands of full stack
- 0:56
web applications to get started install
- 0:59
llang Andy then create a file ending
- 1:01
inexs to create a variable give it a
- 1:03
name followed by a value it's Dynamic so
- 1:06
no type annotations are necessary now
- 1:08
print it to the standard output with IO
- 1:10
puts and like Ruby parentheses are
- 1:12
usually optional alternatively you might
- 1:14
create an atom which is a constant whose
- 1:16
value is its own name Anonymous
- 1:18
functions can be created with the FN
- 1:19
keyword which can then be assigned to
- 1:21
variables or passed around to other
- 1:23
functions and you can even simplify this
- 1:25
expression further using the Amper sand
- 1:27
shorthand when working with function
- 1:28
Expressions you can use the pipe
- 1:30
operator to pass the value of one
- 1:32
expression to another without the need
- 1:33
for deeply nested function calls create
- 1:35
a list of items with brackets or create
- 1:37
a map to represent key value pairs the
- 1:39
equal sign can be used to assign
- 1:41
variables but it's actually called the
- 1:43
match operator to support pattern
- 1:44
matching features for example we might
- 1:46
destructure a list into a set of
- 1:48
variables if a pattern doesn't match it
- 1:50
will raise an error and this Behavior
- 1:52
can be used to implement advanc control
- 1:54
flow logic if and its inverse and less
- 1:56
can be used for basic situations but the
- 1:59
case keyword all allows us to compare a


