Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Elixir: Gentle Introduction to Functional Progr...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bbense
October 30, 2014
Programming
1
210
Elixir: Gentle Introduction to Functional Programming
Slides for a lightning talk introducing elixir at the Stanford IT Unconference
bbense
October 30, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
Oxlintはいいぞ
yug1224
5
1.3k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
220
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
260
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
120
Architectural Extensions
denyspoltorak
0
280
CSC307 Lecture 09
javiergs
PRO
1
830
Oxlint JS plugins
kazupon
1
880
Patterns of Patterns
denyspoltorak
0
1.4k
Basic Architectures
denyspoltorak
0
670
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
110
Featured
See All Featured
Thoughts on Productivity
jonyablonski
74
5k
Deep Space Network (abreviated)
tonyrice
0
47
The SEO identity crisis: Don't let AI make you average
varn
0
88
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
Discover your Explorer Soul
emna__ayadi
2
1.1k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Building Applications with DynamoDB
mza
96
6.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Unsuck your backbone
ammeep
671
58k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Transcript
Elixir: An Introduction to Functional Programming Booker C. Bense :
[email protected]
None
None
None
None
None
None
None
def build_paths(:help) do IO.puts @moduledoc System.halt(0) end
def build_paths(:help) do IO.puts @moduledoc System.halt(0) end
None
None
None
args |> parse_args |> build_paths |> background |> process |>
cleanup
args |> parse_args |> build_paths |> background |> process |>
cleanup
None
• { code , results } = File.Stat(path) • {
:ok , results } = File.Stat(path)
• { code , results } = File.Stat(path) • {
:ok , results } = File.Stat(path)
None
def build({options,[head | tail]}) do {options,process( head ),tail } end
def build_paths(:help) do IO.puts @moduledoc System.halt(0) end
def build({options,[head | tail]}) do {options,process( head ),tail } end
def build_paths(:help) do IO.puts @moduledoc System.halt(0) end
None
def sum_list([head|tail], accumulator) do sum_list(tail, head + accumulator) end def
sum_list([], accumulator) do accumulator end
def sum_list([head|tail], accumulator) do sum_list(tail, head + accumulator) end def
sum_list([], accumulator) do accumulator end
None
if( a == 1 , do: b = 1, :else
b = 2) if a == 1 do b = 1 else b = 2 end
if( a == 1 , do: b = 1, :else
b = 2) if a == 1 do b = 1 else b = 2 end
None
time elixir --erl "+P 1000000" -r chain.exs -e "Chain.run(1_000_000)" {13896652,
"Result is 1000000”} 15.75 real 7.26 user 8.45 sys
time elixir --erl "+P 1000000" -r chain.exs -e "Chain.run(1_000_000)" {13896652,
"Result is 1000000”} 15.75 real 7.26 user 8.45 sys
None
Erlang OTP Concurrency Actors, Tasks, Applications GenServer GenEvents
Erlang OTP Concurrency Actors, Tasks, Applications GenServer GenEvents
More Resources • www.elixir-lang.org - Installation instructions and excellent tutorial.
• Goggle Groups : elixir-lang-talk • Stack Overflow: tag elixir