The Artima Developer Community
Sponsored Link

Java Community News
Lennart Ohman's Video Presentation on Erlang

2 replies on 1 page. Most recent reply: Aug 1, 2007 8:01 AM by indranil banerjee

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Lennart Ohman's Video Presentation on Erlang Posted: Jul 26, 2007 1:51 PM
Reply to this message Reply
Summary
Earlier this summer, Lennart Ohman, a long-term user of the Erlang language, gave a Google TechTalk on Erlang's design goals and the language's future.
Advertisement

Lennart Ohman worked at Swedish phone giant Ericsson when a team of language experts set out to examine the properties of an ideal language for programming telephone switches. The result of that effort was the Erlang language.

In a recent Google TechTalk, Ohman explains the reasons that led Ericsson to design a new language, and how those reasons make Erlang relevant to a larger set of problems today. He also provides programming examples, and talks about the future of Erlang. Here are a few excerpts from this talk:

They set out to program a PBX, a [telecommunications] switch, in over twenty different programming languages and development environments to see the strengths and the weaknesses [of those languages] for their problems. After doing that for about a year, they came to a very interesting and exciting decision: that we were going make our own programming language. They've seen a lot of good things in various programming environments and languages, and wanted [those] in one single programming language.

The problems for programming this switch were fault tolerance—in the telecoms sector, downtimes of fractions of seconds per year is merely acceptable. You have no time to take the system off-line and plan maintenance.

This goes hand-in-hand with the non-stop property. Of course, the system goes down if it breaks, if you have an error. And the question is, What shall we do then? Write error-free software? I've seen in my career meetings where quality managers said, "Now, it's very important for us to write completely error-free software." From the Erlang department, we raised our hands and said, "Mr. Manager, that's impossible." And the manager would say, "But you are very skilled Ericcson engineers, you shall be able to write error-free software."

We knew from exerience that if you write a large system, you will have errors, either because you make mistakes yourself, or because you didn't understand the problem domain, or because the [problem] wasn't properly described. So you will have to try to make something where a small error will not bring the entire system down...

But non-stop is not only about errors. It's also about maintenance. Software needs to be from time to time upgraded... [Restarting the system] is not really acceptable in this problem domain...

Other areas [of interesting] was concurrency. A telecoms switch is heavily concurrent. In the mid-1980s, concurrency was less known, and not as important a property as it is today... We needed concurrency in the language if we were going to be able to describe typical telecoms problems...

Then there is also "prototypability." The laboratory saw a great advantage in having a language where it's possible to start off very quickly with your idea, to [allow you to] see what works and what doesn't work.

What do you think of Erlang as a language?


Alex Fabijanic

Posts: 71
Nickname: aleksf
Registered: Aug, 2006

Re: Lennart Ohman's Video Presentation on Erlang Posted: Jul 27, 2007 5:43 AM
Reply to this message Reply
Concurrency is an area where Erlang shines:

http://www.sics.se/~joe/apachevsyaws.html

And then, note the flatness of Erlang CPU-time curves and decent C (coroutine) performance compared to abysmal Java 6 and C++ (Pthreads) data in this benchmark:

http://shootout.alioth.debian.org/gp4/fulldata.php?test=message&p1=hipe-2&p2=gpp-2&p3=gcc-2&p4=java-0

Erlang has been around for a while. The reason for the recent increased interest in this language is definitely concurrency.

indranil banerjee

Posts: 11
Nickname: indranilb
Registered: Feb, 2004

Re: Lennart Ohman's Video Presentation on Erlang Posted: Aug 1, 2007 8:01 AM
Reply to this message Reply
You seem a bit selective in your choise of benchmarks.

How about this one

http://shootout.alioth.debian.org/gp4/fulldata.php?test=nsievebits&p1=hipe-2&p2=gpp-2&p3=gcc-2&p4=java-0

or this

http://shootout.alioth.debian.org/gp4/fulldata.php?test=recursive&p1=hipe-2&p2=gpp-2&p3=gcc-2&p4=java-0

Flat View: This topic has 2 replies on 1 page
Topic: Atlassian Acquires Cenqua Previous Topic   Next Topic Topic: Comparing Astoria and the Google Base API for Querying RESTful Resources

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use