[Python-Dev] C++ for CPython 3? (Re: str.count is slow)

Stephen J. Turnbull stephen at xemacs.org
Fri Mar 3 09:51:49 CET 2006


>>>>> "martin" == martin  <martin at v.loewis.de> writes:

    martin> I don't understand. How can you use a C++ compiler, but
    martin> not the C++ language?

An abbreviation for "those features that aren't in C".

    martin> As the recent const dilemma shows, C99 and C++98 have,
    martin> unfortunately, different interpretations of "const" (with
    martin> the C interpretation being more strict).

Yeah, that's really unfortunate.  I suppose we'll probably run into it
fairly quickly.

Nevertheless, the restriction to programs that are both legal C89 and
legal C++ of similar vintage has paid off for us, in the sense that we
went from GCC 2.95 to GCC 3.4 without having significant problems
where the compiler suddenly decided our code was unacceptable.
(Similar experience with other vendors' compilers.)  Recently we've
seen a significant rise in warnings that need to be fixed, and
occasional errors, as GCC 4.x has become more common.


-- 
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.


More information about the Python-Dev mailing list