Comment

Comment by verdagon

There's some exciting work already going on in this space, in fact!

* Andrew Kelley is looking into combining escape analysis with allocators to assist in Zig's memory safety. [0] It could be quite a step forward!

* D is adding a borrow checker! [1]

* Cone is adding a borrow checker on top of user-definable allocators. [2]

* We're currently prototyping a region-based borrow checker [3] for Vale, which should get us most of the benefit of Rust's borrow checker with only a fraction of the complexity. It's opt-in, not upwardly infectious, and can stay near the "computational leaves" of one's program.

[0] https://news.ycombinator.com/item?id=31853964

[1] https://dlang.org/changelog/2.092.0.html#ob

[2] https://cone.jondgoodwin.com/memory.html

[3] https://verdagon.dev/blog/zero-cost-refs-regions

parent verdagon 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton