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
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
なんでRustの環境構築してないのにRust製のツールが動くの? / Why Do Rust-Based Tools Run Without a Rust Environment?
ssssota
14
47k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
660
Node-REDのノードの開発・活用事例とコミュニティとの関わり(Node-RED Con Nagoya 2025)
404background
0
110
Swift Concurrency 年表クイズ
omochi
3
220
業務でAIを使いたい話
hnw
0
220
data-viz-talk-cz-2025
lcolladotor
0
110
AkarengaLT vol.38
hashimoto_kei
1
130
エンジニアに事業やプロダクトを理解してもらうためにやってること
murabayashi
0
110
SwiftDataを使って10万件のデータを読み書きする
akidon0000
0
250
Module Proxyのマニアックな話 / Niche Topics in Module Proxy
kuro_kurorrr
0
480
AIと人間の共創開発!OSSで試行錯誤した開発スタイル
mae616
2
850
NIKKEI Tech Talk#38
cipepser
0
350
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
65
7.9k
The Cult of Friendly URLs
andyhume
79
6.6k
How GitHub (no longer) Works
holman
315
140k
Speed Design
sergeychernyshev
32
1.2k
Building Applications with DynamoDB
mza
96
6.7k
Building a Modern Day E-commerce SEO Strategy
aleyda
44
7.9k
Music & Morning Musume
bryan
46
6.9k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
127
54k
Facilitating Awesome Meetings
lara
57
6.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Done Done
chrislema
186
16k
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