7 ms·
The companion article at https://pavelfatin.com/typing-with-pleasure/ https://pavelfatin.com/typing-with-pleasure/ has some example results, showing Atom, the o
by userbinator 6y ago
The companion article at https://pavelfatin.com/typing-with-pleasure/ https://pavelfatin.com/typing-with-pleasure/ has some example results, showing Atom, the only Electron-based one in the list, as having several times more latency than the others. I wonder how VSCode compares.
It's unfortunate that software seems to feel slower the newer it is, including developer tools such as text editors/IDEs. I suspect this is because most people - including younger developers - have never seen how fast things can be, but are instead constantly subjected to delays in using applications to the extent that they think it is an absolutely normal speed[1], and then propagate that notion to the software they themselves create.
Also related: https://danluu.com/input-lag/ https://danluu.com/input-lag/
[1] For example, everything that uses UWP in Windows. Someone who had only ever used the Settings app in Windows 10, or (even worse) the Calculator, might not realise how absurdly slow they are in comparison to the previous versions' where they would open nearly instantaneously.
- lucb1e 6y agoDirect link to the section with Windows results: https://pavelfatin.com/typing-with-pleasure/#windows https://pavelfatin.com/typing-with-pleasure/#windows Scroll a bit down for Windows with power saving, Linux (section 3.4), and VirtualBox (3.5).
- jhurliman 6y agoThe worst is when I see someone using vim or Emacs over SSH. If you think Electron apps are bad, imagine adding a network round trip between every keystroke!
- vz8 6y agoGui Emacs via tramp+ssh is awesome. Terminal Emacs over ssh is, well, just like anything else in a terminal over ssh. Can't say I notice the latency unless the datacenter is on the other side of the country.
- cyberbanjo 6y agoIsnt it the same if you use tramp in the terminal, assuming you are running emacs locally and tramping into the server to edit?
- sgillen 6y agoSure, although in that case why not use the GUI?
- ben0x539 6y agoidk, vim across ssh (rn from my place in the west coast to a vps in iirc the east coast) feels a lot snappier and less frustrating than my typical interaction with slack.
- beering 6y agoSuggestion for anyone who's annoyed by SSH latency - try out mosh[0]. It watches to see if your keystrokes are echoed and if they are, it'll start echoing your keystrokes locally without waiting for network roundtrip. That, plus the ability to rejoin a session even from a different IP, makes working over SSH doable even from airplane Wi-Fi. [0] https://mosh.org/ https://mosh.org/
- sumedh 6y agoYou can use programs like winscp to open the file locally in your fav text editor and then upload back to the server when you click save.
- tkzed49 6y agoI actually don't think that developers who use things like VSCode are simply naive. Personally, I am a young person and I frequently do use vim in a low-latency terminal emulator (xterm, mlterm) without a compositor. Yes, I enjoy the fact that it is very fast. However, I still use VSCode when I'm making more complicated edits primarily because of the plugin ecosystem. Plugins "just work", are easy to configure, and all work together nicely. I get rich syntax highlighting and intellisense. I might be doing something wrong, but this was not the experience I have had with vim. I like the UI simplicity of VSCode in contrast to native editors such as IntelliJ and Visual Studio, which I do use when I really need the features. I am interested in efforts like Onivim 2, which seek to combine these advantages.
- Shared404 6y agoVim + Alacritty + Gruvbox = Happiness. For me at least. I've found that I get perfectly passable syntax highlighting with vim, and haven't needed anything else on my current install. If I did use an editor other than vim, I would probably use VSCodium because open build, and I do really like the visual style.
- denosawr 6y agoYou might be interested in coc.nvim, which can allow vim to use the LSP servers which powers VSC's intellisense. It's a bit of setup, but I've found with coc.nvim and a good syntax highlighting plugin, I can get a really great syntax highlighting and intellisense setup going.
- twoleftfeets 6y agoAgreed. I've been editing since the late 70s. At the moment I use VSCode the most. The plugins are the thing. They are doing things I've seen no other editor do. Of course I haven't used every editor. The latest was I typed ...nameOfArrayInOtherFile and it auto inserted import nameOfArrayInOtherFile from './tests/name-of-array-in-other-file.js'; a few lines above some how recognizing the pattern. Another thing I've seen VSCode do is give me library specific warnings. Maybe that's common now-a-days in other editors but I hadn't seen it before. I'd seen language warnings but not library warnings.
- noble_pleb 6y agoPlus the new generation is pampered with much cheaper resources (RAM and CPU), so programming efficiency goes out of the window.
- deleted 6y ago[deleted]
- contravariant 6y agoI also can't be the only one annoyed by the input lag in the windows login screen and start menu search. Somehow both of them seem to think it's fine to just ignore keypresses for half a second before doing anything. Annoyance aside I seriously worry about the accessibility of the windows lock screen. Through a weird display setup I sometimes find myself trying to log in blind and I just can't do it. There seems to be no way to reliably focus the password field, and for whatever insane reason it's not just always in focus
- mwcampbell 6y ago> Annoyance aside I seriously worry about the accessibility of the windows lock screen. Through a weird display setup I sometimes find myself trying to log in blind and I just can't do it. If you try running a screen reader, such as Narrator (built into Windows; edit: turn it on and off with Ctrl+Win+Enter, even on the logon screen), you should find that even if the focus somehow gets away from the Password field, you can get back there with the help of speech output. Logging in blind doesn't have to mean logging in with no means of orientation. (Disclosure: I'm a developer at Microsoft on the Windows accessibility team, working on Narrator among other things.)
- contravariant 6y agoFair enough, but on a screen who's sole purpose is to let me type in my password I really shouldn't require a Narrator to find the one and only input field. It's nice that the problem has a solution, but it shouldn't have been a problem to begin with.
- mwcampbell 6y agoThe trouble is that this screen isn't just for entering your password. On my logon screen, I have not only the PIN field (because I enabled the TPM-based Windows Hello feature), but also these other links or buttons: "I forgot my PIN", "Sign-in options", network, Ease of Access, and power. So use of a full GUI framework, that supports accessibility tools such as a screen reader, is justified.
- senkora 6y agoA few months ago I found my old GameBoy and played through part of "Kirby: Nightmare in Dreamland". I know its not the most well-known game, so the relevant detail is that it relies a lot on timing and quick movements. I was completely blown away by the responsiveness of the controls. The control feedback was instant, frames were rock-solid, and there were no loading screens at all. When I put down the game, I was just tremendously sad. I'd forgotten what instant feedback felt like.
- dahfizz 6y agoIt really amazing playing with old technology. In Super Mario Bros on the NES, when you press the jump button Mario jumps the very next frame. And with a CRT you get instant response time. You just can't get that responsiveness anymore.
- yjftsjthsd-h 6y agoWait, why would a CRT be faster than LCD? If anything, I'd naively expect faster response with no electron beam to move.
- ce4 6y agoThe NES-CRT connection is analog and the screen is drawn line by line, if you connect a digital monitor that will have to be buffered and you get some delay/lag of min 1 frame.
- mrob 6y agoMost LCDs only buffer a single line at a time: https://www.youtube.com/watch?v=wts8f1bNnbo https://www.youtube.com/watch?v=wts8f1bNnbo
- formerly_proven 6y agoYou misunderstand the video. A LCD controller must buffer at least one line, because the LCD matrix is updated line for line, all columns in parallel -- it's a matrix, much like a RAM matrix. However, the video just shows how the LCD is scanned out, it doesn't say anything about the buffering of the controller. A lot of non-gaming LCDs, and virtually all older non-gaming LCDs, buffer an entire frame, even if they are driven in their native mode.
- dsissitka 6y ago> I wonder how VSCode compares. I was curious so I did some tests: https://imgur.com/a/73coWRR https://imgur.com/a/73coWRR
- comfymatrix 6y agoThanks for this. I definitely wasn’t expecting VSCode to be almost on par with Emacs...
- agumonkey 6y agoI tried vscode on win10 core i5 1st gen. Could barely reach 2 keys per second. I was honestly shocked.
- hrktb 6y agoIsn’t it because older tools never go away ? Newer tools only come as alternatives to faster tools that continue to be usable at any time. For instance I choose to use VSCode and consciously weight it down with plugins and extra linters, because the trade-off is fine for me. But I know vim is only a click away, and if I wanted sheer speed I’d do it there. And I actually do use it on a day to day basis, it’s just not my primary editor.
- fxtentacle 6y agoI would say the big outlier here are the JetBrains IDEs like IntelliJ, which have had zero-latency as their default configuration for 2 years now. Also, it is worth noting, that the same person doing this research is the one working for JetBrains on optimizing editor latency: https://blog.jetbrains.com/clion/2017/01/clion-starts-2017-1-eap/#zero_latency https://blog.jetbrains.com/clion/2017/01/clion-starts-2017-1... So there are companies taking the editor latency issue seriously and that are close to fixing it.