DEV Community

Discussion on: What's the most math-intensive project you have ever done?

Collapse
 
thomasthespacefox profile image
Thomas Leathers • Edited

If i had to pick one, it would have to be SBTCVM A Balanced Ternary Virtual Machine, complete with compiler toolchain. If i had a dime for the number of curveballs the Balanced Ternary math threw me... most of the stranger aspects are down to what a balanced bsse number is: not including zero, they have an equal number of positive & negative digits...

Balanced Ternary, uses digits for +1, 0 and -1, and is the simplest possible Balanced Base Number.
This means a few things... Such as all numbers being signed, negative digits coming before zero +, +-, +0... and other strange aspects...

Overall, the main thing that makes its math intensive is the lack of native language support for the base number, and the main thing that makes the math complicated to understand is just how poorly explored & different Balanced Base Numbers are...

As for the tech stack, the current version, toolchain & All is written in python, and uses pygame for graphics & sound. A newer version that will eventually be coded in rust is in the works.