[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-10-17 Thread Greg Ewing
On 17/10/22 10:13 pm, Denis Kotov wrote: For example, PyObject is much better to implement using C++ class, I used to think this. Python has OO features, C++ has OO features, should be a good match, right? Well, no. Python's OO is very flexible and dynamic, C++'s is very rigid and static.

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-10-17 Thread Matthias Görgens
CPython is written (mostly) in C. There's Jython written in Java. There also IronPython written on C#. Feel free to write your own Python implementation in C++. Could be fun! ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-10-17 Thread Paul Moore
On Mon, 17 Oct 2022 at 11:20, Denis Kotov wrote: > Stephen J. Turnbull wrote: > > Denis Kotov writes: > > > See: > > > https://youtube.com/clip/UgkxyNe_dsZKinT_RT3UGb-BaP0SnvKteo2o > > > No thanks, if it's not text I'm not going to look at it. I don't have > > time to watch videos with no

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-10-17 Thread Denis Kotov
Stephen J. Turnbull wrote: > Denis Kotov writes: > > See: > > https://youtube.com/clip/UgkxyNe_dsZKinT_RT3UGb-BaP0SnvKteo2o > > No thanks, if it's not text I'm not going to look at it. I don't have > time to watch videos with no explanation, and best guess is 90% of it > I already know, just as I

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-10-17 Thread Stephen J. Turnbull
Denis Kotov writes: > For example, PyObject is much better to implement using C++ class, > it will bring RAII that will reduce number of issues not free > memory in CPython Well, yes, that's the C++ Kool-Aid we're all supposed to drink. But it has its costs, too. How does it affect

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-10-17 Thread Denis Kotov
Stephen J. Turnbull wrote: > Denis Kotov writes: > > Usually people say that C++ not fit in CPython not knowing C++, > > That's not the issue. There are plenty of people who know C++ who say > the benefits of C++ are not worth the bugs, the effort, and the plain > old churn that a rewrite in C++