Computerworld is undertaking a series of investigations into the most widely-used programming languages. Previously we have spoken to Alfred v. Aho of AWK fame, S. Tucker Taft on the Ada 1995 and 2005 revisions, Microsoft about its server-side script engine ASP, Chet Ramey about his experience maintaining Bash, Bjarne Stroustrup of C++ fame, to Charles H. Moore about the design and development of Forth and a chat with the irreverent Don Woods about the development and uses of INTERCAL.
This interview is dedicated to the investigation of YACC, and to chatting with AT&T alumni Stephen C. Johnson. Johnson is currently employed at The MathWorks, where he works daily with MATLAB. Computerworld snatched the opportunity recently to get his thoughts on working with Al Aho and Dennis Ritchie, as well as the development of Bison.
Please note that we are no longer following exact alphabetical order for this series due to popular demand. If you'd like to submit any suggestions for programming languages or language authors that you'd like to see covered, please email naomi@computerworld.com.au.
What made you name your parser generator in the form of an acronym: Yet Another Compiler Compiler?
There were other Compiler-compilers in use at Bell Labs, especially as part of the Multics project. I was familiar with a version of McClure's TMG. When Jeff Ullman heard about my program, he said in astonishment "Another compiler-compiler?". Thus the name...
What prompted the development of YACC? Was it part of a specific project at AT&T Labs?
"Project" sounds very formal, and that wasn't the Bell Labs way. The Computer Science Research group had recently induced AT&T to spend many million dollars on Multics, with nothing to say for it. Some of my co-workers felt that the group might be disbanded... But in general, Bell Labs hired smart people and left a lot of interesting problems around. And gave people years to do things that were useful. It's an environment that is almost unknown now.
YACC began for me as an attempt to solve a very simple, specific problem.
What problem were you trying to solve?
Dennis Ritchie had written a simple language, B, which ran on our GE (later Honeywell) system, and I started to use it to write some systems programs. When Dennis started to work on Unix, the compiler became an orphan, and I adopted it. I needed access to the exclusive-or operation on the computer, and B did not have any way to say that. So, talking to Dennis, we agreed that would be a good name for the operator, and I set out to put it into the compiler. I did it, but it was no fun.
One day at lunch I was griping about this, and Al Aho said "There's a paper by Knuth-I think he has a better way...". So Al agreed to build the tables for the B expression grammar. I remember giving him about 30 grammar rules, and he went up to the stockroom and got a big piece of paper, about 2 by 3 feet, ruled it into squares, and started making entries in it. After an hour of watching him, he said "this will take a while". In fact, it took about 2 days!
Finally, Al handed me the paper in triumph, and I said "what do I do with this?" He taught me how to interpret the table to guide the parser, but when I typed the table in and tried to parse, there were errors. Each error we found involved another hour of Al's time and some more rows in the table. Finally, after the third time I asked him "what are you doing when you make the table?" He told me, and I said "I could write a program to do that!" And I did...
Latest on C/C++
- Palm opens up developer program, adds plug-in support
- KDE 4.4 aims to take free desktop skyward
- Open source identity: PulseAudio creator Lennart Poettering
- Kernel 2.6.31 to speed up Linux desktop
- Red Hat open sources Windows virtualisation drivers
- Intel acquires software company RapidMind
- The A-Z of Programming Languages: Clojure
- KDE 4.3 released for a ‘greatly’ improved experience
- NICTA opens its software to the world
- Microsoft extends access to C#, CLI
Development Essentials
- Security experts name top 25 programming screw-ups
- Top 10 wicked cool algorithms
- Facebook app verification fee draws criticism
- Microsoft's openness stressed
- Yahoo's developer platform to launch this week
- Microsoft starts new developer portal
- Google API allows creating apps that can track laptops
- PHP, JavaScript, Ruby, Perl, Python, and Tcl Today: The State of the Scripting Universe
- Analyst: In-house app development fraught with waste
- Is unit testing doomed?
- Business Analyst- Leading International Banking Organisation9/02/2010
Financial Services
I.T. & T
Business Critical Project - Visual C++ Software Engineer9/02/2010
Telecommunications
I.T. & T
Visual C++ Software Engineer - Fast Paced Environment - Agile - High Transactional Systems - Senior Test Analyst - Investment Banking / Equities9/02/2010
Financial Services
I.T. & T
Senior Test Analyst - Investment Banking / Equities - 6 month contract - Blue Chip Employer - VB/.NET Developer - Warrants Business - Contract or Perm - Sydney CBD9/02/2010
Other
I.T. & T
VB/.NET Developer - Warrants Business - Contract or Perm - Sydney CBD - $ WANTED $ - Software Deployment Engineer9/02/2010
Other
I.T. & T
$ WANTED $ - Software Deployment Engineer
Whitepapers
TechWorld Blogs
Recent blog posts
- Talk about mobile computing
- iPad arrives: can Apple crack the tablet?
- Linux.conf.au 2010 kicks off in New Zealand
- VMware jumps further into SaaS with Zimbra
- Amarok 2.2.2 released – rock on!
- Happy Nexus Year
- So long 2009, and thanks for another decade in tech
- KDE 4.4 enters beta, bring on mainstream computing
- Chromium OS source released: another way of thinking
- Dell goes Android for mobile market entrance
Recent comments
- Touch Phone Accessories
1 sec ago - ayou
49 min 43 sec ago - joo joo
51 min 26 sec ago - Thanks!
20 hours 24 min ago - Transcription mistake
1 day 21 hours ago - Freeway is hardly Australian
1 day 23 hours ago - Great Business Initiative
2 days 18 hours ago - www.mintfly.com
2 days 22 hours ago - also creating unemployment
3 days 15 hours ago - How to save in one page???
4 days 17 hours ago - Well it's 2010 now...
5 days 2 hours ago - Man, catch up. You're being
6 days 3 hours ago - Rhapsody in Australia
6 days 3 hours ago - ipad reaction
6 days 18 hours ago - Capacity Bollenecks
1 week 8 hours ago - not only for "young folks"
1 week 1 day ago - Take action now
1 week 1 day ago - u guys are a idiots. i have
1 week 1 day ago - David Southern
1 week 2 days ago - Firefox's biggest weakness: rendering
1 week 3 days ago







Comments
Transcription mistake
Hi! I think there's a transcription mistake in the answer of the last question: You CAN'T rewrite a program ...
Probably it should be: You CAN rewrite a program ...
GNU does credit Unix, constantly
"Unix" is the U in GNU, so I'm somewhat bemused at Stephen Johnson's bemusement about how much credit Unix gets.
GNU stands for "GNU's not Unix" because that sums up GNU's key characteristics. One is that its design is based on Unix, and the other is that it is a rewrite. Being a rewrite meant that GNU was not encumbered by Unix's copyright. This allowed GNU to pursue the goal of using copyright to give users freedom instead of restricting users.
Richard Stallman describes the naming process in detail here:
http://www.fsfeurope.org/documents/rms-fs-2006-03-09.en.html#the-name-gnu
Post new comment