Interesting. But does cixl really do refcounting on stack values? It should only be done on aggregates or objects reaching out into the heap, not on int or float primitives on the stack.
Reference counting is only used for heap allocated values and types that themselves reference values, like pairs and tables.
https://github.com/basic-gongfu/cixl/blob/master/src/cixl/bo...