Clojure Concurrency - Rich Hickey
Вставка
- Опубліковано 25 сер 2024
- A presentation by Rich Hickey to the Western Mass. Developers Group on Clojure and concurrency. Brief overview of Clojure, discussion of concurrency issues, locking, and immutabiity. In-depth look at Clojure's refs, transactions and agents. Demonstration and review of code for a multithreaded ant colony simulation.Be sure to grab the slides and code in order to follow along.Thanks to Shawn Fumo for working on this video.
Murphy's law says: the skills of the cameraman will be inversely proportional to the value of the presentation.
true ^^
At least, the sound is clear. 😅
One way of explaining Clojure references could be the TV show Bewitched. "Darrin" the husband character is like a reference. "Darrin" referred to Dick York at first, then Dick Sargent later on. At no point did the production staff mutate Dick York into Dick Sargent.
A transcript of this talk with slides and link to code is available here github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/ClojureConcurrency.md
The code is here: github.com/juliangamble/clojure-ants-simulation
A transcript of this talk is available here: github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/ClojureConcurrency.md
Rich offers a great explanation here.
This is less than 250 lines of code in Clojure, but has anyone tried building this same demo in Java using the Hystrix library? I'd be interested to know how many lines of Java would be required to obtain the same result. I'm guessing probably 2 or 3 times more...?
@marcelofernandes6501 On the metric that says number of errors per thousand lines of code is constant across languages fewer lines is safer - for bugs, security, whatever else errors imply.
The lecture iself starts at: ua-cam.com/video/dGVqrGmwOAw/v-deo.html
The same video with the slides included: ua-cam.com/video/nDAfZK8m5_8/v-deo.html
Location of slides: ftp://nat.iem.pw.edu.pl/pub/DOC/clojure/04-ClojureConcurrencyTalk.pdf
How do you model the structure for removing a node from the base structure?
Where are the slides and code? Thanks!
Please link to slides and code!
All these links look broken, and the google suggestion didn't work for me. Anyone else have a link to the slides?
@nsanooj - I get a 404 error with that link to the slides; do you know where I might find them?
Do we have the code uploaded somewhere?
github.com/juliangamble/clojure-ants-simulation/blob/master/src/ants.clj
Where are the slides!?!
do you want ants? because that's how you get ants.
SLIDES: dropbox.com/u/6251992/04-ClojureConcurrencyTalk.pdf
Watch this in .5 speed jfc
Good stuff. Found the slides here: dl.dropbox.com/u/6251992/04-ClojureConcurrencyTalk.pdf
21:00