Archive

Posts Tagged ‘Erlang’

Rob Pike on concurrency

September 18, 2007 Leave a comment

Watch this great Google talk with Rob Pike. He talks about concurrent processes and message passing in the context of Newsqueak – a programming language that he wrote 20 years ago. What he describes is very similar to the Erlang programming model except that channels are first class citizens.

Advertisements

Scala adds Erlang-style actors

August 12, 2006 Leave a comment

Scala 2.1.7 and above now come with an Actors library which effectively gives Scala an Erlang style programming model. There is a very interesting paper about the library (linked from Lambda the Ultimate). Scala is really looking great. Let’s hope that Scala is the Java of the future :).

CSP for Java programmers

Finally read through this series from IBM developerworks. It’s a worthwhile read for anyone interested in alternatives to doing shared-memory concurrency. JCSP is kinda like an Erlang library for Java (but unfortunately the threads aren’t as lightweight).

[ Part 1 Part 2 Part 3 ]

Avoid round trips!

October 22, 2004 Leave a comment

Just watched Ted Neward’s TSS tech talk. It resonated with me quite well. He revealed that his new book – Effective Enterprise Java – is sumed up by the phrase: “Avoid round trips!”. I like his “let’s not get religious about OO” attitude. He seems a little closed to dynamically typed languages and talks about “strong typing” when he means “static typing”. Anyways, he’s trying out Smalltalk so there’s hope :). All the talk of REST and “spaces” (JavaSpaces, T-Spaces etc) leads me to think of the Erlang and Oz models of concurrency (like a generalisation of the UNIX pipe). These languages need more proponents!

Erlang the Movie

August 22, 2004 Leave a comment

Just watched Erlang the Movie from 1990 (200M, via lambda-the-ultimate). Such a laugh I had to watch again :-). However, there was a serious demonstration of a “hot software upgrade” technology which allowed the system software to be patched while continuing uninterrupted in “24×7” style.

I downloaded the movie via BitTorrent using BitTornado. You can “apt-get install bittornado-gui” if you’re on Debian.

Erlang is a programming language that uses message passing concurrency rather than shared state concurrency (as in Java). Some other languages with message passing concurrency are Oz, E, Io and apparently MultiLisp (a Scheme dialect).

Categories: Programming Tags:

SwingWorker race condition

August 22, 2004 Leave a comment

I was reading about the problems related to shared state concurrency (as opposed to message passing concurrency as in Erlang and Oz). I came across the following interesting bug described on the wiki discovered by Luke Gorrie. There is also a reference to a Sun article describing the bug and the solution. This is ancient history but probably a problem misunderstood by many Java programmers.

Categories: Programming Tags: , , ,