The language itself is not the same as its implementation; rather, it is defined by its specification. Otherwise, C wouldn't "exist" without a compiler either!
But I can change my compiler with C. The need of a compiler to compile the language does not couple them. In Python, the situation is different. For different reasons. The abstract commonality in those reasons: "To limit." For safety and speed and reasons you don't need to worry about. They wrote the C and the NASM in a library for you to manage with pip3.
They couldn't write it in Python because of said limits.
Actually, there are implementations of Python that aren't CPython too, the PSF doesn't limit you to only use their thing. So, yes, you can change your interpreter in Python as well, they might just lag behind in some aspects (same actually goes for C compilers too, just C is way slower in its evolution so you don't see it as much, and C also lacks a reference implementation).
3
u/erikkonstas Apr 24 '24
The language itself is not the same as its implementation; rather, it is defined by its specification. Otherwise, C wouldn't "exist" without a compiler either!