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 条
  • [41] C++ Exception
    透明
    程序员, 2002, (09) : 54 - 54
  • [42] C++ Standards
    Reeves, JW
    DR DOBBS JOURNAL, 1996, 21 (03): : 10 - 10
  • [43] Examining μC++
    Buhr, PA
    Bilson, RC
    DR DOBBS JOURNAL, 2006, 31 (02): : 36 - 40
  • [44] VISUAL C++
    COLASANTI, R
    BINARY-COMPUTING IN MICROBIOLOGY, 1994, 6 (05): : 147 - 148
  • [45] PERSISTENCE IN C++
    LAURENT, P
    SILVERIO, N
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1993, 6 (06): : 41 - 46
  • [46] C++ TEMPLATES
    BECKER, P
    DR DOBBS JOURNAL, 1993, 18 (08): : 44 - &
  • [47] A C++ TOOLKIT
    UDELL, J
    BYTE, 1988, 13 (12): : 223 - &
  • [48] C++ COMPILER
    GROTOPHORST, CW
    LIBRARY SOFTWARE REVIEW, 1991, 10 (05): : 375 - 377
  • [49] C++ in .NET
    Jaeschke, Rex
    C/C++ Users Journal, 2002, 20 (SUPPL.):
  • [50] C++ locales
    Myers, N
    DR DOBBS JOURNAL, 1998, 23 (08): : 42 - +