SlideShare a Scribd company logo
LDC 14/11/2011
3 clojures funcions
      Set - Rearrange


reset!
compare-and-set!
commute
user=> (doc reset!)
-------------------------
([atom newval])
  Sets the value of atom to newval without regard for the
current value. Returns newval.
compare-and-set!
-------------------------
([atom oldval newval])
  Atomically sets the value of atom to newval if and only if
the current value of the atom is identical to oldval. Returns
true if set happened, else false
commute
-------------------------
([ref fun & args])

  Must be called in a transaction. Sets the in-transaction-value of ref
to:
  (apply fun in-transaction-value-of-ref args)
  and returns the in-transaction-value of ref.
  At the commit point of the transaction, sets the value of ref to be:
  (apply fun most-recently-committed-value-of-ref args)
  Thus fun should be commutative, or, failing that, you must accept
  last-one-in-wins behavior. commute allows for more concurrency
than ref-set.
Clojure LDC 5
partition-*
Clojure LDC 5
Clojure LDC 5
Clojure LDC 5

More Related Content

PPTX
Curry functions in Javascript
PPTX
Function composition in Javascript
ODP
(entregando djangoapps)@tangerinalab - pugpe xv
PDF
Grover's Algorithm
PPTX
Using Grafana with InfluxDB 2.0 and Flux Lang by Jacob Lisi
ODP
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
PPT
PPTX
8-Array and Equation environment
Curry functions in Javascript
Function composition in Javascript
(entregando djangoapps)@tangerinalab - pugpe xv
Grover's Algorithm
Using Grafana with InfluxDB 2.0 and Flux Lang by Jacob Lisi
Agile NCR 2013- Anirudh Bhatnagar - Hadoop unit testing agile ncr
8-Array and Equation environment

What's hot (12)

PDF
Test Automation Using Googletest
KEY
Testing Hadoop jobs with MRUnit
PDF
Source Plugins
PPTX
Durable Functions
PPTX
Taming Brownfield Codebases with AOP
PPTX
Array and functions
PDF
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
PPTX
h-ubu : CDI in JavaScript
PDF
Austin Bingham. Transducers in Python. PyCon Belarus
PDF
How to practice functional programming in react
PDF
The Power of Rails 2.3 Engines & Templates
PDF
Real world scala
Test Automation Using Googletest
Testing Hadoop jobs with MRUnit
Source Plugins
Durable Functions
Taming Brownfield Codebases with AOP
Array and functions
C++ and OOPS Crash Course by ACM DBIT | Grejo Joby
h-ubu : CDI in JavaScript
Austin Bingham. Transducers in Python. PyCon Belarus
How to practice functional programming in react
The Power of Rails 2.3 Engines & Templates
Real world scala
Ad

Viewers also liked (19)

PPT
Elis apresentacio cranio12
PDF
Os gi lightning talk
PDF
Ignoring Internet is Injurious to Medical Practice
PPT
魏权龄_数据包络分析法
PDF
PPTX
Store accesory the best2
PPTX
E20C Workshop: E20 & OE
PPTX
Facts about RBI Governer Raghuram Rajan
PPTX
HBK Heroes & Achievements
PPTX
Orientation Day Presentation (Personalized Learning)
PDF
Wind Power Df Intro Uk
DOC
Dosificación y jerarquización 2016 2017 (1)
PDF
Requirements E20 Manager
PPT
Gettysburg
PPT
Social Messaging Solution Matrix
PPS
Te amo-diapositivas
PDF
Coaching with the brain in mind
PDF
Big data: Loading your data with flume and sqoop
PPTX
Exposicion sobre Vidrios
Elis apresentacio cranio12
Os gi lightning talk
Ignoring Internet is Injurious to Medical Practice
魏权龄_数据包络分析法
Store accesory the best2
E20C Workshop: E20 & OE
Facts about RBI Governer Raghuram Rajan
HBK Heroes & Achievements
Orientation Day Presentation (Personalized Learning)
Wind Power Df Intro Uk
Dosificación y jerarquización 2016 2017 (1)
Requirements E20 Manager
Gettysburg
Social Messaging Solution Matrix
Te amo-diapositivas
Coaching with the brain in mind
Big data: Loading your data with flume and sqoop
Exposicion sobre Vidrios
Ad

More from Christophe Marchal (20)

PDF
Elasticsearch avoiding hotspots
PDF
Performance
PDF
PDF
Elasticsearch cluster deep dive
PDF
Elasticsearch
PDF
Reactive programming with Rxjava
PDF
PDF
Consul in 5 minutes
PDF
Spark in 15 min
PDF
Microservices Architecture: Nirvana or Nightmare
PDF
Capistrano
PDF
Aws, play! couch db scaling soa in the cloud
PDF
Devops e a nova cultura - TDC Florianopolis 2015
PDF
Devops and the New Culture
PDF
Monads in practice
PDF
Productivity and scalability with Play and Scala
PDF
Reactive application
PDF
Internet of things and arduino
Elasticsearch avoiding hotspots
Performance
Elasticsearch cluster deep dive
Elasticsearch
Reactive programming with Rxjava
Consul in 5 minutes
Spark in 15 min
Microservices Architecture: Nirvana or Nightmare
Capistrano
Aws, play! couch db scaling soa in the cloud
Devops e a nova cultura - TDC Florianopolis 2015
Devops and the New Culture
Monads in practice
Productivity and scalability with Play and Scala
Reactive application
Internet of things and arduino

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Review of recent advances in non-invasive hemoglobin estimation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Understanding_Digital_Forensics_Presentation.pptx
Encapsulation theory and applications.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

Clojure LDC 5