3 ms·
> python is so fun is because it is slow C++ pushes you to conflate optimization with the higher level meaning of what you're trying to implement. In Python yo
by shalabhc 9y ago
> python is so fun is because it is slow
C++ pushes you to conflate optimization with the higher level meaning of what you're trying to implement. In Python you can write the higher level meaning in a more 'pure' way, which is fun of course. The really interesting question is if you can program at the higher level while still running fast, perhaps by specifying optimizations separately?
(BTW, for Python code that can be as fast at C++ see https://kratzert.github.io/2017/09/12/introduction-to-the-numba-library.html https://kratzert.github.io/2017/09/12/introduction-to-the-nu... - it doesn't sacrifice clarity, but is limited to a subset, for now).