Vale (@vale_pl) profile picture

The Vale Programming Language! Learn more at https://teapawt.net/t.co/M36j2hb8SP

Joined July 2020
Photo by Vale (@vale_pl)
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!
3
2
8
1,080
Replying to @verdagon @vale_pl
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!
1
358
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.
1
1
1
318
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-…
1
1
1
259
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!
1
2
213
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.
1
1
3
149