3 ms·
> just delegate all heavy lifting to optimized C/c++ and the likes The more o used Python, and the more Python I saw written, the more I am convinced this is n
by FridgeSeal 4y ago
> just delegate all heavy lifting to optimized C/c++ and the likes
The more o used Python, and the more Python I saw written, the more I am convinced this is not a good or reasonable argument. A good chunk of the Python devs I’ve interacted with are mystified by the concept of virtual environments, regularly abuse global variables, struggle to read the docs, and structure their code poorly.
Telling these people “oh just write this section in C” will go nowhere. It’s asking them to figure out: installation, compilation, packaging, FFI, tool chains, and foot-guns of language(s) that are arguably more dangerous and whose operation varies from “not super straightforward” to “arcane” based on your dev and deployment environment and application needs.
- shpx 4y agoThe only "FFI" I've seen people actually use is writing a command line tool with C++ and calling it with the subprocess library.
- gpderetta 4y agoVery much yes, if you are fluent in both C++ and python, it is just easier to rewrite in the former than deal with FFI. Unfortunately sometimes you have to provide a library for consumption to programmers that only speak python so you don't have many options.
- pjmlp 4y agoPlus something like C++20 and hot code reload (VC++ and Live++), make it quite easy to do so.