3 ms·
Julia solves this pretty well by having a gc_preserve macro that tells the compiler that an object has hidden references within the scope.
by adgjlsfhk1 3y ago
Julia solves this pretty well by having a gc_preserve macro that tells the compiler that an object has hidden references within the scope.
- ng55QPSK 3y agowhich means: you tell the compiler
- adgjlsfhk1 3y agobut as long as you are telling the compiler through a first class API, it's not brittle because there compiler knows the meaning and intent of the statement, and therefore can avoid optimizing it in invalid ways.