News for hackers. Stuff that matters.
Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by andai on Saturday August 05, 2023 @09:45AM (#37011957)
> Anyway, at the time I did these measurements, my 4.2 GHz kaby lake had the fastest single-threaded performance of any machine you could buy but had worse latency than a quick machine from the 70s (roughly 6x worse than an Apple 2), which seems a bit curious. To figure out where the latency comes from, I started measuring keyboard latency because that’s the first part of the pipeline. My plan was to look at the end-to-end pipeline and start at the beginning, ruling out keyboard latency as a real source of latency.

> But it turns out keyboard latency is significant! I was surprised to find that the median keyboard I tested has more latency than the entire end-to-end pipeline of the Apple 2. If this doesn’t immedately strike you as absurd, consider that an Apple 2 has 3500 transistors running at 1MHz and an Atmel employee estimates that the core used in a number of high-end keyboards today has 80k transistors running at 16MHz. That's 20x the transistors running at 16x the clock speed -- keyboards are often more powerful than entire computers from the 70s and 80s! And yet, the median keyboard today adds as much latency as the entire end-to-end pipeline as a fast machine from the 70s.

https://danluu.com/keyboard-latency/

Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by _trampeltier on Saturday August 05, 2023 @09:52AM (#37012019)
An USB-C charger has much more computing power than an Apollo Moonlander.

https://www.theverge.com/tldr/2020/2/11/21133119/usb-c-anker...

Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by FredPret on Saturday August 05, 2023 @10:47AM (#37012531)
We'll have computronium soon if we carry on like this!
Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by ddingus on Saturday August 05, 2023 @02:39PM (#37015100)
But it is seriously i/o deficient!
Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by KronisLV on Saturday August 05, 2023 @10:49AM (#37012551)
> https://danluu.com/keyboard-latency/

This might be a bit off topic, but it was surprising to see a Logitech K120 have the same latency as a Unicomp Model M or other keyboards that are 5-10x more expensive than it.

No wonder I liked using it for work years ago: as far as membrane keyboards go, it's pretty dependable and decently nice to use, definitely so for it's price.

Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by ddingus on Saturday August 05, 2023 @02:46PM (#37015156)
Why have that kind of resource in a keyboard?

Some keyboards were made with 4 bit processors. I have yet to look one up and perhaps I should.

Pretty much any 8 bit CPU would be luxurious. And low latency due to the single task, respectful code density, and rapid state changes for interrupts.

Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by ImAnAmateur on Saturday August 05, 2023 @04:27PM (#37015994)
That write up is fantastic but it's undated and probably from 2016/2017.
Re:Intel x86 Documentation Has More Pages Than The 6502 Has ... by rcxdude on Tuesday August 08, 2023 @04:52AM (#37046229)
The measurement methodology seems a bit odd for the purposes of measuring the difference between old and new computers: if a large fraction of the latency measured is due to the key travel, that's latency which is also present in the older computers (AFAICT buckling spring has a lot more key travel before activation than the scissor-switch keys of the apple and most laptop keyboards) Surely for the purposes of the comparison you would want to look at switch activation-to-bus-activity latency.