Re: How about using modern C++ in development of CPython ?
Antoine Pitrou <[email protected]> Wed, 19 Oct 2022 18:03:23 +0200
| Newsgroups | gmane.comp.python.devel |
|---|---|
| Message-ID | <20221019180323.12d9f9f9@fsol> |
Haven't we migrated to Discourse? This discussion will probably not have any effects on this mailing-list. (yes, not everyone likes Discourse, and I'm skeptical as well, but the decision has been made by now) On Mon, 17 Oct 2022 09:13:34 -0000 "Denis Kotov" <[email protected]> wrote: > 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++ (even if incremental) would require. > > I am not sure about this one ... > 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 > See: > https://youtube.com/clip/UgkxyNe_dsZKinT_RT3UGb-BaP0SnvKteo2o > > Without RAII - introduced the most dangerous errors !!