Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Lispy Elixir
Search
Patrick Gombert
May 16, 2014
Technology
150
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lispy Elixir
Patrick Gombert
May 16, 2014
Transcript
30 slides
Lispy Elixir @PatrickGombert
Lisp crash course (LISt Processing) () ; data structure (f)
; data structure and executable code (1 2 3) ; data structure without executable code ! ; closure definition ! ; program returning 4
Composability ; Higher order function ! ; Function returning a
function ! ; equivalent to !
Elixir is composable ; Higher order function ! ; Function
returning a function ! equivalent to
Homoiconicity - Code is represented as data (everything is a
list in lisp) - The resulting structure is a form of Abstract Syntax Tree (+ ; Root Node (+ ; Child of Root 1 ; Leaf Node 2) ; Leaf Node (+ ; Child of Root 3 ; Leaf Node 4)) ; Leaf Node !
Elixir is homocionic… ?
Look past syntax, you must
Quote This doesn’t print hello world, but why?
I heard you like programs in your programs
Elixir allows you to program while you program!
Homoiconic AST function arguments
Not quite as elegant… vs.
ISMETA (http://xkcd.com/917/) = =
! Erlang’s Parse-Transform http://www.erlang.org/doc/apps/erts/absform.html
… or lisp style macros! - Compile time (like parse-transform)
! - Homoiconic AST manipulation (like parse-transform) ! - Consistent AST (!!!)
defmacro ! ! - all at compile time - quoted
arguments - returning ASTs for the evaluation in the current module
None
None
None
List Comprehensions
And without the commas
It’s macros (almost) all the way down Turtle = Macro
Erm… umm…
! So of course…
None
Slow down cowboy It’s a context switch between compile &
run times
Macro bootstrap step https://github.com/elixir-lang/elixir/blob/master/lib/elixir/ src/elixir_bootstrap.erl
Splicing
Hygiene Note: Elixir is immutable so the rebinding is in
the local scope
Thanks! @PatrickGombert
More Decks by Patrick Gombert
See All by Patrick Gombert
Introduction to Erlang (8LU)
patrickgombert
3
180
Other Decks in Technology
See All in Technology
ポケモンバトルのAIエージェント
koji_kawamura
0
260
こんなに変わった! AWSネットワークの常識
shotashiratori
16
12k
gradle-best-practices 使ってみた
mikanichinose
0
240
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
520
Kubernetes, Agones, WebRTC, GPU で作る クラウドゲーミング基盤を本番運用に乗せるまで
vivion
1
290
AWS DevOps Agentの構造から読み解く運用 AI エージェントの設計原則/aws-devops-agent-design-principles
tomoki10
0
290
コーディングできない僕にBobが舞い降りた
shumpei3
0
220
20261119_AgentCore
takuyay0ne
2
310
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
330
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
140
FPGAでアクティブセンシングがやりたくてカメラモジュールを自作した話
ryuz88
0
110
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
100
Featured
See All Featured
Faster Mobile Websites
deanohume
310
32k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
570
The Invisible Side of Design
smashingmag
301
52k
Designing for Timeless Needs
cassininazir
1
570
The Language of Interfaces
destraynor
163
27k
Code Review Best Practice
trishagee
74
20k
Thoughts on Productivity
jonyablonski
76
5.5k
Discover your Explorer Soul
emna__ayadi
2
1.3k
The SEO identity crisis: Don't let AI make you average
varn
0
630
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
590
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k