The New C
Herb SUTTER
CopyRight 2002 Herb Sutter
These are heady times for C . Active standardization was put on hold after the C Standard was published in 1998, to give us time to fix bugs and let compilers and libraries catch up. Now things are "hot" again, and a lot of exciting Stuff is happening.
This new column is about precisely that "exciting stuff." Titled "The New C ," it focuses on the active work now under way to extend the C language (not much) and library (very much) now and in the next few years AS We Progress Toward "Version 2.0" of the C Standard.
There's a lot to cover, and this is where you'll Find the Most Up-to-Date Coverage. Some of US Have Already Written A Bit About The New C in Other Fora: for more overview information about where we're at And what (and why) exciting things are now happening, see the two complementary columns by me and Matt Austern in the January 2002 issue of CUJ [1, 2]. They contain some basic information about what's going on, who's going on about it, And - Perhaps Most Importantly Of All - How you can participate and how it it affects your work Today and in The Short Term, Not Just Years Down The Road.
A RoadMap
In this, the first installment of "The New C ," I am going to start with a complementary bird's-eye roadmap of where we've been and where we're going, and then I'm going to devote most of this introductory column to just that - introductions, of people and groups and terms, a "who's who" and "glossary" to the C standardization process in future columns, I'll describe in more technical detail some of the key facilities being considered, how. they work, and what issues come up as they're debated in committee and between meetings on the committee email reflectors.Figure 1 shows the major pieces influencing the development of the C Standard, both in leading up to C 98's publication in 1998 and C 0x's publication at some future time. This picture should give you a useful roadmap of how various items work and connect, and what leads to what else at about what time. The rest of this column defines the terms used in Figure 1 And for now, i won't say much more That, But I do haster to point out one thing in particular: Boost is by no means the only, or even necessarily the major, outside contribution to the Library TR (Technical Report); it just happens to be the most visible single group at this time.
Dramatis Personae
.
ANSI:. The American National Standards Institute At ANSI meetings, the rule is ". One company (or individual representing themselves), one vote" Within ISO meetings, ANSI's delegation is the delegation for the United States and thus receives one vote, just as the delegations for other countries represented at the meeting each get one ISO vote. Still, because of the United States' predominant role in the software industry in general and in C and C in particular, ANSI is something of a "first among equals" in Practice At WG14 and WG21 Meetings.ansi J11: The ANSI C Committee.
ANSI J16:.. The ANSI C committee J16 always meets together simultaneously with ISO WG21 (this being one expression of its "first among equals" status) For the past two years it has also met at the same location, and in an adjacent week , AS J11 SO as To Promote Cross-Committee Communication.
AT & T: AT & T Bell Labs (now AT & T Research) is where C began life in the early 1980s, the brainchild of Bjarne Stroustrup AT & T offered C for standardization and WG21 / J16 work began in 1989/1990..
Boost: The "C Boost" effort was originated just after the C 98 Standard was passed in order to start working on developing "existing practice" for the next round of active standardization Initially predominantly composed of standards committee members, the current membership. Has grown much wider. See
CWG (CORE WORKING Group): The "subsmittee" WG21 / J16 That Focuses on Core Language Issues, Such As Namespaces, Templates, And So Forth.
HP: Hewlett-Packard, where Alex Stepanov and Meng Lee invented the revolutionary STL (Standard Template Library), much of which was incorporated into the draft C Standard in 1995 and subsequently refined within WG21 / J16.EWG (Evolution Working Group): The NEWEST "subcommittee" WG21 / J16, Which First Met IN October 2001, That Focuses Specifically on Directions for C 0x.
. ISO: The International Organization for Standardization ISO is not an acronym, however; it comes from the Latin word for At ISO meetings, the rule is "one country, one vote." (There is some discussion going on "the same." Lately About Changing this, But for now's still the rule.)
ISO WG14: ISO C Committee. With The ISO Organization, The Technical Working Group Responsible for C Is JTC1 / SC22 / WG14, Usually Shortened to WG14.
ISO WG21: ISO C committee [3] Within the ISO organization, the technical working group responsible for C is JTC1 / SC22 / WG21, usually shortened to WG21 WG21 always meets together simultaneously with ANSI J16 For the past two years it has... Also Met At The Same Location, And in An Adjacent Week, AS WG14 SO as To Promote Cross-CommitTee Communication.
LWG (library working group): The "subsmittee" WG21 / J16 That Focuses on Standard Library Issues, Such As Containers, Algorithms, Streams, And So Forth.
PWG (Performance Working Group): The "subcommittee" within WG21 / J16 that focuses on the Performance Technical Report, which is not shown further here as it's not as directly concerned with C language and library features as experienced by users (compared to, say , Defect Reports and corrections in the TCs, and new features in C 0x) .Bjarne Stroustrup:. The creator of C and author of its first compiler, Cfront Stroustrup continues to be active in C standardization and currently chairs the fledgling C 0x EWG AT WG21 / J16 Meetings.
Alex Stepanov: The Principal Creatyl of The Stl Adopted As a Large Part of The Standard C Library.
Further Glossary
Besides The Above Persons and Organizations, There Are Some Other Common Names That Deserve Definition. They'll Be Bandied About Regularly In this Column:
ARM C : C as of 1990. "The ARM" IS An Acronym for the Book Titled The Annotated C Reference Manual [4]. The Arm Was Used As The Base Document To Begin The C Standardization Effort.
C 98: The First Official ISO / ANSI C Standard, Published in 1998. Officially Known AS ISO / IEC IS 14882: 1998 (e).
C 0x: The Second Official ISO / ANSI C Standard, Which is getting Under Way Now and will be published in conoming years.
C99:. The second official ISO / ANSI C Standard, published in 1999. This standard contains much that the C committee can be expected to adopt wholesale, or with minor modifications, as part of C 0x After all, it's clear that the C committee values C compatibility, and the C committee has helped us by likewise valuing C compatibility, which has made some of C99's features easier to integrate into C 0x than they might otherwise have been. There are still some C99 features, however, that C 0x can not easily adopt in their C99 form, because conflicting facilities already exist in C 98 (for example, complex is a class template in C 98 and a keyword in C99) .Library Extensions TR (Technical Report ):. Starting in 2001, WG21 / J16 began actively soliciting and evaluating proposals for extensions to the C 98 Standard library These are being collected for later publication in the form of a "Library Extensions" TR, which is officially non-normative , But don't kid yourself - As with the DRAF t standard of C in the early and mid-1990s, vendors will be tracking this closely and implementing facilities as quickly as they can. Why? Because this TR, although non-normative in itself, is specifically intended to be added wholesale and verbatim into The COMING-AND-WILL-BE-VERY-NORMATIVE C 0X Standard.
STL: The groundbreaking STL developed by Alex Stepanov and Meng Lee at Hewlett-Packard Labs in the early 1990s Most of the HP STL was adopted in 1995 and then refined to become the "containers, iterators, and algorithms" portion of the C . 98 Standard Library.
TCI (Technical Corrigendum 1): Completed In 2001, The First "Mid-Course Correction" (AKA "Patch," AKA "Service Pack," Aka "Maintenance Release") To the C 98 Standard. Contains the resolutions to defect Reports submitted by the global C community.TC2 (Technical Corrigendum 2): As we continue working on the Library TR and C 0x, there will no doubt continue to be resolutions to still-pending and not-yet-received Defect Reports. Depending On The Timing of C 0x, The MAY BE ISSUED IN The Form of A Second TC.
Next Time
Because of publishing lead times, even on the Web, I expect to finish writing two more installments of this column before the next C standards meeting in April 2002. Next time: a survey of the first batch of suggested library extensions considered at the October 2001 WG21 / J16 Meeting in Redmond, Washington, USA. The next time after this of the proposed facilities. Stay Tuned.
References
[1] Herb Sutter. "Sutter's Mill: Toward A Standard C 0x Library, Part 1," C / C Users Journal, January 2002.
[2] Matt Austern. "The Standard Librarian: and now for Something Completely Different," C / C Users Journal, January 2002,
[3] The Official WG21 Website IS at
[4] Margaret Ellis and Bjarne Stroustrup. The Annotated C Reference Manual (Addison-Wesley, 1989).
About the Author