Live data from Hacker News

Why I Still Use Vim

medium.com

61–70 of 112 posts

Re: Why I Still Use Vim

#61
post #51

Earlier quoted context omitted.

>This article implies the differences matter[...]I have 32 gigs I'm glad it works for you but not everyone is willing or has the budget to max out their system's memory in order to run text editors and chat applications. You can run multiple CADs and simulators side by side with half the amount of ram. The difference matters if ram is a precious commodity and for many people, especially on laptops, it is. I understan…

I'm on a laptop. I'm half joking about the 32 gigs thing -- I do have 32 gigs but even with all the messengers (including multiple copies of Slack), a development server with a 4 gig database, a browser and two instances of VSCode open I barely scratch 11 gigs in use. I'm a web developer. 90% of my work happens either in an editor, a browser or the shell. So yeah, VSCode's memory use doesn't really matter. If you thi…

> If you think Sublime comes anywhere close to VSCode in terms of features you haven't really given it a try.

Granted, but features have nothing to do with the issue here (wasting resources). Microsoft could have easily offered the same feature set with a different implementation. I have visual studio at work with 7 projects loaded and it sits at a comfortable 400 MB

If your laptop is your work system, it makes sense to have something powerful that costs a few grand. But then personally I'd pay a few extra and get a full featured IDE, why bother with text editors?

Re: Why I Still Use Vim

#63
post #43

Did he just basically copy Joe Allen's Text Editor Performance Comparison[1] (which is already somewhat obsolete) without attribution? Wow. 1: https://github.com/jhallen/joes-sandbox/tree/master/editor-p... ---- EDIT: I'm sorry, there's a mention at the end of the article. Either I didn't noticed it before or he added it after this comment.

Can't see how the numbers are the same, curious, what numbers did you see copied?

The benchmark files are from there.

Re: Why I Still Use Vim

#64

People can mount whatever defense they like of Electron, but the bottom line is, I think twice before I adopt any new Electron app. My daily drivers are a desktop replacement with 8gb of ram and an ultra-portable machine with 4gb. On 4gb it only takes a couple of Electron apps to eat half of my ram or more. Factor in the OS and a browser or two and it's already swapping. These are often just chat apps or something, t…

As a developer I see tremendous value in Electron and how fast you are able to get prototypes up and running. I am also highly relieved that my desktop software doesn't have to run in the background like a chat application or an editor does. I can get away with Electron, by my standards which are similar to yours, because I run my software "in focused mode" only and close it when I'm done. (Image gallery / gallery editorial)

Re: Why I Still Use Vim

#65
post #42
post #5

Favorite stance: > Or, well, just anything that is not a web browser masquerading as a text editor.

Full quote was: > If not Vim, then maybe Emacs. Or, well, just anything that is not a web browser masquerading as a text editor. I'll just leave this here: https://www.emacswiki.org/emacs/w3 ;)

That's a web browser that runs within emacs, not a web browser with text editor's functionality.

Re: Why I Still Use Vim

#66
post #14

This article implies the differences matter. Nope, sorry, the conveniences of VSCode are worth the "cost" for me. I have 32 gigs of RAM and the time I spend opening files doesn't register compared to the time I spend writing or reading code. I do wonder whether the measurements take the base overhead of each editor into account. Do the numbers represent the use per file or the total for the file plus the entire app?

When using an IDE, memory consumption can be tolerated. Indexers, analyzers, open files, sometimes other tools which run with the IDE.

However, to spend 800Mb to change a single file is too much. Atom is not a complete IDE as VSCode or Eclipse by any means. Yes Atom has IDE packages and capabilities are started to be rolled in, but it's too young.

God knows what will be the memory usage of Atom when it grows to a complete IDE with project-wide knowledge.

Also, having enough resources is never a good excuse for an application to use massive amounts of memory.

Re: Why I Still Use Vim

#68

People can mount whatever defense they like of Electron, but the bottom line is, I think twice before I adopt any new Electron app. My daily drivers are a desktop replacement with 8gb of ram and an ultra-portable machine with 4gb. On 4gb it only takes a couple of Electron apps to eat half of my ram or more. Factor in the OS and a browser or two and it's already swapping. These are often just chat apps or something, t…

I think the most frustrating thing here is it doesn't need to be this bad. Rendering HTML and running a JS VM might seem like a long way around to get a desktop interface, but you're reading this in just that context, alongside a couple of dozen tabs, many running webapps with complexities to rival Microsoft Word '97. You're not using 4GB per tab; you probably aren't even getting up to 4GB with all your tabs. Electro…

> Electron can do better

Think of electron as a single tab open in a browser instance. If you open 12 tabs in chrome, it doesn't use 12x the RAM, because most of the initial RAM is used maintaining the browser instance, not the rendered tab. most electron apps don't have "tabs" but if they did they wouldn't multiply the memory usage either

Re: Why I Still Use Vim

#69

People can mount whatever defense they like of Electron, but the bottom line is, I think twice before I adopt any new Electron app. My daily drivers are a desktop replacement with 8gb of ram and an ultra-portable machine with 4gb. On 4gb it only takes a couple of Electron apps to eat half of my ram or more. Factor in the OS and a browser or two and it's already swapping. These are often just chat apps or something, t…

I wonder if we'll see a Mozilla engine based Electron (or simply not the latest Chromium engine, which gets bigger and slower with every passing day)

Check out qbrt, a gecko app runtime by a mozilla engineer

https://github.com/mozilla/qbrt

I really hope it sees more development

Re: Why I Still Use Vim

#70
I wonder why more devs who are transitioning from javascript don't simply build a shell native app with a webview in it? UWP or .NET with a webview uses a lot less RAM than electron to do the same thing. I haven't run tests on MacOS but I bet Cocoa and Swift could do the same thing
Post reply on HN