2 ms·
You can compile any Python program to C using Cython, hence Python is as fast as C.
by icebraining 10y ago
You can compile any Python program to C using Cython, hence Python is as fast as C.
- Kapura 10y agoThat's like saying "you can compile C to x86 ASM, so C is as fast as assembly" Abstraction has costs. They can be reduced, but they don't evaporate.
- icebraining 10y agoMy point is that "fast as C" is meaningless. You can write quite abstract/unoptimized C. And you can write Python code with a few Cython-specific annotations that rival "regular" C code.