【C++程序员的数量】

来源:互联网 发布:wifi访客网络限制带宽 编辑:程序博客网 时间:2024/04/28 12:21

 分析机构EvansData定期对开发人员展开调查,其调查结果与Stroustrup提出的C++正在扩张的说法相违背。EvansData的数据显示,以C++为工具的开发人员在整个开发界所占的比例由1998年春天的76%下降至2004年秋的46%。 
  Forrester最新的调查显示,C++、微软VisualBasic和Java是众多公司产品体系的首选语言。对100家公司的调查显示,C/C++、VisualBasic和Java在产品体系中的使用比例分别是59%、61%和66%。 
  传统上认为,C++相对于目前一些新潮的语言,如Java、C#,优势在于程序的运行性能。这种观念并不完全。如果一个人深信这一点,那么说明他并没有充分了解和理解C++和那个某某语言。同时,持有这种观念的人,通常也是受到了某种误导(罪魁祸首当然就是那些财大气粗的公司)。对于这些公司而言,他们隐藏了C++同某某语言间的核心差别,而把现在多数程序员不太关心的差别,也就是性能,加以强化。因为随着CPU性能的快速提升,性能问题已不为人们所关心。这叫“李代桃僵”。很多涉世不深的程序员,也就相信了他们。于是,大公司们的阴谋也就得逞了。 
  一般认为,使用Java或C#的开发成本比C++低。但是,如果你能够充分分析C++和这些语言的差别,会发现这句话的成立是有条件的。这个条件就是:软件规模和复杂度都比较小。如果不超过3万行有效代码(不包括生成器产生的代码),这句话基本上还能成立。否则,随着代码量和复杂度的增加,C++的优势将会越来越明显。造成这种差别的就是C++的软件工程性。在Java和C#大谈软件工程的时候,C++实际上已经悄悄地将软件工程性提升到一个前所未有的高度。这一点被多数人忽视,并且被大公司竭力掩盖。 
  语言在软件工程上的好坏,依赖于语言的抽象能力。从面向过程到面向对象,语言的抽象能力有了一个质的飞跃。但在实践中,人们发现面向对象无法解决所有软件工程中的问题。于是,精英们逐步引入、并拓展泛型编程,解决更高层次的软件工程问题。(实际上,面向对象和泛型编程的起源都可以追溯到1967年,但由于泛型编程更抽象,所以应用远远落后于面向对象)。

【C++语言的应用】

哪些程序是用C++写的:
  主流的3种操作系统Windows,Linux,Unix,内核都是用C语言和汇编写的,上层高级特性是用C++写的。
  《魔兽世界》等几乎所有的网络游戏,百度搜索引擎(Baidu.com),我们所用的大多数软件都是用C++写的(硬件也有很多用到C++的)。
  C++之父Bjarne Stroustrup列举的C++应用:
  Amazon.com:Software for large-scale e-commerce
  Apple: OS X is written in a mix of language, but a few important parts are C++. The two most interesting are 
  AT&T:The largest US telecommunications provider. 
  o provisioning systems 
  o systems for rapid network recovery after failure
  Autodesk: A large number of major number of application in the CAD domain
  Ericsson:o server platform.
  o TDMA-CDMA HLR
  o GSM-TDMA-CDMA mobility gateway
  Google: web search engine, etc。
  HP: Here is a tiny fraction of HP's C++ apps: 
  o C, C++, Fortran90 compilers, and linker for the new HP IA64 platform (these add to more than 1 million lines of C++ code).
  IBM: o OS/400. 
  o K42: a high performance, open source, general-purpose operating system kernel for cache-coherent multiprocessors.
  Intel:o Vtune performace analysis software 
  o compilers and optimizers 
  o lots of chip design and manufacturing software
  JPL (Jet Propulsion Lab, NASA): Mars rover autonomous driving system (incl. scene analysis and route planning). C++ on Mars! Also lots of supporting software "on the ground" (i.e. Earth).
  Microsoft:o Windows XP 
  o Windows NT (NT4 and 2000) 
  o Windows 9x (95, 98, Me) 
  o Microsoft Office (Word, Excel, Access, PowerPoint, Outlook) 
  o Internet Explorer (including Outlook Express) 
  o Visual Studio 
  o SQL
  Mozilla: Firefox browser and Thunderbird mail client (open source)
  MySQL: MySQL Server (about 250,000 lines of C++) and MySQL Cluster. Arguably the world's most popular open source database
  Nokia: o Mobile Communications radio-station/internet bridges: FlexiGGSN (Gateway GPRS Support Node) and FlexiSGSN (Server GPRS Support Node). 
  o MSC/HLR 
  Sun: o The HotSpot Java Virtual Machine is written in C++
  Symbian OS: rationale: "[...] using C++ for all system code, from the kernel upwards." This is one of the most widespread OS's for cellular phones
  KDE from linux is written in C++.
  telephone systems: I think it would be almost easier to list the systems which aren't written in C++
  更详细的应用列表1:http://www.research.att.com/~bs/applications.html 
  更详细的工业列表2:http://www.lextrait.com/vincent/implementations.html

原创粉丝点击