News for hackers. Stuff that matters.
Re:Latency matters by richdougherty on Sunday August 20, 2017 @04:33PM (#15060123)
I can't help but think that since he's measuring his own perception at the ms level - for a new program he's written himself - that it would be easy for unconscious bias to creep in. To really know the truth about whether latency matters in this case, a better experiment is probably needed.

Not that I think he should bother doing this, I'm just being the fun police. :)

Re:Latency matters by majewsky on Sunday August 20, 2017 @04:36PM (#15060140)
I don't really know how to eliminate my own biases here, but a quick test shows that the new prompt feels very much like the old one if I add a little latency manually:

  PROMPT="\$(prettyprompt \$?)"
  PROMPT="\$(sleep 0.04; prettyprompt \$?)"
With the second one, I can always see a frame or two where the cursor is already on the next line where the prompt will go, before the prompt actually shows up.
Re:Latency matters by darawk on Sunday August 20, 2017 @05:47PM (#15060403)
Presumably the test would be whether he can, in a blind experiment, reliably discriminate between them.
Re:Latency matters by alecbenzer on Sunday August 20, 2017 @07:23PM (#15060758)
Yeah -- seems like it'd be a bit tricky to set up, but would be super interesting to see the results.

edit: Tried something out: https://github.com/AlecBenzer/terminal-latency Had 92% accuracy differentiating 10ms from 100ms out of 28 tries

Re:Latency matters by richdougherty on Monday August 21, 2017 @04:12AM (#15062793)
Nice!
Re:Latency matters by tomxor on Sunday August 20, 2017 @08:45PM (#15061120)
No, you can easily measure this stuff with "time". It was 75ms vs 3ms for python vs go... this is for some custom prompt he wrote, so this is the time it takes to get the new prompt every time he was pressing return. I don't think it's that big a deal, if it was navigation keys in a text editor then it's a big deal, but when you hit return you are usually executing something much longer than ~50ms anyway so it's not an overhead that's going to multiply that much.
Re:Latency matters by tomxor on Monday August 21, 2017 @10:47AM (#15064977)
I just realised that may have come off as sarcastic... I was referring to "time" as in the linux cli tool, not the concept :P