Http://www.artima.com/cppsource/top_cpp_software.html
The C ++ Source
A pause to reflect: five lists of five, Part III
The most important C ++ software...Ever
Opinion
By Scott Meyers
August 23,200 6
Summary
In this article, Scott Meyers shares his picks for the five most important software packages in the history of C ++, along with why he chose them.
In my first two articles in this series, I named my picks for the most important contributions to C ++ in the categories of books and non-Book Publications:
- "The most important C ++ books...Ever"
- "The most important C ++ non-Book Publications...Ever"
In this third installment, I will turn my attention to the most important C ++ software...Ever.
To write software in C ++, you need tools to help you do it. in my view, those tools have been (and continue to be) the most important software related to c ++. one can imagine one or more blockbuster applications developed in C ++ that drove hordes of people to choose the language for future projects, but I'm not aware of that ever happening. the most important software for the language has been the bread-and-butter stuff of the software development crowd: compilers and libraries. perhaps this is fitting for a language designed more for writing libraries than for writing applications.
My picks for the five most important pieces of software in the history of C ++, ordered chronologically by first appearance, are:
Cfront by at&t Bell Telephone Laboratories, 1985-1993. in the beginning, there was cfront, the original C ++ compiler. it was a true compiler, But it generated C as its object code, so it was common to think of it as a Preprocessor that translated C ++ to C. it was hard not to think otherwise when debugging, because, at least when I started using it in 1988, there were no C ++ debuggers. instead, we grizzled pioneers used C debuggers and learned to mentally unmangle names (e.g ., to recognize that_ Pl _ 1aff
In the debugger referred to someOperator +
Function in the C ++ source code ).
the fact that cfront generated C had two advantages. first, it was fairly easy to port cfront to new platforms, because C compilers were ubiquitous. this facilitated the rapid spread of C ++ to initialize environments. second, it allowed users to look at the generated code to see what was going on during compilation. this helped demystify the language at a time when most people using it were c ++ beginners trying to figure out how it worked. it also acted as a kind of security blanket. you didn't really have to worry about C ++ pulling the wool over your eyes if everything it did was sitting there in plain sight (or at least sight as plain as machine-generated C ever gets .)
until about 1990, cfront not only compiled code, it also acted as the de facto language standard. c ++ came from at&t and cfront came from the C ++ group at at&t, so whatever cfront did had to be correct. for a time, this led to other compiler vendors adhering so closely to cfront behavior, they reproduced its bugs, too. when the annotated C ++ reference manual (ARM) was published, cfront's role as a reference implementation gradually diminished, especially when it became clear that adding exception-handling support to cfront called for Herculean effort.
the final cfront release was in 1993, but at least its ghost lives on. edison Design Group-a company know for producing the most standard-conformant C ++ front ends in the business-notes in a July 2006 document that they have a cfront-compatibility mode. personally, I suspect that there are a few cfront implementations being used for Embedded projects on platforms where there's still no native C ++ compiler, but that's just speculation on my part.
GCC by the GNU project , 1987-present. GNU got into the C ++ business early, and it released the first compiler generating native code (in contrast to cfront's c ++-to-C translation ). over the years, the GNU Compiler has become the preferred choice for cross-platform use. the fact that it's a cross compiler has also made it popular for embedded systems development. GCC itself is a compiler platform supporting multiple front ends (e.g ., c, C ++, Fortran, etc .) and multiple back ends (for targeting different platforms); the version for C ++ is known as G ++.
in the early days, the driving force behind g ++ was Michael tiann. I fondly recall the time I submitted a G ++ bug report, and, shortly thereafter, got a reply from tiann. he has ded a new production for the G ++ grammar, along with a request that I add the production, rebuild the compiler, And see if the problem I 'd reported went away. as I recall, the problem remained, but there's just something about having the author of a compiler send you a mod and asking you to install it. incidentally, tiann cofounded Cygnus support in 1989, and I believe Cygnus was one of the first companies based on free software. (It's reported that in the early days, tiann sometimes held meetings at cygnus in a hot tub .)
G ++ is open source, so the C ++ community has free access to a C ++ front end that is, for all practical purposes, standard-conformant. yet I don't know of any open source tools (e.g ., lints, refactoring tools, etc .) derived from the G ++ code base that parse everything g ++ does. there are tools that parse all c ++Declarations(E.g ., gccxml), but, as far as I know, none that parse both declarations and definitions (especially function bodies ). this says something about G ++'s front end, and though I have no personal experience with it, I doubt that it's complimentary. this is unfortunate, because C ++ developers cocould really use a larger tool set, but the barrier to entry for truly powerful tools is the ability to parse1 C ++ source code, and that's a barrier very few have been able to breach.
Visual c ++ by Microsoft , 1992-present. visual c ++ (VC ++) has been at once one of the most important reasons for the success of C ++ and one of the most potent forces Retarding its progress. notwithstanding Bjarne stroustrup's assertion that "nobody knows what most C ++ developers do, 2 "I have little doubt that if you lined up every C ++ developer on the planet and polled them for the compiler or compilers they use for production work, A majority wocould mention VC ++. for that reason alone, Visual C ++ has been and continues to be important to C ++. furthermore, the flagship Microsoft products (E. g, operating systems and Microsoft Office applications) are written entirely or primarily in C ++ and are compiled with the visual C ++ compiler. this, too, makes VC ++ important in the world of C ++. the company's reliance on C ++ has led them to develop tools and APIs to support its use, and that has motivated Bytes Windows developers to adopt the language. by the late 1990 s, C ++ was known to combine (and to my shock and dismay) as "the Microsoft language. "3 visual C ++ remains a dominating presence on the C ++ landscape. for legions of programmers, Visual C ++ Is C ++.
Unfortunately, there were policyears during which Microsoft's implementation fell far short of the standard. up until 1998, this wasn' t a problem, because there wasn' t any standard to adhere to, and compilers from other vendors had their own share of issues. however, Visual C ++ 6 (vc6) was released in 1998, nearly a year after the C ++ standard had been completed. vc6's standards-Conformance was less than exemplary, but at the time, that was not a serious problem, because relatively few programmers were using the "new" Features of Standard C ++. what made it a serious problem was that vc6 remained the current Microsoft release until 2002 (when vc7 was released), and even then the compiler itself went largely unchanged. rather, the primary improvement in standards conformance came in the form of an upgraded Library (e.g ., A more standards-conformant implementations of the STL), something release of us felt shoshould have been done as a patch release years earlier. the 2003 release of Visual C ++ (vc7.1) finally resolved most issues of standards conformance, but during the six years between vc6 and vc7.1, cross-platform developers using VC ++ had to expend enormous effort to work around VC ++'s failure to support things like partial template specialization, typically through Conditional compilation (I. E ., fragmented Code bases ). furthermore, please developers continue to use vc6 even today, and those developers continue to be beholden to the demo-the visual c ++ team made to largely ignore standards conformance for that release. (For such developers, for example,New
Doesn't throw an exception if memory is exhausted, it returns the NULL pointer .)
Since 2003, VC ++ hasn't had what I consider to be significant problems with standards conformance, And I'm convinced that the current leadership takes standards conformance seriously. still, Because I frequently work with developers whose lives (or at least whose code bases) were made unnecessarily difficult for the six-year span from 1998 through 2003, I 've decided that I'm justified in harboring a grudge against Microsoft into 2008-six years from the time they released a "real" C ++ compiler.
The standard template library, originally by HP , 1993-present. that the standard library for a language like C ++ shocould offer a set of commonly-useful containers and algorithms is not particle surprising, though if that were the extent of the STL's contribution to C ++, it 'd probably still make the list. but the STL did far more than that. it also introduced an architecture for designing containers and algorithms so that each cocould work seamlessly with the other by communicating only through iterators. and it demonstrated how arrays and pointers cocould be considered containers and iterators, thus making the line between the language proper and its library blurrier than one might CT. and it showed how the architecture was extensible by users, allowing for the introduction of new containers, new algorithms, and new iterators types, each of which work as well with other STL-conformant components as the STL components themselves do. and it explained why there was little reason to distinguish between everything in a container and A subrange of a container. and it did all this with an eye towards efficiency, eschewing classic object-oriented inheritance-based solutions and relying almost exclusively on templates. it introduced generic programming to the C ++ masses. the end result was a transformation in the way we thought about designing libraries and library frameworks, yet for people who were just looking for convenient, portable containers of T, it provided that, too. inValid STL (Addison-Wesley, 2001), I wrote, "In the nearly 30 years I 've been programming, I 've never seen anything like the STL. "It's now over 30 years, and I still haven't.
the libraries in boost , 1999-present. this selection is a bit of a cheat, because boost isn't a library, it's an umbrella organization for a collection of libraries designed and implemented by a variety of people with a variety of design goals and sensibilities. as a result, the boost libraries are somewhat scattershot in the functionality they provide as well as the way they go about providing it. still, boost and its libraries have been quite important to C ++, and their influence seems likely to increase in the future. of the 14 new kinds of functionality specified in tr1 (of which 13 are now in the draft for C ++ 0x), ten4 are based on Proposals derived from experience with boost libraries. no other organization can claim anywhere near that kind of impact on the expanded library functionality to be provided in the next version of C ++.
Boost's influence in this regard is hardly accidental. boost was founded with the goal of acting as a testbed and advocate for libraries that might eventually be added to Standard C ++. that most of tr1 is based on work at boost testifies to the success they 've had, and it seems likely that tr2 will also contain plenty of Boost-based functionality.
If you Google for "C ++ libraries" (without the quotes), you'll find that boost is the first hit. it's debatable whether this suggests that when people think of C ++ libraries, They shoshould think of boost, but it certainly demonstrates that boost has become closely associated with C ++ libraries.
Now, software tools have been critical to the success of C ++, but in the end, pretty much everything boils down to people. that's as true of C ++ as of any other human endeavor. in my next installment in this series of articles, I'll tell you who I think have been the most important people-the titans of the world of C ++. 5
Share your opinion
Discuss this article in the articles forum topic, the most important C ++ software... ever.
End Notes
1. by "parse," I mean more than simply building an abstract syntax tree. I also mean parameter Ming implicit template instantiation, resolving callto overloaded functions, etc. this means I'm conflating parsing and semantic analysis, but the entry point for your powerful C ++ tools is the results of semantic analysis, and in common parlance, people often refer to that entire process as "parsing."
2. Because the Community is too large and too diverse to allow meaningful claims about the behavior of "most programmers ."
3. "The UNIX language" was Java. I have no idea what the apple language was.
4. These 10 components are (in a mixture of my own and tr1's terminology) Reference wrappers, smart pointers, enhanced member pointer adapters (Mem_fn
), Enhanced Binders (Bind
), Generalized functors (Function
), Type traits, random numbers, tuples, fixed-size arrays, and regular expressions.
5. everyone agrees that Titans are powerful, but my wife, a student of classics, can't help but remind me that though the Titans were strong, they had more in the way of brawn than brain. that's why they came in second in their struggle with the gods of Olympus us (Zeus and his crew .) i'll leave it up to you to determine whether there's a parallel with C ++, and, if so, who or what plays the role of the Olympus.
Resources
Part I in this series, "the most important C ++ books...Ever":
Http://www.artima.com/cppsource/top_cpp_books.html
Part II, "the most important C ++ non-Book Publications...Ever":
Http://www.artima.com/cppsource/top_cpp_publications.html
Edison design's July 2006 document that mentions their cfront-compatibility mode:
Http://www.edg.com/cpp_ftrs.html
GCC by the GNU project:
Http://gcc.gnu.org/
Article reporting that Michael tiann sometimes held meetings at cygnus in a hot tub:
Http://www.findarticles.com/p/articles/mi_m3514/is_n6_v41/ai_16112996#continue
Gccxml:
Http://www.gccxml.org/
Visual c ++ by Microsoft:
Http://msdn.microsoft.com/visualc/
The libraries at Boost:
Http://boost.org/
Scott Meyers is the authorValid C ++, The third edition of which was published in 2005. It is available on Amazon.com:
Http://www.amazon.com/exec/obidos/ASIN/0321334876/
Scott Meyers is also the authorMore effective tive C ++, Which is available on Amazon.com:
Http://www.amazon.com/exec/obidos/ASIN/020163371X/
Scott Meyers is also the authorValid STL, Which is available on Amazon.com:
Http://www.amazon.com/exec/obidos/ASIN/0201749629/
Scott Meyers 'home page:
Http://www.aristeia.com/
About the author
Scott Meyers is one of the world's foremost authorities on C ++; he provides training and consulting services to clients worldwide. He wrote the best-sellingValid C ++Series (Valid C ++,More effective tive C ++, AndValid STL), Designed the innovativeValid C ++ CD, Is Consulting Editor for Addison Wesley'sValid Software Development Series, And serves on the advisory boardThe C ++ SourceHttp://www.artima.com/cppsource/. He has a Ph. D in computer science from Brown University. His web site is aristeia.com.