here's the current version of binary arithmetic on natural numbers in #modal:
https://paste.sr.ht/~d6/92210f8df9c7fe2045fded40798ecd94fa5c632d
supports:
- comparison
- addition/subtraction
- summation
- multiplication/division/remainder
- exponentiation
- gcd/lcm
still some rough edges but it works well for fairly large numbers. on my machine it takes about 33s to compute 13^13; there is still a lot of room for optimization.
⛧ esoterik ⛧
in reply to ⛧ esoterik ⛧ • • •Content warning: esoteric computing platforms
language by @wryl
website describing modal by @neauoire: https://wiki.xxiivv.com/site/modal
implementation i'm using: https://git.sr.ht/~rabbits/modal
XXIIVV — modal
wiki.xxiivv.comDevine Lu Linvega
in reply to ⛧ esoterik ⛧ • • •Content warning: esoteric computing platforms
"The concept of numbers."