Micropython is faster than MMBasic :-(


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11836
Posted: 09:57pm 27 Jul 2026      

  Quote  There are many industrial users of MicroPython who are just fine with single precision. If you want to do fancy stuff, use a desktop. Let the code run at its proper speed.

There is very little speed penalty using double precision because all interpreters spend more time interpreting than calculating. Single precision isn't adequate for many many tasks - errors build up too quickly. Even BBCBasic as implemented on a 6502 used 40-bit floating point rather than 32.
Feel free though to build a version with single precision - the source is all on github. I bet you will see very little increase in speed for normal usage