4 ms·
> Essentially, the more abstract and generic things are (like Python) And in C++, it provides the same high-level expressiveness as in Python. > the more you
by pfultz2 11y ago
> Essentially, the more abstract and generic things are (like Python)
And in C++, it provides the same high-level expressiveness as in Python.
> the more you can use them to easily do complex things arcoss different domains quickly.
But the advantage of C++ is that those abstractions have almost no overhead.
> So, for example, Python may have a better algorithm
Actually, C++ has a complexity guarantee for all of its algorithms.
> but C++ may use the hardware more efficiently.
Well, the brilliance of what Stepanov did was to build general purpose algorithms with out taking away random access capabilities which is beneficial for hardware efficiency(even more so now with modern cpus).