Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

ArticlesThe Erlang Language


August 1994 / Core Technologies / The Erlang Language

The Erlang language, named after Danish mathematician Agner Erlang, was developed by a team of employees at the giant Swedish communications firm Ericsson, where it's used to write huge real-time control programs for telephone exchanges and network switches. Since it's targeted specifically at the communications industry, Erlang eschews many powerful features of Miranda and Concurrent Clean for execution speed, but it nevertheless remains a pure FPL (functional programming language) with no destructive variable assignment.

Erlang supports concurrency and has built-in primitives for asynchronous message-passing between processes. The language was originally developed on an interpreter written in Prolog, but the latest version generates C macros for compilation by standard C compilers. Erlan g uses a fairly orthodox FPL syntax with both pattern matching and guards. Here's one possible definition of the factorial function:

factorial(0) -> 1

factorial(n) -> n * factorial(n-1)

Lists and tuples are the only compound data types Erlang supports; however, like Clean, it features an efficient interface to several GUI operating systems, so you can write interactive graphical applications. Special attention is paid within Erlang to error-handling behavior and to ``hot'' replacement of code modules in running systems, which is vital in the telecommunications business.

Ericsson's experience with Erlang so far is extremely encouraging. Joe Armstrong, one of Erlang's developers, tells me his team has just written ``what we believe to be the largest declarative program ever written: 250,000 lines of Erlang and still growing.'' This would be equivalent to several million lines of a less-expressive language, such as C.

Ericsson will release Unix and Windows NT versions of Erlang a s commercial products this summer. A free DOS version is planned soon.


Up to the Core Technologies section contentsGo to previous article: Functional Programming Comes of AgeGo to next article: A Different Kind of RISCSearchSend a comment on this articleSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network