3 ms·
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 the
by smabie 6y ago
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.
- pdimitar 6y agoYep, I guess I conflated compilers and LSP. I imagined compilers would have daemon modes. Seems like I was wrong.
- steveklabnik 6y ago> 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.