Hi, I used C++ in the past to write a small game. My experience was that the compilation was quite slow and many compiler errors were hard to understand.
I love the fact the CPython is written in C because its build time is under one minute for a fresh build, and way faster for an incremental build (modifying a single C file). I'm part of the "trial-and-error" church. I modify random parts of the C code, build, test and repeat until it works as I want ;-) A *fresh* build (after make clean) of CPython on my laptop (8 threads, 4 CPU cores) takes 13 seconds using make -j10 and gcc -O0. A fresh build in release mode (make -j10 and gcc -O3) takes 44 seconds on the same laptop. CPython is made of around 500K lines of C code. Victor On Fri, Apr 16, 2021 at 7:19 PM <redrad...@gmail.com> wrote: > > The benefits: > > 1. You will link with high quality libstdc++ with lots of reusable containers > without writing your own "buggy" one. > 2. C++ is much much more maintainable than pure C. It drastically increase > number of contributors that what like writing high quality and maintainable > code without reinventing the wheel. > > My personal stop of contributing in CPython is that it is written in pure C !! > I wrote code in both: pure C and C++, but I like writing code in C++, because > it simplifies things without losing perfomance > _______________________________________________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/YNVO3NM7J77AHVOPGCOTWZELTTHHA7YB/ > Code of Conduct: http://python.org/psf/codeofconduct/ -- Night gathers, and now my watch begins. It shall not end until my death. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/PAIR6UTGNHYKGCTU3GRZSUVECJ2L2W3X/ Code of Conduct: http://python.org/psf/codeofconduct/