News for hackers. Stuff that matters.
Re:Rust: Dropping heavy things in another thread can make yo... by smabie on Saturday May 30, 2020 @09:48PM (#23366522)
You mean like LSP? Why would a compiler and a language server be integrated in the first place? Clearly a LSP server wouldn't use a no-freeing strategy, but there's no reason why it would cause issue with a compiler. A compiler must terminate, assuming parsing isn't turing complete (like Perl) and that the source code is finite. This is why it's okay for it to leak memory.
Re:Rust: Dropping heavy things in another thread can make yo... by steveklabnik on Sunday May 31, 2020 @09:07AM (#23369331)
> Why would a compiler and a language server be integrated in the first place?

Because a language server needs to do a lot of the same work as a compiler.

This is an eventual hope for rustc. For now, the latest language server and it share a bunch of libraries, but language servers are effectively compiler frontends.

Re:Rust: Dropping heavy things in another thread can make yo... by pdimitar on Sunday May 31, 2020 @08:23AM (#23369099)
Yep, I guess I conflated compilers and LSP. I imagined compilers would have daemon modes. Seems like I was wrong.