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
Don't fear the paren! 8 reasons you should give...
Search
Giuseppe Capizzi
April 09, 2014
Programming
4
170
Don't fear the paren! 8 reasons you should give Clojure a try
Giuseppe Capizzi
April 09, 2014
Tweet
Share
More Decks by Giuseppe Capizzi
See All by Giuseppe Capizzi
A (not so) gentle introduction to functional programming
gcapizzi
1
140
PHP: The good, the bad and the ugly
gcapizzi
3
320
Other Decks in Programming
See All in Programming
Jakarta EE meets AI
ivargrimstad
1
550
Ruby Parser progress report 2024
yui_knk
2
230
意外とフォントが大事だった話 / Font Issues on Internationalization
fumi23
0
110
The Shape of a Service Object
inem
0
530
全部見せます! クラシルリワードのSwiftTesting移行プロジェクト
uetyo
0
210
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
940
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
2k
Architecture Decision Record (ADR)
nearme_tech
PRO
1
700
ECMAScript、Web標準の型はどう管理されているか / How ECMAScript and Web standards types are maintained
petamoriken
3
390
私のEbitengineの第一歩
qt_luigi
0
450
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
820
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
41
6.5k
Six Lessons from altMBA
skipperchong
26
3.4k
Embracing the Ebb and Flow
colly
83
4.4k
The Art of Programming - Codeland 2020
erikaheidi
48
13k
GraphQLの誤解/rethinking-graphql
sonatard
65
9.8k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
610
Build your cross-platform service in a week with App Engine
jlugia
228
18k
Writing Fast Ruby
sferik
623
60k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
43
2k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
3k
The Pragmatic Product Professional
lauravandoore
31
6.2k
Transcript
( ) DON’T FEAR THE PAREN! 8 reason you should
give Clojure a try
“2014 is the year of clojure” Federic Gala i
Uncle Bo “it might be the seed that starts the
process towards the last programming language”
1 functional
•Immutable, persistent data structures •first-class functions •dynamic polymorphism
“object orientation is overrated”
“mutable stateful objects are the new spaghetti code” All data
structures immutable & persistent
“It is better to have 100 functions operate on one
data structure than to have 10 functions operate on 10 data structures." Alan J. Perli Many functions defined on few primary data structures
“polymorphism is a good thing” protocols for class polymorphism, multimethods
for custom hierarchies
2 LISP
None
•(Almost) no syntax •code is data, let’s do macros! •not
constrained by backwards compatibility
3 on the jvm
•embraces the jvm as a platform •fast! almost as fast
as java •tons of high quality libraries •mature echosystem
4 concurrency
moore’s law is over
threads & locks are a mess
the actor model was designed to address the problems of
distributed programs
•immutable data can be shared freely •atoms •transactional references (stm)
•async agents •csp with core.async
clojurescript 5
javascript is everywhere
javascript is not very robust
clojurescript to the rescue
•interoperates with javascript •brings much of clojure goodness to the
js world (incl. core.async!) •uses google closure optimizations
6 tools
•nrepl •leiningen •editors (emacs, vim, light table, eclipse, intellij, netbeans)
•testing (clojure.test, speclj, midje, test.check)
7 echosystem
•core.typed optional type system •core.logic for logic programming •om (clojurescript
+ facebook react) •overtone (clojure + supercollider)
•rapidly evolving web stack based on ring •immutant (jboss as7
+ ring) •datomic •http-kit
8 community
•vivid •inclusive •tons of tutorials and documentation
thanks!