Skip to content

Alpha MicroPython Version

Pre-release
Pre-release

Choose a tag to compare

@moonbench moonbench released this 16 Jun 17:33
· 155 commits to master since this release

Aside from some small future tweaks, this is nearing a the first version of Catode32. It already supports so much more than I ever really anticipated and I'm so excited and happy about the state of the project so far.

Where things go from here

Going forward, there may be considerations towards moving the project to Rust, C, Zig, or C++.

MicroPython has been amazing for rapid development and prototyping but it has some drawbacks. Mainly the pain points come down to switching scenes and switching the pet's behaviors. Python loads modules into RAM when they're loaded in, and that happens every time the pet moves between behaviors, every it moves to a new location, every time a minigame is loaded, every time menus are loaded, etc... This leads to heap fragmentation that is probably the biggest pain point for this project right now.

The only solution in Python has been to reboot the device once an hour. That helps, but the device can still have memory allocation issues if the user is doing a lot with it within that hour. It's a poor user experience.

Moving to those other system languages gives the benefit of the scenes/behaviors staying on the file system with only their variables living on the heap. That is a huge advantage. It also lets us remove the micropython runtime from the device's RAM.

I know that moving to a more strict language will probably slow down development a bit, and will possibly make it less approachable for students and novices. That's why I want to create this v0.9.0 release version so that the micropython version up to now will always be an artifact that people can find and play with.

That said, I think that the project will be in a better place in the long run moving to a new language, but it's going to be a big rewrite and a lot of effort and learning.