STL人气? [英] STL popularity?

查看:53
本文介绍了STL人气?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有答案 - 只是猜测一下 - 在C ++中主要工作的那些程序员中使用STL的比例是多少?

Norm Matloff

解决方案

Norm Matloff写道:

任何人都有答案 - 只是猜测一下 - 在C ++中主要工作的程序员中有多少百分比使用STL?




100%那些知道自己在做什么的人。编写

C ++代码很难,而不是使用标准库的某些部分(如果这就是STL所指的那个
)。


回到标准采用之前的时间,很多

编译器都有非常糟糕的STL概念实现。我们

使用了roll-our-own的组合,然后移动到公共STL

impelementations。但是,只要微软,Sun和GCC的人们使用合理的兼容版本获得了b $ b,我们就会恢复原生库

的实现。所有为我工作的人都尽可能使用标准结构

,我们避免使用裸体和char *。




" Ron Natalie" < ro*@spamcop.net>在消息中写道

news:42 ********************** @ news.newshosting.com ...

Norm Matloff写道:

任何人都有答案 - 只是猜测一下 - 关于在C ++中主要工作的程序员使用STL的比例是多少?



100%知道自己在做什么的人。编写C ++代码很难,而不是使用标准库的某些部分(如果那是STL的意思)。

回到周围在采用标准之前的一段时间,许多编译器都非常糟糕地实现了STL概念。我们使用了我们自己的组合,然后转移到公共STL
impelement。但是,只要微软,Sun和GCC人员使用合理的兼容版本,我们就会恢复原生库的实现。所有为我工作的人都尽可能使用标准结构
,我们避免使用裸体和char *。



>任何人都有一个答案 - 只是猜测一下 - 至于

在C ++中主要工作的程序员使用STL的百分比是多少?




我认为它非常接近100%。

99.8%即将结束。


IMO,STL是最大的除了C ++。斯蒂芬诺夫不会有b / b能够实现没有灵活性的他的愿景提供了C ++模板支持的
。它本来就是死产。语言_had_

提供设施。


成功的一个衡量标准是现在有Java Generics

和C#Generics - 其他语言想要添加相同的东西。


成功的另一个衡量标准是新手C ++程序员一直都在使用这些。他们将int',double',他们自己的

类填充到这些容器中并使用提供的各种算法。


如果Move Constructors得到对于下一个C ++标准,然后

向量等对于某些类型会变得更快。


Stephen Howe


Anyone have an answer--just a guess would do--as to what percentage of
programmers who do their primary work in C++ make use of the STL?

Norm Matloff

解决方案

Norm Matloff wrote:

Anyone have an answer--just a guess would do--as to what percentage of
programmers who do their primary work in C++ make use of the STL?



100% of the ones who know what they are doing do. It''s hard to write
C++ code and not use some part of the standard library (if that''s what
you meant by STL).

Back around the time before the standard was adopted a lot of the
compilers had really sucky implementations of the STL concepts. We
used a combination of roll-our-own and then moved to public STL
impelementations. But as soon as Microsoft, Sun, and the GCC folks got
on with reasonably compliant versions we reverted to the native library
implementations. All those who work for me use the standard constructs
when ever possible, we eschew use of naked new and char*''s.



"Ron Natalie" <ro*@spamcop.net> wrote in message
news:42**********************@news.newshosting.com ...

Norm Matloff wrote:

Anyone have an answer--just a guess would do--as to what percentage of
programmers who do their primary work in C++ make use of the STL?



100% of the ones who know what they are doing do. It''s hard to write
C++ code and not use some part of the standard library (if that''s what
you meant by STL).

Back around the time before the standard was adopted a lot of the
compilers had really sucky implementations of the STL concepts. We used
a combination of roll-our-own and then moved to public STL
impelementations. But as soon as Microsoft, Sun, and the GCC folks got on
with reasonably compliant versions we reverted to the native library
implementations. All those who work for me use the standard constructs
when ever possible, we eschew use of naked new and char*''s.



> Anyone have an answer--just a guess would do--as to what percentage of

programmers who do their primary work in C++ make use of the STL?



I should think it is pretty close to 100%.
99.8% would be close.

IMO, the STL was the greatest addition to C++. And Stepanov would not have
been able to "realise" his vision without the flexibility provided in terms
of C++''s template support. It would have been stillborn. The language _had_
to provide the facilities.

And one measure of the success is the fact that there is now "Java Generics"
and "C# Generics" - other languages want to add something of the same.

The other measure of success is the fact that novice C++ programmers are
using these all the time. They are stuffing int''s, double''s, their own
classes into these containers and using the various algorithms provided.

If Move Constructors get the go ahead for the next C++ standard, then
vectors, etc will become even faster for some types.

Stephen Howe


这篇关于STL人气?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆