Valen's Memory Safety: A New Kind of Borrow Checking

19 points by Verdagon


polywolf

Last time I read https://verdagon.dev/blog/group-borrowing I was convinced that this approach works for simple structs + arrays where all fields are public, but would quickly become unwieldy for anything requiring "path abstraction" like a binary tree or linked list. Wildcard paths solve this complaint, neat! (I did not read the golden spike articles)

Still a little nervous about "value invalidation" TOCTTOU for how this system deals with concurrency, seems shared-xor-mutable has a leg up there, but this is looking pretty nice for the single-threaded case.