Re:Factor: An impressive stack-based language environment
by rurban on Saturday August 11, 2018 @01:13PM
(#17740540)
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.
Re:Factor: An impressive stack-based language environment
by bgongfu on Saturday August 11, 2018 @01:20PM
(#17740586)
Primitive types such as booleans, int, floats, times etc. are passed by value.
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...
[0] https://github.com/basic-gongfu/cixl