2 ms·
> Out of curiosity is there actually any chipset with the algorithmic ability to add more than 2 numbers Perhaps? But this would be like asking if there was a
by mrkeen 4y ago
> Out of curiosity is there actually any chipset with the algorithmic ability to add more than 2 numbers
Perhaps? But this would be like asking if there was a chipset that can work without branching because of someone mentioning "GOTO bad".
> I'd also think looping is far closer than recursion to how we tend to manually calculate things
It's not the looping I mind, it's the mutation.
- wizofaus 4y agoIf there were such an ability at the machine language level, it would be a strong argument against expressing the addition of a set of numbers using either a loop or recursion. I don't really see that either manner of expressing such an operation is always preferable, and would rather simply use a built-in language or feature (e.g. reduce) that the compiler/interpreter is free to translate into the most appropriate machine instructions for the given hardware.