News for hackers. Stuff that matters.
Re:Latency matters by emerongi on Sunday August 20, 2017 @04:34PM (#15060126)
Latency is the reason I just can not use some editors, most notably Atom. You get used to it after a while, but it's not fun.

I remember when I used IntelliJ's product line for a good while and then opened up Vim. I was dumbfounded that I somehow had not noticed that IntelliJ was slow. It's fast enough - not Atom - but Vim was amazing next to it.

Re:Latency matters by al452 on Sunday August 20, 2017 @05:18PM (#15060298)
IntelliJ often shows latency, but it's not "slow", it's doing a stupendous amount of work behind the scenes and building an incredibly rich model of your code and your application.

If you're not getting more out of IntelliJ than vim, then sure, vim will make you happier. But also then you're not getting from IntelliJ what it's trying to provide.

Re:Latency matters by hvidgaard on Monday August 21, 2017 @02:45AM (#15062430)
I haven't used IntelliJ for the last 5 years or so, so I do not know how it is today. My remark here is not about IntelliJ, but a generally about GUIs.

A GUI can be responsive and fast even when doing a lot of work behind the scenes. I'm perfectly fine with it taking it's time figuring out what argument I can use, or something else. But do not drop percieved responsiveness - I want to be able to type and/or click menus at all times.

Re:Latency matters by dlsniper on Monday August 21, 2017 @05:16PM (#15067922)
Re:Latency matters by agumonkey on Sunday August 20, 2017 @05:48PM (#15060409)
yeah latency is not all.

I have an HP48 calc, even though it had a monstrous cpu for its time, the system had layers of interpretation rendering the UX well... sluggish. But the ergonomics and paradigm was so neat, that you didn't need real time. You could keep stacking functions on the HP48 stack, you'd know in advance how it would behave, so it wasn't an issue. And counter intuitively, I enjoyed the pauses so I could think about what to do next.

Re:Latency matters by wtallis on Sunday August 20, 2017 @07:01PM (#15060664)
The key thing that made the HP48 work in spite of its latency is that the behavior was completely predictable. You could press a long key sequence faster than the GUI could react, but each keypress would be interpreted as if the GUI had kept up. So you could press an arrow key several times to navigate through a menu or dialog box that hadn't been drawn yet. The input event buffer was large enough to handle almost any input sequence that you could actually memorize.

On a PC, the latency is both less predictable in occurrence and in how it is handled, so when a window is unexpectedly slow to appear, you have to notice and wait rather than continue to type, otherwise your input may be sent to the wrong window.

Re:Latency matters by agumonkey on Monday August 21, 2017 @12:37AM (#15061963)
Agreed
Re:Latency matters by FridgeSeal on Sunday August 20, 2017 @07:32PM (#15060801)
For what it's worth, PyCharm (and I assume the other IntelliJ IDE's) has added zero-latency typing [0 (that blog post mentions rolling out the feature in an Early Access build, but given semantic highlighting is in normal Pycharm now, I would imagine zero-latency input is as well).

0: https://blog.jetbrains.com/pycharm/2016/12/pycharm-2017-1-ea...

Re:Latency matters by majewsky on Sunday August 20, 2017 @04:37PM (#15060145)
That reminds me of another thing that I noticed. My vim gets really sluggish (as in, 1 fps and worse) when I have a Firefox window on the other screen showing a Concourse pipeline [1]. If I change to a different tab, vim is suddenly fast again.

[1] https://concourse.ci

Re:Latency matters by alecbenzer on Sunday August 20, 2017 @07:27PM (#15060780)
Hm, when did you last try atom? I just tried picking it up coming from vim in a terminal and haven't really noticed speed as a major difference. Speed where, in how quickly characters show up? Or in doing other things like navigating around?
Re:Latency matters by aidenn0 on Sunday August 20, 2017 @04:49PM (#15060191)
Having used vi over low-speed serial links means that I can handle latency just fine. Also hjkl were noticably faster because they sent fewer characters over the lines compared to arrow keys which used escape codes...
Re:Latency matters by watchdogtimer on Sunday August 20, 2017 @09:45PM (#15061354)
Funny, I've noticed just the opposite using vim on a desktop or laptop--and its always driven me nuts.

If I'm editing a file and type several repeating j or l commands (e.g., 'jjjjj' in command mode), there is noticeable latency between the last movement command and the last cursor movement.

I get no latency, however, when performing the same commands using the right or down arrow keys.

The 'h' or 'k' commands have no latency, either, just 'j' and 'l'.

I've been using vim for years and still find it frustrating. I haven't noticed the same problem with other vi clones (e.g., nvi or elvis).

Re:Latency matters by aoeusnth1 on Sunday August 20, 2017 @11:29PM (#15061717)
I don't notice any difference with Spacemacs' evil-mode (a vim mode)
Re:Latency matters by dkersten on Monday August 21, 2017 @05:40AM (#15063202)
I know this isn't what you're responding to, but... I do notice the difference between vim (or neovim) and spacemacs -- spacemacs is noticeably slower. I do still use spacemacs more than vim now, though, because its Clojure integration is better.

(aside-rant: evil-mode is also not really a substitute for vim -- when you say you're a vim user, people often ask "why not just use the vim emulation in editor-X?" and the reason is because vim emulation has never, in my experience, been as good an experience as vim, things always work subtly differently)

Re:Latency matters by aidenn0 on Monday August 21, 2017 @12:13PM (#15065580)
Having used vi for 25 years and vim for 20 years, I'm going to say that evil-mode is the first vim-emulation editor mode that was close enough for me.

I think there were two or three things that weren't right for me out-of-the-box, but 15 minutes and 30 lines of elisp later it was fixed. I really need to maintain a fork or something that is as much like vim as possible, but with options for enabling specific emacs features, because everyone has some things that emacs does that they like better than how vim does it.

My personal example: s/foo/bar/g on a line containing "foo Foo" becomes "bar Bar" by default in emacs, which I find to be amazing, but is definitely not how vim works.

Re:Latency matters by dkersten on Tuesday August 22, 2017 @04:32AM (#15070611)
Yeah, its minor differences, but they add up. Maybe its time I learned a little elisp and fixed it for myself, I really like spacemacs aside from the (minor) annoyances caused by not being vim.
Re:Latency matters by michaelmrose on Monday August 21, 2017 @03:34AM (#15062625)
What OS?
Re:Latency matters by watchdogtimer on Monday August 21, 2017 @06:21AM (#15063395)
I've experienced this on every version of Debian or Ubuntu I can recall using.
Re:Latency matters by michaelmrose on Monday August 21, 2017 @12:44PM (#15065811)
Do you experience the same thing with a blank config?
Re:Latency matters by chr1 on Monday August 21, 2017 @03:59PM (#15067353)
do you have a mapping of jl to esc?