Integration Watch: So, you want to write a little language?



Email    print   
October 15, 2008 —  (Page 1 of 2)

Writing and implementing a language are nothing new to many computer geeks. University comp-sci curricula regularly require designing and implementing a toy language (complete with a compiler and, these days, a virtual machine).

This exercise often gives programmers a bug that lasts for years: the desire to write and implement their own language. The fantasy often wears off over time, however, diminished by the complexity of the task; the low likelihood that the resultant language would find adoption beyond the developer and a few acquaintances; and, most important, the fact that, aside from a narrow set of personal needs, new languages tend to mimic existing, established ones.

Industry and commerce, however, are a different world altogether. Most large software packages need some kind of little language, or domain-specific language (DSL), to be used for commands, macros and scripting. Regrettably, many DSLs today are designed to use XML syntax in order to facilitate the language parsing. Use of a data interchange format as the defining grammar makes many human-oriented DSLs, such as Ant’s syntax, very unpleasant.

Good DSLs are naturally expressive; that is, their language reflects the problem domain they address. Once such a language is learned, it is easy to remember. A good example is the data and text manipulation language awk. Its syntax is so simple that you can return to it years after you last looked at it and be productive in a few minutes with just a reference card. Of course, awk’s advanced capabilities involve a larger, fuller syntax, but even that retains a remarkable ease of use.

Designing good DSLs or full, expressive languages is no easy job. And yet, it is the design stage that frequently will determine a language’s appeal. For example, a substantial part of Ruby’s attraction is what users describe as its intuitive syntax, pleasant expressiveness and brevity. (Compare those sentiments with your experience writing Ant files.)

The challenge of good language design is that it is little taught and rarely discussed. It remains tucked away as though it were the province of a cabal of specialists with Ph.Ds who scare the uninitiated with terms such as “monads” and “lambda calculus.”



Related Search Term(s): software development

Pages 1 2 


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

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
News Briefs: July 15, 2008
Enea is named to the board of CP-TA, Teradata introduces a new version of its data warehousing tool and SOA Software upgraded its Repository Manager to accommodate its Policy Manager software 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