3 ms·
C++ and rust don't pre compute object lifetimes, they make the developer manage them. The only place I know of object lifetimes being statically analysed and co
by mike_hearn 11y ago
C++ and rust don't pre compute object lifetimes, they make the developer manage them. The only place I know of object lifetimes being statically analysed and computed is in compilers that do escape analysis (JVM, go, maybe others, though go ea is very limited)
- pcwalton 11y agoBy "precomputing object lifetimes" I just mean that the object lifetimes are determined at compile time, without runtime scans. Human assistance is still required, of course.
- titzer 11y agoDo some reference chasing on region inference. There is a branch of research that was spawned by Cyclone, and papers are still being published today about inference of regions. E.g. see "Safe and Efficient hybrid memory management for Java." http://dl.acm.org/citation.cfm?id=2754185&CFID=694525936&CFTOKEN=54733131 http://dl.acm.org/citation.cfm?id=2754185&CFID=694525936&CFT...