Re:Rust: Dropping heavy things in another thread can make yo...
by folmar on Saturday May 30, 2020 @06:21PM
(#23365315)
Most compiler are not designed to run in daemon mode, specifically it's non-issue since their startup is normally fast. And the compiler and runtime are a different thing.
[ Parent
| on HN ]
Re:Rust: Dropping heavy things in another thread can make yo...
by pdimitar on Saturday May 30, 2020 @06:26PM
(#23365357)
I realise that, but nowadays language servers are a pretty normal practice in no small amount of areas.
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.