3 ms·
This has been touched on in other comments, but I think it bears highlighting. The ability of python to integrate with C/C++ code went a long way to making it
by andrewprock 3y ago
This has been touched on in other comments, but I think it bears highlighting.
The ability of python to integrate with C/C++ code went a long way to making it a long term viable platform. If you needed scripting you could code in regular python. If you needed advanced control of hardware in your scripts, you could write a python extension in C/C++ to gain access to that hardware. If you needed high performance, or high parallelism, you could likewise create an extension to solve those problems.
In this way Python was the best of both worlds. Elegant scripting which could be combined with blazing performance and low level hardware interfaces. This aspect of the language allowed it to have a wide footprint (as opposed to just the browser) and to leverage legacy libraries effectively - e.g. BLAS.
I personally did crazy stuff like: "embed a python interpreter in a C program, to use python scripting within the program" back in like 1999.