Optimizing C++ vector expressions

被引:1
|
作者
Blinn, JF [1 ]
机构
[1] Microsoft Res, Redmond, WA 98052 USA
关键词
D O I
10.1109/38.851757
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
All this was pretty complicated, so a fair question to ask is, “Is this worth it?” The answer is: “Worth it to whom?” Every programming language has a gimmick. The gimmick of C++ is to put as much intelligence in the class libraries as possible, to make things as easy as possible for the users of those classes. In spite of the fact that there's a lot of complexity in the implementation of vector arithmetic, any user of the Vector class doesn’t see that complexity. They can create Vectors and perform arithmetic on them with ease and with confidence that the best possible code will be generated. That's the classical trade-off in C++: The needs of the many outweigh the needs of the few. © 2000, IEEE. All rights reserved.
引用
下载
收藏
页码:97 / 103
页数:7
相关论文
共 50 条
  • [21] C++
    Koenig, Andrew
    JOOP - Journal of Object-Oriented Programming, 1998, 11 (02):
  • [22] Standard C/C++: Testing C++ library conformance
    Plauger, P.J.
    C/C++ Users Journal, 2000, 18 (04):
  • [23] C++
    Koenig, Andrew
    1998, (11):
  • [24] C++
    JOOP - Journal of Object-Oriented Programming, 1998, 10 (09):
  • [25] C++
    JOOP J Object Oriented Program, 3 (71):
  • [26] C++ for ...
    Stevens, A
    DR DOBBS JOURNAL, 1999, 24 (08): : 99 - 101
  • [27] C++
    JOOP J Object Oriented Program, 6 (85):
  • [28] HP C++/SOFTBENCH - A DEVELOPMENT ENVIRONMENT FOR C++
    ARMISTEAD, M
    BURNHAM, J
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1990, 3 (04): : 82 - &
  • [29] Stepping up to C++: Understanding C++ declarations
    Saks, Dan
    C/C++ Users Journal, 1995, 13 (12):
  • [30] ON OPTIMIZING THE EVALUATION OF A SET OF EXPRESSIONS
    GRANT, J
    MINKER, J
    INTERNATIONAL JOURNAL OF COMPUTER & INFORMATION SCIENCES, 1982, 11 (03): : 179 - 191