From: Michael Torrie on 2 Aug 2010 00:23 On 08/01/2010 07:09 PM, John Bokma wrote: >> One thing that comes to mind is that it's much easier to distribute C >> libraries than C++ libraries. > > In the beginning of C++ there were programs that just converted C++ to C > (frontends). At least that is how the C++ compiler Acorn sold worked. > So I don't think your argument was much true back then. No, he is still right. Each C++ implementation did name mangling differently leading to "C" libraries that had incompatible names and signatures. Also each frontend could have generated incompatible vtables and other C++ structures. So C code generated by one C++ frontend could not easily call C code generated by another C++ frontend. So the same arguments that are made about C++ now were just as valid back then when C++ was merely a fancy preprocessor.
From: Tim Wintle on 2 Aug 2010 05:00 On Sun, 2010-08-01 at 20:01 -0400, Terry Reedy wrote: > Not every C programmer knows or wants to learn C++. I think Terry is the only person that's mentioned this - but I'd like to give extra support to it - I for one prefer C to C++ (as someone that writes quite a lot of C extension modules). And as Stephen mentioned - just because C is not an OO language, doesn't mean you can't write OO code in it - you just have to pass an instance of the class method is defined on in as the first parameter (like you do in Python). Tim
From: Grant Edwards on 2 Aug 2010 10:42 On 2010-08-02, Christian Heimes <lists(a)cheimes.de> wrote: > In your opinion what would Python gain from a C++ implementation? Greater buzzword-compliance -- an important characteristic highly prized by Human-Resources poeple and mid-level managers here in the US. ;) -- Grant
From: David Cournapeau on 2 Aug 2010 12:11 On Mon, Aug 2, 2010 at 10:20 AM, Christian Heimes <lists(a)cheimes.de> wrote: > > In your opinion what would Python gain from a C++ implementation? The elusive advantages of "OO" in C++ are relatively minor compared to RIIA which would make reference counting much easier to deal with. But even that is not a strong enough argument for C++. The little C++ we have in scipy had causes a lot of headache - C++ portability is still an issue once you are outside the 4-5 main OS/Compilers combinations, David
From: Thomas Jollans on 2 Aug 2010 12:15
On 08/02/2010 04:42 PM, Grant Edwards wrote: > On 2010-08-02, Christian Heimes <lists(a)cheimes.de> wrote: > >> In your opinion what would Python gain from a C++ implementation? > > Greater buzzword-compliance -- an important characteristic highly > prized by Human-Resources poeple and mid-level managers here in the > US. > > ;) > C++Python would never beat IronPython on that front |