The BVM should handle all numbers through a common abstraction: Bonobo_Number. This will mean that there won't need to be a million number-handling instructions; rather, the VM will perform operations differently depending on a number's type.
However, in the Bonobo language, this abstraction does not exist in the same way. The Bonobo language defines: Int and Float.
I believe it's best that users don't have to worry about the precision of numbers. In actual Bonobo code, the precision will not matter.
The only complication will be how to handle FFI. That is a problem to worry about in the future, not now.
The BVM should handle all numbers through a common abstraction:
Bonobo_Number
. This will mean that there won't need to be a million number-handling instructions; rather, the VM will perform operations differently depending on a number'stype
.However, in the Bonobo language, this abstraction does not exist in the same way. The Bonobo language defines:
Int
andFloat
.I believe it's best that users don't have to worry about the precision of numbers. In actual Bonobo code, the precision will not matter.
The only complication will be how to handle FFI. That is a problem to worry about in the future, not now.