Vale retweeted
Just posted a new article! verdagon.dev/blog/group-borr…
"Group Borrowing: Zero-Cost Memory Safety with Fewer Restrictions"
TL;DR: Nick Smith's epic approach to better borrow checking. Take a look!
Vale retweeted
Regions are also a way to make colorless fearless structured concurrency (a mouthful I know), without going all in on a Rust-like borrow checker. verdagon.dev/blog/seamless-f…
Now that we have a working regions prototype, I can finally start working on concurrency!
Vale retweeted
Replying to @vale_pl
This has been a long time coming! Regions are Vale's "killer feature", they let us write in a normal unrestricted way then incrementally optimize. This lets the user choose whether they their is flexible like Java, fast like Rust, or any point in between.
Vale retweeted
Blend #2: Single-threaded RC (Nim), plus region borrowing (Vale) [1], plus copy types (C#, Swift).
Enforced by static analysis checker, of course.
(I think we might also be able to do contiguous ref-counted arrays, but still looking into that.)
[1] verdagon.dev/blog/zero-cost-…
Vale retweeted
Replying to @vale_pl
Linear types (and the higher RAII they enable) are pretty huge. Any time you say "Ah, I forgot to do X", that's a bug linear types help prevent. I wrote about this in verdagon.dev/blog/higher-rai… and have been discovering more and more uses for them ever since!
Vale retweeted
Replying to @vale_pl
Fun fact: All these techniques we're designing for Vale could easily be applied to reference counted languages too.
This (plus regions) is why I think RC will make a huge comeback in the next decade, even over tracing GC.

