Posts tagged concurrency

Concurrency pitfalls

concurrency-pitfalls

The software we write constantly increases in complexity as more and more is demanded of our software. For most of us, we are no longer chasing down memory leaks, but with the arrival of multi-core systems comes a new set of challenges.


More >

Python vs Clojure — Evolving

python-vs-clojure-evolving

This is an interesting time to review programming languages! On the one hand I see a general tendency that companies and individuals are leaving the old (un)safe paths and are embracing ‘newer’ technologies and on the other we see some of these new-comers now moving into maturity. Python has been with us since the late 1980’s and this articles take a peek at how Python has handled stepping into the new millennium.
More >

Brians functional brain

brians-functional-brain

If you’ve always wanted to implement a purely functional 2D rendered cellular automaton which runs in parallel on all your cores, this post is for you! I’ll walk you through how to render a 2d model of Brians brain in just 67 lines of Clojure.

More >

Dining philosophers — The 4th solution

dining-philosophers-the-4th-solution

In my last post I set out to solve a classic concurrency problem called ‘The sleeping barber’ and contrasted an STM solution with an Actor based solution. It occurred to me afterwards, that the interest in concurrency is quite huge these days (and for good reason), so I’ve decided to walk through the deadlock/livelock/starvation trap called The dining philosophers.

More >

Scala vs Clojure — Round 2: Concurrency!

scala-vs-clojure-round-2-concurrency

The time for ignoring concurrency has almost passed. If you read my last post you’ll know that I’m looking at Scala Vs Clojure and a big part of both of these languages is their support for concurrency. Scala uses an Erlang inspired actor model, which is a distributed approach to concurrency. Clojure on the other hand leans on it’s STM, a non-distributed approach — Lets put them in the ring together!

More >

PHP vs Clojure — What does it cost to be old-school?

Today we have many interesting ways to approach webdevelopment. I’ve heard people say “I love PHP because its so productive, I get tons of code hammered down in a matter of hours” — And while thats a nice experience for new programmers it can tend to slur the facts a little bit. Let me try to contrast Clojures (+ Compojures + ClojureQLs) properties with PHPs.

More >