Really simple memory management: Fat Pointers

homeblogmastodonthingiverse



I've come up with a really simple memory management scheme. My initial application is PIC programming, but I expect to also use it for storing databases on disk.

It's a variant on reference counting (and, like reference counting, doesn't handle cycles). It works like this:

Some nice features:




[æ]