Developers moving to Erlang for code scaling



Email    print   
December 26, 2008 —  (Page 1 of 2)
There's no denying that writing scalable code is difficult. When the processors involved are multiplying by the day, some tactics become inevitable, such as using locks and setting up message queues between systems.

At the fringes of the scalability world, Erlang is being lauded as a programming-level solution to the problem. But even for its proponents, there's no denying the language's lack of penetration.

Originally created in 1987 by Ericsson, a Swedish telecommunications company, Erlang was designed to build fault-tolerant, concurrent applications. In some ways it is similar to Smalltalk in that everything is a message.

Damien Katz won the Erlanger of the Year award for 2008. He's the creator of CouchDB, a Lotus Notes-style document database written in Erlang. He said that he rewrote six months' worth of C++ into Erlang over a month and a half. “It is actually very close to Smalltalk, I think, in terms of the original goals of Smalltalk. But Erlang hides its state within a process, and Smalltalk hides it in an object,” said Katz.

Katz came to the language for its concurrency, which allows for cheaper scalability, he said. He had worked with threads and locks in C++ for many years prior to learning Erlang in 2007.

“Instead of having these threads which live in the same process and can see the same global data, Erlang has what're called processes. There are little virtual processes, and they all live inside the Erlang virtual machine,” said Katz.

“They can't see each other. All they can do is send messages. They can send asynchronous messages, and that's how you do all of your concurrency. Instead of global data, where you modify it and read it and set a global lock, you send it a message and say, 'Give me a value for foo,' or you might send a message like, 'Increment the bar value.' You have these processes, and they are self-contained, they have their own memory, and they can die. It's a very different programming model than the traditional threads model.”



Related Search Term(s): databases, Erlang, servers, ProcessOne

Pages 1 2 


Share this link: http://sdt.bz/33136
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
CouchDB nearly completed, looks for customers in cloud
After three years of development and an Erlang overhaul, CouchDB is within a year of completion, according to its creator, Damien Katz. He believes that its document management system will make it especially appealing to cloud developers Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb