4 ms·
We know that addition is a relatively trivial operation, say, on 64 bit integers. A more interesting example IMO would be something like "how many lines of C i
by pphysch 3y ago
We know that addition is a relatively trivial operation, say, on 64 bit integers.
A more interesting example IMO would be something like "how many lines of C it takes to execute person.name='Bob' in Python, where person.name is undefined".
That would better demonstrate why we use Python in the first place (hint: it's not "to add integers"), while also indicating why it is slow.