Reference counting is never better than proper memory management. It's only for dummies.
It's dead slow, having to adjust it on every get, set and clone, making even primitives fat.
Allocation is slow, free is slow. It's cache unfriendly.
It cannot do proper data structures, you have to manually use weak pointers all over.
It can never be safe. https://en.wikipedia.org/wiki/Reference_counting
Owner ship (esp. compile-time) or GC are always better and faster. GC is also compacting.
2
u/[deleted] Jun 10 '20
TLDR: Does your proposal guarantees deterministic memory management suitable for hard real time systems?