3 ms·
I think that the real blocker is raw pointers. You need to be able to read+write data to specific memory addresses for most hardware, and I don't think Python's
by khedoros1 10y ago
I think that the real blocker is raw pointers. You need to be able to read+write data to specific memory addresses for most hardware, and I don't think Python's capable of that.
- dbaupp 10y agoPython is capable, via the ctypes module. The problems include: - performance: implementations being interpreted, and relying on dynamic typing mean that Python is almost always slower than compiled languages. - the run-time: Python assumes that things like allocations are always OK, and generally requires more operating system support than is available in low level environments.
- khedoros1 10y agoThanks for the reminder. I had it at the back of my mind that CPython is just about built as an abstraction on top of C, and so should be capable of anything C is, depending on where you wanted to draw the line between the languages.