News for hackers. Stuff that matters.
Re:Higher RAII and the seven arcane uses of linear types by lmm on Tuesday May 14, 2024 @07:09PM (#40361183)
Plenty of new research languages are coming out with linear types.

Building a mainstream language is extremely expensive these days, to the point that probably only a handful of companies can attempt it. I work in Scala which teeters on the edge of mainstream, and it's not the language itself that needs major backing, it's all the other stuff - IDEs, library repositories, build tools, profilers. I would love to leap into e.g. Idris, which does have linear types, but who's going to write an IDE for it? Even Rust struggles with this.

And it's very hard to retrofit linear types onto an existing language, if you can even get a quorum in favour of doing so. Haskell is trying, and I wish them well, but it's not going to be easy, and again they're barely mainstream.

Re:Higher RAII and the seven arcane uses of linear types by nequo on Tuesday May 14, 2024 @07:22PM (#40361285)
> Even Rust struggles with this.

The Rust language server seems really good. What have you been missing there?

Re:Higher RAII and the seven arcane uses of linear types by thoasdfwdas on Tuesday May 14, 2024 @07:30PM (#40361347)
It was years before we had rust-analyzer.
Re:Higher RAII and the seven arcane uses of linear types by shepmaster on Tuesday May 14, 2024 @08:10PM (#40361596)
A year and a half doesn't seem like bad turnaround time to me. shrug

    On June 27, 2016, Microsoft announced a collaboration with Red Hat and Codenvy to standardize [Language Server Protocol]'s specification
— https://en.wikipedia.org/wiki/Language_Server_Protocol

vs

    initial
    Date:   2017-12-21 22:25:45 +0300
— https://github.com/rust-lang/rust-analyzer/commit/a63222cd24...
Re:Higher RAII and the seven arcane uses of linear types by thoasdfwdas on Tuesday May 14, 2024 @08:36PM (#40361764)
I've been using rust since 2010