InfoQ

News

Anders Hejlsberg and Guy Steele on Concurrency and Language Design

Posted by Jonathan Allen on Oct 22, 2008

Community
.NET
Topics
Performance & Scalability ,
Language Design
Tags
Parallel Programming ,
Functional Programming

An interview recorded at JAOO, Anders Hejlsberg and Guy Steele talk about concurrency in language design. Anders Hejlsberg is the chief architect of C#, creator of Turbo Pascal, and former chief architect of Delphi. Guy Steele is the creator of Scheme and is currently working on Sun's Fortress, a programming language that focuses on parallelism and mathematics.

According to Anders, the change in emphasis is that the focus on parallelism is moving from coarse task and process based concurrency to a fine-grained concurrency where "you want to break a single logical task into multiple workloads".

One of the areas Anders is working on is finding a way for the compiler to know if an object has been "revealed to the rest of the world" and using that information to determine if it is safe to mutate. The challenge is that programmers have been taught to write in ways that are incompatible with where they need to go.

Guy follows with defining two types of concurrency, those that are fundamental to the application such as transactional processing, and those that are the result of not having a single CPU that is fast enough. For the latter type he claims that developers would be happy not to use multi-threading if it were a viable option. He does not care if the language is functional or not, as long as you can tell the compiler where it's OK to use parallelism.

Anders counters that developers do not necessarily know if their code, or the code it uses, are actually safe. This is where the idea of making pure functions, functions without side-effects, able to call only other pure functions.

When the topic turns to functional programming languages they both mentioned there is a lot of interest in it, but acknowledge the problems with retraining developers who have already heavily invested in imperative programming skills. Anders also brings up the issue of efficiency in functional languages; specifically algorithms like QuickSort perform poorly in functional languages. He prefers a hybrid approach where there are "islands of purity" in an otherwise imperative language with a clear delineation between them.

No comments

Watch Thread Reply

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.