News for hackers. Stuff that matters.
Re:Text Editor Performance Comparison (2016) by tambourine_man on Tuesday August 08, 2017 @07:48PM (#14964151)
This was submitted five months ago: https://news.ycombinator.com/item?id=13933128

Suggestion: previous submission should be at least a year old before rehashing is allowed

Re:Text Editor Performance Comparison (2016) by Uehreka on Tuesday August 08, 2017 @08:37PM (#14964481)
I don't check HN every day, so I totally missed this. I enjoyed reading it today.
Re:Text Editor Performance Comparison (2016) by tambourine_man on Tuesday August 08, 2017 @09:58PM (#14964903)
The solution maybe better ways to find old content.

But having the same links resurface over and over doesn't seem optimal to me.

Re:Text Editor Performance Comparison (2016) by infogulch on Wednesday August 09, 2017 @01:48PM (#14971763)
There is a "past" link at under the article link that opens up agnolia search.

I'm gonna throw out the idea that it should show the number of exact url results right there without having to click it.

Re:Text Editor Performance Comparison (2016) by tambourine_man on Wednesday August 09, 2017 @09:31PM (#14975489)
I thought of something along this lines, but your idea is better. I hope the mods are reading :)
Re:Text Editor Performance Comparison (2016) by whatever_dude on Tuesday August 08, 2017 @07:18PM (#14963927)
This is from September 2016.

I'm sure many editors there have changed since then. This is true of Visual Studio Code, at least - the tests uses 1.4, way behind the current 1.14. I know the team has been spending some time doing performance improvements (e.g. 1.9 had some big improvements in highlight performance[1]) and I wonder how it compares.

1: https://code.visualstudio.com/blogs/2017/02/08/syntax-highli...

Re:Text Editor Performance Comparison (2016) by theaustinseven on Tuesday August 08, 2017 @07:28PM (#14963999)
Yeah, for reference, VS Code had just a couple of months prior added editor tabs. The VS Code today is vastly different from the one a year ago.
Re:Text Editor Performance Comparison (2016) by ianstormtaylor on Tuesday August 08, 2017 @08:20PM (#14964353)
And it looks like just today Atom has another release (1.19) that supposedly helps performance for large documents: http://blog.atom.io/2017/08/08/atom-1-19.html
Re:Text Editor Performance Comparison (2016) by baldfat on Tuesday August 08, 2017 @07:42PM (#14964115)
The speed also increased, but I use editors due to interface and usage over any speed seen.
Re:Text Editor Performance Comparison (2016) by mzzter on Tuesday August 08, 2017 @06:54PM (#14963744)
I really wanted to give Atom a chance since it gets stuff like ligatures right, but I find its slow startup speed to be a no-go. I simply find in Sublime a much stabler experience and faster startup time, which makes it feel more productive.
Re:Text Editor Performance Comparison (2016) by cshenton on Tuesday August 08, 2017 @07:02PM (#14963808)
So did I. And every time I downloaded it again, I'd open a medium sized file, scroll down, the scroll lags, and I delete it again.
Re:Text Editor Performance Comparison (2016) by mclehman on Tuesday August 08, 2017 @07:22PM (#14963949)
I was very pro-Atom for a while. I've since packed up and moved to Vim and then on to Emacs with evil-mode.

I never had any performance complaints while I was actually using Atom, but a while back I made a mistake when generating a text file that turned out to be ~1.5GB. Luckily, it was just one mistake in the footer, so I could take care of it without regenerating the entire thing.

Without even thinking about it, I opened it up with Emacs, went to the bottom, made my changes, and got back out. About a minute later, I saw how large of a file it was and was suddenly even more impressed with Emacs than I had been.

Just for fun, I then tried to edit it with Atom. Nope.

Re:Text Editor Performance Comparison (2016) by foxh0und on Tuesday August 08, 2017 @08:30PM (#14964424)
I can get behind it on my *nix systems, where I find it fast enough, but I find it terrible on Windows, especially when it updates and I find myself with two versions.
Re:Text Editor Performance Comparison (2016) by waynecochran on Tuesday August 08, 2017 @07:07PM (#14963841)
ligatures in source code? It seems as soon as I use a non-fixed width font, then indenting and other code formatting becomes tricky. Bjarne Stroustrup uses a proportional spaced font in his C++ book and I hate it.
Re:Text Editor Performance Comparison (2016) by erik-g on Tuesday August 08, 2017 @07:12PM (#14963877)
There are ligatures in fixed-width fonts[0], like VSCode with the Fira Code font! I've been using it for a week or two now and like it so far.

[0] HN discussion: https://news.ycombinator.com/item?id=14821446

Re:Text Editor Performance Comparison (2016) by _asummers on Tuesday August 08, 2017 @07:13PM (#14963885)
There was a whole discussion about ligatures in programming fonts here [0] a few weeks ago.

[0] https://news.ycombinator.com/item?id=14821446

Re:Text Editor Performance Comparison (2016) by mzzter on Tuesday August 08, 2017 @07:17PM (#14963919)
Yes, specifically ligatures in fixed-width fonts like erik-g mentioned. My personal favorite is Hasklig[0], which is based on Source Code Pro.

[0]: https://github.com/i-tu/Hasklig

Re:Text Editor Performance Comparison (2016) by waynecochran on Tuesday August 08, 2017 @07:27PM (#14963986)
Okay then ... does look good ... I assume that normal ascii is used under the hood and that is what the lexical analyzer sees. I am open minded -- of course it has to work with emacs -- I am not that open minded ;)
Re:Text Editor Performance Comparison (2016) by Uehreka on Tuesday August 08, 2017 @08:33PM (#14964453)
It's just a font, the underlying text is still the same no matter what font you use to render it. In fact, you could set Fira Code (or Hasklig) as the font for your terminal and (as long as your terminal app can render ligatures) it would render in emacs or any terminal-based editor.
Re:Text Editor Performance Comparison (2016) by pselbert on Tuesday August 08, 2017 @06:54PM (#14963747)
When I read the headline I thought it would be a link to Dan Luu's recent post [1]. Not too surprising that it was actually submitted by him!

The most amazing part of this is the JOE editor. Performance and memory aside, I'm astounded it has been maintained by the same person since 1988! [2]

[1]: https://danluu.com/term-latency/ [2]: http://joe-editor.sourceforge.net/

Re:Text Editor Performance Comparison (2016) by doktrin on Tuesday August 08, 2017 @06:50PM (#14963716)
Nice to see Sublime performing so well relative to Code and Atom
Re:Text Editor Performance Comparison (2016) by ajross on Tuesday August 08, 2017 @07:06PM (#14963834)
Hilarious to see GNU Emacs keeping its head high in the pack of "lightweight" editors.
Re:Text Editor Performance Comparison (2016) by agentgt on Tuesday August 08, 2017 @07:34PM (#14964042)
Not really... IMO whats far more hilarious is to see an editor written in Java handily beat the newer editors like Atom, Code, etc.
Re:Text Editor Performance Comparison (2016) by btym on Tuesday August 08, 2017 @08:46PM (#14964529)
Think carefully about what you just posted. Java has to load the JVM. Atom and VS Code have to load Chromium.
Re:Text Editor Performance Comparison (2016) by agentgt on Wednesday August 09, 2017 @10:45AM (#14969496)
Of course I know they load up a web browser but you would think that is something what Java people would do (in terms of over engineering and over use frameworks and fair game as I'm a Java developer).

I'm basing this on the original poster that thought it was funny that Emacs is fast/small. You don't think its ironic that a Java editor is small and fast given its history of being slow and bloated?

Re:Text Editor Performance Comparison (2016) by throwaway91111 on Tuesday August 08, 2017 @08:19PM (#14964348)
Well Atom, Code etc are written in javascript; i would wholly expect an editor written in java run laps around them.
Re:Text Editor Performance Comparison (2016) by agentgt on Wednesday August 09, 2017 @10:47AM (#14969527)
Well that is sort of like saying Emacs is written in Elisp. Its true a good portion of the editors are written in their own scripting language (js for atom, and elisp for emacs, and beanshell for jedit) but I believe the critical components that these tests test for are probably not.
Re:Text Editor Performance Comparison (2016) by throwaway91111 on Wednesday August 09, 2017 @07:22PM (#14974693)
Right, i guess that was my point as well. The java factor probably doesn't play into the core speed. I would imagine the rendering is what screws the performance for the js based editors.
Re:Text Editor Performance Comparison (2016) by greenhouse_gas on Tuesday August 08, 2017 @09:00PM (#14964618)
Surprising to see vim and nvi losing to nano and even Joe (at times)
Re:Text Editor Performance Comparison (2016) by the_duke on Tuesday August 08, 2017 @07:08PM (#14963847)
Well, one is a well-optimized C++ implementation, the other two are Electron apps.

Not that surprising...

Re:Text Editor Performance Comparison (2016) by chrisweekly on Tuesday August 08, 2017 @08:36PM (#14964477)
Why?

I ask as a recent convert to VSCode. Had spent about 18 months on ST3, and about a decade on Sublime Text 2 before that, as my daily / primary editor. Never going back.

Re:Text Editor Performance Comparison (2016) by enraged_camel on Tuesday August 08, 2017 @08:47PM (#14964535)
What are some reasons you like VSCode over Sublime?
Re:Text Editor Performance Comparison (2016) by chrisweekly on Wednesday August 09, 2017 @09:47AM (#14968712)
It's open source, and free, and has a superset of Sublime's abilities (for my use cases anyway).

It's been all upside, and thanks to keyboard binding import, the upgrade cost me maybe an hour total during the 1st week. IOW a ~frictionless transition.

The catalyst was annoyance w/ an ST3 plugin for Tern (tern_for_sublime). VSC ships OOB w/ things like nice autocomplete for TS and JS, and it imported all my ST3 keybindings, and I haven't found anything I want to change that's not a trivial user config option.

Re:Text Editor Performance Comparison (2016) by to3m on Tuesday August 08, 2017 @08:13PM (#14964305)
I was moved to try Emacs with my own test file and (somewhat to my surprise - it's normally pretty crap with long lines) it had no problem loading a 3GByte file consisting of 3,000,000 1K lines.

For short lines it's generally fine. I've never had a problem working with multi-GByte log files with 100-chars per line or so.

(Even if it's OK for text, you are probably best off avoiding very large source files - some of the major modes seem to be written assuming <100K files and/or short lines. Python mode in particular seems to bog down very easily. C mode is fine for editing, but large-scale reindents can get pretty slow. And so on.)

Re:Text Editor Performance Comparison (2016) by nooreen on Tuesday August 08, 2017 @06:43PM (#14963665)
Nice that you can do so much in so many editors. Luckily, Emacs had me at hello and I will never turn back.
Re:Text Editor Performance Comparison (2016) by lihaoyi on Tuesday August 08, 2017 @07:00PM (#14963790)
Approaching the subject another way, Pavel Fatin's excellent article Typing with Pleasure (https://pavelfatin.com/typing-with-pleasure/) goes really (really) deep into another way in which text editor performance can be compared
Re:Text Editor Performance Comparison (2016) by keyle on Tuesday August 08, 2017 @07:17PM (#14963913)
I wish IntelliJ was added to the list. It's a monster in comparison but it feels much faster than Code...
Re:Text Editor Performance Comparison (2016) by crispinb on Tuesday August 08, 2017 @08:03PM (#14964245)
With 'zero-latency typing' enabled (which it is by default on current versions), IntelliJ rates well on typing lag comparisons which are probably the most consequent metric for 'feel'.
Re:Text Editor Performance Comparison (2016) by keyle on Tuesday August 08, 2017 @08:24PM (#14964374)
True I can't stand typing in a "text editor" only to see it lagging behind. That wasn't a thing back in DOS and that shouldn't be a thing today!
Re:Text Editor Performance Comparison (2016) by badpenny on Wednesday August 09, 2017 @05:52AM (#14967017)
I've always had problems with IntelliJ IDEA feeling extremely slow and have never been able to figure out why. The mouse cursor even skips when it's doing anything intensive. This is on a machine with 4 cores @ 3.2GHz and 16GB of RAM. VSCode seems much faster.
Re:Text Editor Performance Comparison (2016) by nkkollaw on Tuesday August 08, 2017 @06:46PM (#14963689)
Very cool. I thought Nano would perform much better..?

A problem with some fast editors might be ease of use. For instance, I would have loved to try out JOE editor, but I couldn't find builds, the code is hosted on Sourceforge, etc. etc.

I think a huge feature for an editor is usability: is there a website where I can download a build for my OS? Does it update by itself? Is it easy to configure, install plugins, etc.?

Re:Text Editor Performance Comparison (2016) by zeptomu on Tuesday August 08, 2017 @06:51PM (#14963720)
Assuming you are on a proper OS, it comes with your distribution, e.g. via Ubuntu it's just

  $ apt install joe
And it's ready (obviously you might want to configure it differently than the default).
Re:Text Editor Performance Comparison (2016) by mikejmoffitt on Tuesday August 08, 2017 @07:30PM (#14964012)
I agree with you about a package manager being a good OS feature, but this is unnecessary snark when the two most popular operating systems don't come with a package manager (of this sort, at least).
Re:Text Editor Performance Comparison (2016) by a_t48 on Tuesday August 08, 2017 @07:57PM (#14964200)
For what it's worth, `sudo apt install joe` works fine on my windows machine. :)
Re:Text Editor Performance Comparison (2016) by mikejmoffitt on Thursday August 17, 2017 @05:22PM (#15041149)
Joke aside, that didn't install a Windows program, and I'm willing to bet the WSL wasn't installed by default either, and I'll also bet that didn't work in a Windows command prompt.
Re:Text Editor Performance Comparison (2016) by EpicEng on Tuesday August 08, 2017 @07:39PM (#14964086)
So "proper" as in "the one(s) almost no one uses"?
Re:Text Editor Performance Comparison (2016) by pselbert on Tuesday August 08, 2017 @06:56PM (#14963760)
You can install JOE on macOS through homebrew. Running "brew install joe" begins installing version 4.4
Re:Text Editor Performance Comparison (2016) by nkkollaw on Tuesday August 08, 2017 @07:06PM (#14963831)
Nice.

Thanks.

Re:Text Editor Performance Comparison (2016) by agentgt on Tuesday August 08, 2017 @07:23PM (#14963959)
Oh man I forgot about JED! It was my first editor. At the time Emacs was often too slow on my computer (circa 1995 maybe even as early as 93).

That editor was awesome and it had a cool library I think called Slang which had its own sort of ncurses implementation and scripting language (probably wrong on the details).

The author also implemented an awesome news reader back you know when people used news readers.

Re:Text Editor Performance Comparison (2016) by 6502nerdface on Tuesday August 08, 2017 @08:40PM (#14964495)
> At the time Emacs was often too slow on my computer (circa 1995 maybe even as early as 93).

Recalls to mind that old joke, "Eight Megs And Constantly Swapping."

Re:Text Editor Performance Comparison (2016) by agentgt on Tuesday August 08, 2017 @07:37PM (#14964072)
I'm actually sort of impressed how well JEdit performed. Other than micro its one of the only not written in a C/C++ language (the critical components... I realize emacs, code, atom, sublime all have their extension languages).
Re:Text Editor Performance Comparison (2016) by slavapestov on Tuesday August 08, 2017 @08:43PM (#14964512)
Java virtual machines generate very efficient machine code nowadays, especially for an older codebase like jEdit's that is not particularly "object oriented".
Re:Text Editor Performance Comparison (2016) by lokedhs on Wednesday August 09, 2017 @01:47AM (#14965859)
I think it would be more fair to call it object oriented. It's just not framework oriented, and that's a good thing.
Re:Text Editor Performance Comparison (2016) by michaelmior on Tuesday August 08, 2017 @06:44PM (#14963673)
Very cool. Would be really interesting to see how neovim compares.
Re:Text Editor Performance Comparison (2016) by laylomo2 on Tuesday August 08, 2017 @06:40PM (#14963645)
This is really cool. It would also be useful to provide a visualization of these numbers for easier scanning. Thanks for sharing.
Re:Text Editor Performance Comparison (2016) by bronz on Tuesday August 08, 2017 @07:41PM (#14964113)
why is there no good, fast, open source text editor that is user friendly like vscode but written in a low level language?
Re:Text Editor Performance Comparison (2016) by sidlls on Tuesday August 08, 2017 @07:46PM (#14964139)
Emacs doesn't qualify? Why not?
Re:Text Editor Performance Comparison (2016) by Spivak on Tuesday August 08, 2017 @08:04PM (#14964253)
I think it should count. Emacs might come from a different time but it's plenty user friendly for a text editor, it even has graphical menus and a package manager. What more do you want?
Re:Text Editor Performance Comparison (2016) by ledgerdev on Tuesday August 08, 2017 @08:57PM (#14964595)
That would be the "user friendly" part.
Re:Text Editor Performance Comparison (2016) by sidlls on Tuesday August 08, 2017 @09:06PM (#14964655)
To each his own, I guess. I find it user friendly enough.
Re:Text Editor Performance Comparison (2016) by hammerandtongs on Tuesday August 08, 2017 @07:02PM (#14963809)
This is lacking input latency unfortunately ie how long it takes for a typed character to appear.

That unsurprisingly quite critical and surprisingly variable -

https://pavelfatin.com/typing-with-pleasure/#input-latency

Re:Text Editor Performance Comparison (2016) by loeg on Tuesday August 08, 2017 @07:06PM (#14963833)
Does neovim do any better than vim in any of these?
Re:Text Editor Performance Comparison (2016) by fishywang on Tuesday August 08, 2017 @07:27PM (#14963979)
I'm wondering the same thing.
Re:Text Editor Performance Comparison (2016) by ledgerdev on Tuesday August 08, 2017 @09:03PM (#14964637)
I guess the focus on large files has it's certainly useful in certain cases like viewing log files, data dumps, etc... but for the most part I find myself opening many many small files with less than a couple hundred lines each.

We need tools that focus on application development needs, not text editing.

Re:Text Editor Performance Comparison (2016) by hossbeast on Tuesday August 08, 2017 @08:28PM (#14964403)
What is "nvi" in the tables? Neovim?
Re:Text Editor Performance Comparison (2016) by billsnow on Tuesday August 08, 2017 @08:38PM (#14964488)
No it's the BSD clone from the nineties. Ascii only.
Re:Text Editor Performance Comparison (2016) by cristoperb on Tuesday August 08, 2017 @08:48PM (#14964545)
It's a version of vi distributed with many BSDs: https://en.wikipedia.org/wiki/Nvi
Re:Text Editor Performance Comparison (2016) by steinuil on Tuesday August 08, 2017 @08:46PM (#14964531)
It's the version of vi that ships with the BSDs.