Hacker News new | past | comments | ask | show | jobs | submit login

I'm still pretty skeptical of this claim. If you type 60 wpm, which is faster than an average human, but regular for people who type as professionals, you spend on average 200ms on a keystroke. 60 standard words per minute means 300 chars per minute [0], so 5 chars per second which is 200ms per char. Many people type faster than this, yes, but it's all still very much pushing it just to even meet the 100ms limit, and that's without any reaction or anything on top.

[0] https://en.wikipedia.org/wiki/Words_per_minute




For whatever it's worth*: I'm not skeptical of it at all. I've done this in a terminal before without even looking at the screen, so I know it can't have anything to do with visual reaction.

Similar to the other reply, I also commonly do that when typing, where I know I've fat fingered a word, exclusively from the feeling of the keyboard.

But also, your not just trying to beat the fork/exec. You can also successfully beat any number of things. The pre-commit hook, the DNS look up, the TLS handshake. adding an additional 100ms of latency to that could easily be the difference between preempting some action, interrupting it or noticing after it was completed.


I just tried it out.

I wrote this bash script:

    #!/usr/bin/env bash
    start_time=$(gdate +%s%3N)
    # Function to handle Ctrl+C (SIGINT)
    on_ctrl_c() {
        end_time=$(gdate +%s%3N)
        total_ms=$((end_time - start_time))
        # Calculate integer seconds and the remaining milliseconds
        seconds=$((total_ms / 1000))
        millis=$((total_ms % 1000))

        # Print the runtime in seconds.milliseconds
        echo "Script ran for ${seconds}.$(printf '%03d' ${millis}) seconds."
        exit 0
    }

    # Trap Ctrl+C (SIGINT) and call on_ctrl_c
    trap on_ctrl_c INT

    # Keep the script running indefinitely
    while true; do
        sleep 1
    done

And then i typed "bash sleep.sh git push origin master<enter><ctrl+C>"

and got "Script ran for 0.064 seconds."


Even if you typed 120 wpm, which is "competitive typing" speed according to this thing[0], it's going to take you 200ms to type ctrl+c, and even if you hit both more-or-less simultaneously you're going to be above the 100ms threshold. So to realistically be able to do something like beat the threshold during normal work and not a speed-centered environment you're probably looking at regularly 160 wpm or more?

I'm not a competitive speed typist or anything but I struggle to get above 110 on a standard keyboard and I don't think I've ever seen anyone above the 125-130 range.

[0] https://www.typingpal.com/en/documentation/school-edition/pe...


Typing is not string of reactions to stimuli.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: