3 ms·
Integer arithmetic in hardware (and many languages) is a ring. If I understand correctly, groups are the basis of some error correction codes. Monads are used
by AnimalMuppet 10y ago
Integer arithmetic in hardware (and many languages) is a ring.
If I understand correctly, groups are the basis of some error correction codes.
Monads are used for many things in functional programming.
- umanwizard 10y agoDo you mean to say a finite ring? "Pure" integer arithmetic in math (without any notion of overflow or wrapping) is a ring also, so I'm not sure what distinction you're making by saying "in hardware".
- AnimalMuppet 10y agoYes, a finite ring. There are languages that overflow from hardware integers into some kind of BigNum automatically. Those languages are not finite rings. (Well, OK, they're finite in the sense that eventually the memory space will be exhausted...)
- umanwizard 10y agoyep, but they're still rings :)