Clojure Concurrency - Rich Hickey
Vložit
- čas přidán 15. 12. 2012
- 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.
- Věda a technologie
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
@nsanooj - I get a 404 error with that link to the slides; do you know where I might find them?
How do you model the structure for removing a node from the base structure?
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...?
What are you objectively trying to imply with lines of code? When you're comparing a dynamically typed language vs a statically typed one the latter will be longer by default. Less line of codes doesn't imply it's more readable, doesn't imply it's faster, doesn't imply it's safer... etc
@@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.
All these links look broken, and the google suggestion didn't work for me. Anyone else have a link to the slides?
Where are the slides and code? Thanks!
Please link to slides and code!
Location of slides: ftp://nat.iem.pw.edu.pl/pub/DOC/clojure/04-ClojureConcurrencyTalk.pdf
The lecture iself starts at: czcams.com/video/dGVqrGmwOAw/video.html
Do we have the code uploaded somewhere?
github.com/juliangamble/clojure-ants-simulation/blob/master/src/ants.clj
Where are the slides!?!
The same video with the slides included: czcams.com/video/nDAfZK8m5_8/video.html
SLIDES: dropbox.com/u/6251992/04-ClojureConcurrencyTalk.pdf
do you want ants? because that's how you get ants.
21:00
Watch this in .5 speed jfc
Good stuff. Found the slides here: dl.dropbox.com/u/6251992/04-ClojureConcurrencyTalk.pdf