Ten Questions with Joe Armstrong about Parallel Programming and Erlang
This is the first post in my Interviewing the Parallel Programming Idols-Series. My interview partner today is Joe Armstrong, one of the founding fathers of the Erlang programming language. He presently works for Ericsson, where he designed the very first version of Erlang (that was a long time ago in 1986). He is also co-author of the book on Erlang to date: Concurrent Programming in Erlang. And soon, we will have the pleasure of having another book from him in association with the Pragmatic Programmers (this time with him as the main author) – Programming Erlang: Software for a Concurrent World. Besides writing books and inventing programming languages, he teaches courses on Erlang, pursued his PhD in computer science, founded one of the first Erlang startups and enjoys his motorcycle. I wonder where he finds the time to do all that. 😀
But enough with the preface, let’s start with the interview. The first five questions are about parallel programming in general:
Michael: As we are entering the many-core era, do you think parallel computing is finally going to be embraced by the mainstream? Or is this just another phase and soon the only people interested in parallel programming will be the members of the high performance community (once again) ?
Michael: From time to time a heated discussion evolves on the net regarding the issue of whether shared-memory programming or message passing is the superior way to do parallel programming. What is your opinion on this?
Transaction memories and pure message passing system suffer from none of these problems.
Michael: From your point of view, what are the most exciting developments /innovations regarding parallel programming going on presently or during the last few years?
Things like bit torrent are destroying traditional industries, the spinning jenny destroyed the home yarn spinning industry in the 1770’s bit torrent is doing the same thing to the record industry. It’s not a question of if it happens it’s a question of when.
Michael: Where do you see the future of parallel programming? Are there any “silver bullets” on the horizon?
Michael: One of the most pressing issues presently appears to be that parallel programming is still harder and less productive than its sequential counterpart. Is there any way to change this in your opinion?
The world *is* parallel – we are parallel.
So much for the first part of this interview. Without further ado, here is the second part about Erlang:
Michael: What are the specific strengths and weaknesses of Erlang as compared to other parallel programming systems? Where would you like it to improve?
Weakness – distributed Erlang has all-or-nothing security. It would be better to have different levels of security and capability or trust based security models.
Michael: If you could start again from scratch in designing Erlang, what would you do differently?
- Make modules and code handling higher-order, add introspection.
- Add a layer of contracts for asserting properties of protocols.
- Make protocols into first-class citizens in the programming language.
- Make a trust/capably layer for distributed computing.
- Also make layers for weakly-connected distributed systems. Distributed Erlang is only for cluster-like computing with strong security.
Michael: Are there any specific tools you would like to recommend to people who want to program in Erlang? IDEs? Editors? Debuggers? Profilers? Correctness Tools? Any others?
Michael: Please share a little advice on how to get started for programmers new to Erlang! How would you start? Any books? Tutorials? Resources on the internet? And where is the best place to ask questions about it?
Tutorials: www.trapexit.org
Distribution: www.erlang.org
Questions: erlang mailing list (sign on at www.erlang.org)
Michael: What is the worst mistake you have ever encountered in a Erlang program?
told what the problem was, not guess.
So the worst mistake was when I wrote a multi-page comment to explain some particular tricky point in a program only to find that in a later version somebody had removed the entire comment.
Michael: Thank you very much for the interview!