News for hackers. Stuff that matters.
Re:Lapce – Fast and Powerful Code Editor written in Rust by throw_m239339 on Tuesday December 14, 2021 @04:19AM (#29549774)
VS Code isn't bloated if you never install any extension. You can't hold Microsoft responsible for third party bloat.
Re:Lapce – Fast and Powerful Code Editor written in Rust by IshKebab on Tuesday December 14, 2021 @06:23AM (#29550482)
Well, sort of. The problem is it's difficult to implement a lot of extension functionality in efficient ways, and sometimes they make it too easy to do it in really really inefficient ways. Examples:

* LSP uses JSON. Even worse, VSCode uses UTF-16 internally (because Javascript does, more or less). But JSON uses UTF-8. So for correct operation VSCode converts the UTF-16 to UTF-8, and then your language server has to convert it back to UTF-16 to figure out the row/col positions (which are in UTF-16 units).

* LSP has an "easy mode" where the entire document is sent to the language server on every keypress!

* Some functions like `provideDocumentLinks()` operate on the entire document, so on every keypress (maybe it batches them I don't know), all linkifier extensions will run a load of regexes over the whole document.

There's definitely scope for a text editor with an extension API that encourages speed.

Re:Lapce – Fast and Powerful Code Editor written in Rust by Hendrikto on Tuesday December 14, 2021 @05:40AM (#29550253)
Well… it‘s built on Electron. If your editor comes with its own browser, that‘s bloat.
Re:Lapce – Fast and Powerful Code Editor written in Rust by arghwhat on Tuesday December 14, 2021 @09:21AM (#29551763)
It is subjective and depends on your baseline. When you're used to fast editors ((neo)vim, sublime text back in the day, etc.), then VS Code is sluggish and bloated out of the box, and the idea of adding extensions that could make it worse is nightmare fuel.
Re:Lapce – Fast and Powerful Code Editor written in Rust by Ygg2 on Tuesday December 14, 2021 @05:39AM (#29550243)
But not using a single plugin is near impossible.