4 ms·
Borrow checkers feel like a bottom up approach to STM to me. There’s a lot of static analysis in the JVM that reduces locking, speeds up garbage collection, an
by hinkley 6y ago
Borrow checkers feel like a bottom up approach to STM to me.
There’s a lot of static analysis in the JVM that reduces locking, speeds up garbage collection, and removes the need to declare the type of a generic variable.
I expect over time we will see inference in borrow checkers reduce the brain cycles you need to spend thinking about these things, and borrow semantics will be “good enough” for a long time.
Or who knows, maybe STM systems will be able to infer borrow semantics and benefit from aggressive lock elision.