|
|
AS OF 7/4/2008 8:26PM EST
|
Larry OBrien: Erlang: What the Cool Kids Are Doing
By Larry O'Brien
October 15, 2007 —
Geepster, n. A person who derives his or her identity by mastering complex, but lesser-known, technologies; a geek hipster.
Erlang, n. What all the geepsters are using now that they let anyone code in Ruby.
The psychology of the early market adopters is brutal. Enthusiasts and visionaries convincingly sing the praises of this programming language or that architectural model, articulating advantages and emphasizing the game changing nature of the technology. Thousands of blogs are launched, dozens of books are printed, a clutch of conferences convened: The technology is poised for total and utter dominance of the software development world! Then everyone moves on to the next thing.
Ive long advocated the model explained in Geoffrey Moores Crossing the Chasm, with its ruinous chasm between early and mass markets, as the best for understanding the adoption of software development technologies. I dont want to rehash that belief, but I feel sorry for those in the Ruby and Rails communities, who must be feeling a little jilted right now. To be clear, I believe that Ruby actually has crossed the chasm and will see wholesale adoption in the enterprise. Microsofts IronRuby project has tremendous potential when coupled with the Dynamic Language Runtime and Silverlight 1.1, while Suns JRuby project has not just shipped, but appears to be ticking off incremental milestones with ease.
Meanwhile, CodeGear, the company formed from Borlands languages division, has shipped the first version of a dedicated IDE for Ruby called 3rdRail, and SapphireSteel, whose Ruby In Steel plug-in for Visual Studio has been my preferred IDE for Ruby development, has made a .NET-to-Ruby bridge available for free download. But the blogospheres encomiums to Ruby have definitely waned, and recent Technorati searches have been more likely to turn up sour this would be easier in PHP posts than the rapturous testimonies of the past few years. Such is the fate of technologies running the gantlet of the skeptical mass market.
In the meantime, the geepsters have moved on to Erlang. Erlang is not short for Ericsson Language, but rather is named after A. K. Erlang, an early telecomm theorist (whos also, I am told, the namesake of a dimensionless unit of telecomm traffic volume). The fact that Erlang was developed and matured within Ericsson is a happy coincidence. Until recently, Erlang was viewed in the programming language community as a commercial (and therefore somewhat suspect) language suited primarily for telecomm and perhaps other embedded systems. The surge in interest has been driven primarily by the release of Joe Armstrongs excellent tutorial book Programming Erlang: Software for a Concurrent World (Pragmatic Bookshelf) and the growing realization that we are, indeed, entering that concurrent world.
Erlang implements the Actor paradigm for concurrency, whose essential component is very fine-grained asynchronous messaging flowing between lots of processes (its worth noting quickly that Erlangs processes do not have anything like a 1:1 mapping to OS processes). As Ive mentioned in recent columns, this is one of several alternatives to the lock-based model embodied in .NET and other mainstream platforms. Although its far too preliminary to crown any of these alternatives as a complete solution, nothing but good can come from more people taking them out onto the roads for a spin.
While creating thousands of processes is the thrill that is causing the most excitement right now about Erlang, it also has a fascinating hot swap capability that allows you to replace modules dynamically without losing state or restarting the application. Obviously, this is part of Erlangs telecomm legacy, but the thought of a system that never has to be taken out of service for upgrading is heady stuff.
Erlangs syntax may be intimidating at first glance, and its lack of a modern IDE off-putting, but those are exactly the sorts of things that enthusiasts and visionaries can look past in favor of a technologys unique virtues. Of course, in three years, you can expect me to start screaming that what Erlang needs is an editor with decent code completion.
Larry OBrien is a technology consultant, analyst and writer. Read his blog at www.knowing.net.


|