News for hackers. Stuff that matters.
Re:Lapce – Fast and Powerful Code Editor written in Rust by debdut on Tuesday December 14, 2021 @03:43AM (#29549582)
VS Code is so bloated af Waiting for this to be stable! Would love to contribute! Any next features doc, so I can pick a topic and submit some PRs. Awesome work :)
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.
Re:Lapce – Fast and Powerful Code Editor written in Rust by johnisgood on Tuesday December 14, 2021 @04:23AM (#29549797)
VSCodium is fine, so is emacs and vim. I use them along with IntelliJ IDEA. This "code editor" looks pretty minimal in comparison to the ones I mentioned... at least as far as the screenshot goes.
Re:Lapce – Fast and Powerful Code Editor written in Rust by jokoon on Tuesday December 14, 2021 @04:47AM (#29549931)
sublime text is the best editor currently, in my view.

apart from code folding.

Re:Lapce – Fast and Powerful Code Editor written in Rust by monopoledance on Tuesday December 14, 2021 @05:29AM (#29550198)
Not FOSS. For many, that's an issue. Personally, I just don't feel comfortable working with sensitive information or proto-executables in closed-source software. I get the appeal, if you come from macOS or Windows, but for Linux it's often the first "dirty" thing you would introduce, so it feels like a big deal.

Btw. I have used Sublime. It is a very nice Editor. Most importantly incredibly snappy and so far no other editor matched Sublime's intuitive `TAB` completion dynamics.

Oh, yeah, and it's fucking expensive...

Re:Lapce – Fast and Powerful Code Editor written in Rust by coldtea on Tuesday December 14, 2021 @05:38AM (#29550239)
>Personally, I just don't feel comfortable working with sensitive information or proto-executables in closed-source software.

So, just how the biggest companies, banks, governments, etc. in the world work (using e.g. Excel, Word, Visual Studio, etc)...

Re:Lapce – Fast and Powerful Code Editor written in Rust by miloignis on Tuesday December 14, 2021 @08:50AM (#29551431)
Honestly "big companies, banks, governments" do sound like the usual suspects for writing programs insecurely to me (I work for one of those).
Re:Lapce – Fast and Powerful Code Editor written in Rust by coldtea on Tuesday December 14, 2021 @09:02AM (#29551552)
Yes, but if this is standard procedure in 99.999% of cases, I doubt "good enough for them" habit of running a commercial binary that's not open source (basically how the whole planet except perhaps NSA and such works), is not also good enough for some random linux user (assuning they don't trade in ultra-sensitive data).
Re:Lapce – Fast and Powerful Code Editor written in Rust by monopoledance on Tuesday December 14, 2021 @09:05PM (#29561145)
As I said, it is not good enough for me. Why do you feel the need to argue for closed-source software, anyway? Do you need to justify this to yourself? Rest assured, personally, I don't care what you feel comfortable using.

on a side note, banks and governments often actually audit closed-source code, as they get that worked out in their contracts. Go ahead and ask Microsoft, if you could do the same...

Re:Lapce – Fast and Powerful Code Editor written in Rust by coldtea on Wednesday December 15, 2021 @03:50AM (#29563495)
>Why do you feel the need to argue for closed-source software, anyway? Do you need to justify this to yourself? Rest assured, personally, I don't care what you feel comfortable using.

Why do you feel the need for ad-hominen arguments and pop-psychology BS? Do you feel personally validated because you use Open Source, compensating for other lacks in your life, perhaps not being loved enough as a kid?

See how two can play this game? Maybe stick to practical arguments?

My point was in practical use, trusting a proprietary commercial binary (from Microsoft, Oracle, whatever) is not a big issue for far more sensitive environments (banks, governents, etc) than the average user case.

Re:Lapce – Fast and Powerful Code Editor written in Rust by monopoledance on Wednesday December 15, 2021 @09:31AM (#29566401)
Lol. I was just stating my personal preferences, then you came calling me out unreasonable. I made it very clear, that it's about how I feel about it. Not reason. I am not arguing at all.

But hey, I also gave you an actual argument, you ignored......

Re:Lapce – Fast and Powerful Code Editor written in Rust by Fnoord on Tuesday December 14, 2021 @08:42AM (#29551360)
> Oh, yeah, and it's fucking expensive...

~80 USD per user (not per computer, per user), and then you have support for that version the X upcoming years. I understand 80 USD is a lot of money for some people, but I would argue for businesses it isn't and it isn't if you compare it to other stuff. Which requires subscription, or lets you pay with your data / advertising. Even if FOSS, that's arguably worse.

(I use Sublime and Vim, sometimes Vi, and on Citrix we got Notepad++ which is Windows-only.)

> Personally, I just don't feel comfortable working with sensitive information or proto-executables in closed-source software.

For starters, you could decide to not not hang it on a network 24/7. Or hang it in a different VLAN than the stuff on your network using Log4j.

Re:Lapce – Fast and Powerful Code Editor written in Rust by azeirah on Tuesday December 14, 2021 @09:53AM (#29552149)
Eh, 80 dollars is pretty expensive yeah, but I bought my Sublime Text 3 beta license like 6 years ago while I was a student. I had like 200$ to my name back then and felt like it was worth it despite not even adding anything to my experience other than removing the "please activate sublime" popup.

I have access to Sublime Text 3, and even to the Sublime Text 4 beta.

I also pay the yearly Jetbrains full-suite subscription.

Re:Lapce – Fast and Powerful Code Editor written in Rust by monopoledance on Tuesday December 14, 2021 @09:11PM (#29561194)
You do you. For me, that editor is not 80 USD better than... well, there are a lot of great alternatives. It's not even like Sublime is flawless, and I am not sure I would use it, if it was FOSS (tho, then it may become flawless over time).

Also, apparently it's $100 USD now. C'mon, 100 bucks for a basic text editor?!

Re:Lapce – Fast and Powerful Code Editor written in Rust by cweagans on Friday December 17, 2021 @10:36AM (#29593574)
$100 per compared to however much you make per year using that tool is nothing if that tool makes you more productive. Personally, I haven’t found a lot of great alternatives. Picking the best text editor is like picking the best mail client: you settle for the least shitty one. I am happy to pay good developers for good tools that make me more productive. Focusing on open source at all costs is a great way to ignore the actual costs of those tools.

Also, developers are spoiled af. Imagine if you worked in industrial design or something. The standard there is something like solidworks or autocad. You’d get laughed out of the room if you tried to stumble through with some open source alternative. Just the software can be $x000/year and that’s not even considering the hardware that some might need to stay productive. You want to actually prototype something? Pony up another pile of money for a CNC or a laser cutter or whatever + the operator time (if you don’t know how to do it) + the materials.

Re:Lapce – Fast and Powerful Code Editor written in Rust by yz1ruhzh on Tuesday December 14, 2021 @05:23AM (#29550169)
It was my daily driver for programming, editing.. pretty much everything text related until their latest version. Autocomplete became extremely annoying and the editor feels less snappier. After years I ended up switching to VS Code, and I keep sublime text when I quickly want to edit a text file.
Re:Lapce – Fast and Powerful Code Editor written in Rust by zerocount on Tuesday December 14, 2021 @05:00AM (#29550013)
Yep, I'm either on Sublime or Emacs.
Re:Lapce – Fast and Powerful Code Editor written in Rust by spyremeown on Tuesday December 14, 2021 @06:28AM (#29550531)
Unironically yes. It's so fast.
Re:Lapce – Fast and Powerful Code Editor written in Rust by perryizgr8 on Tuesday December 14, 2021 @05:17AM (#29550118)
Only problem with sublime is the exorbitant price. It's just too much!
Re:Lapce – Fast and Powerful Code Editor written in Rust by preommr on Tuesday December 14, 2021 @05:47AM (#29550292)
$100 for what one (three?) years?

Seriously?

Forget the exorbitant tech salaries, so many other industries charge way more for essential equipment. That's chaper than a single snap-on wrench out of the hundreds that an automative shop has to buy. It's two months of adobe bundle that most graphic designers subscribe to. I think the perspective here is important.

Re:Lapce – Fast and Powerful Code Editor written in Rust by laumars on Tuesday December 14, 2021 @06:53AM (#29550680)
Not everyone on HN is on Silicon Valley wages. Or even work in international tech hubs like SV or London.

For some in tech, $100 is a hell of a lot of money.

Re:Lapce – Fast and Powerful Code Editor written in Rust by perryizgr8 on Tuesday December 14, 2021 @08:35AM (#29551291)
$100 for a text editor seems quite expensive to me. I agree it is not much in comparison to many other professional tools.
Re:Lapce – Fast and Powerful Code Editor written in Rust by debdut on Tuesday December 14, 2021 @07:18AM (#29550820)
agree :) daily driver. nova.app pretty great stuff too
Re:Lapce – Fast and Powerful Code Editor written in Rust by sharikous on Tuesday December 14, 2021 @04:37AM (#29549885)
The bloating cycle should merit its own xkcd comic I guess. VS Code was specifically successful because it was perceived as much less bloated then IDEs, yet much more user friendly than most editors. Now we hear complaints that it is bloated. What will be next?
Re:Lapce – Fast and Powerful Code Editor written in Rust by laurent123456 on Tuesday December 14, 2021 @05:08AM (#29550056)
All "lightweight", "fast" shiny new things are so because they have plenty of missing features. But anyway is it a widespread opinion that VSCode is bloated? Because for me at least it feels fast, especially considering all its features.
Re:Lapce – Fast and Powerful Code Editor written in Rust by agumonkey on Tuesday December 14, 2021 @07:03AM (#29550735)
VSCode is bloated [0]. I ran a fresh install on a 1st gen i5, it couldn't process keyboard input on an empty file above 4 char per sec. Levels of lag my brain couldn't remember (and I'm a hp48g lover.. not known for zero latency).

[0] That was last year, so maybe it was a buggy release (doubt it) or maybe they made big improvements since (possible)

Re:Lapce – Fast and Powerful Code Editor written in Rust by vidarh on Tuesday December 14, 2021 @05:22AM (#29550161)
A challenge is that we tend to have roughly the same 80 percent point for things like editors, but all want different sets of features for the remaining 20. You then either end up with bloat or extensibility/plugins, or both.
Re:Lapce – Fast and Powerful Code Editor written in Rust by GhettoComputers on Tuesday December 14, 2021 @05:58AM (#29550351)
Emacs isn’t slow
Re:Lapce – Fast and Powerful Code Editor written in Rust by hdjrudni on Tuesday December 14, 2021 @04:18AM (#29549772)
Ya...it's going downhill :-( I liked it as a lightweight editor. Now it's just another IDE. But instead I have to sift through thousands of half-baked 3rd party plugins to get the functions I need. Editors/IDEs should do one thing or the either well.
Re:Lapce – Fast and Powerful Code Editor written in Rust by Philip-J-Fry on Tuesday December 14, 2021 @04:24AM (#29549803)
>But instead I have to sift through thousands of half-baked 3rd party plugins to get the functions I need

That's the entire point? The functions don't exist because it's supposed to be lightweight.

If you're finding that you need 20+ plugins to add features then I've got news for you, you're looking for an IDE that has all these built in by default.

Re:Lapce – Fast and Powerful Code Editor written in Rust by fileeditview on Tuesday December 14, 2021 @05:22AM (#29550159)
Not OP but..

I have certainly around 20 plugins in my Vim and it runs faster than Usain Bolt.

I agree with your first point but the IDE argument is wrong. I could use 100 plugins and it still would not be an IDE nor would I want one.

Re:Lapce – Fast and Powerful Code Editor written in Rust by coldtea on Tuesday December 14, 2021 @05:36AM (#29550229)
>* If you're finding that you need 20+ plugins to add features then I've got news for you, you're looking for an IDE that has all these built in by default.*

I also have news for you, VS Code's whole selling point was "built-your-own-IDE" and big plugin ecosystem, not "here's yet another lightweight editor".

Re:Lapce – Fast and Powerful Code Editor written in Rust by pjmlp on Tuesday December 14, 2021 @07:04AM (#29550741)
Other than having to put up with Electron, nope it isn't bloated, in fact it is still missing lots of nice IDE like features.
Re:Lapce – Fast and Powerful Code Editor written in Rust by debdut on Tuesday December 14, 2021 @07:24AM (#29550861)
well the bottleneck is electron. The startup times have consistently increased since I first started using it, now it uses north of 1gig RAM for a decent size project, too much for a text editor :(

Don't get started on the popups though!

And I don't use any extension