่จปๅ†Šไธฆๅˆ†ไบซ้‚€่ซ‹้€ฃ็ต๏ผŒๅฏ็ฒๅพ—ๅฝฑ็‰‡ๆ’ญๆ”พ่ˆ‡้‚€่ซ‹็Žๅ‹ตใ€‚

Guillermo Rauch
@rauchg
ๅŠ ๅ…ฅ July 2008
662 ๆญฃๅœจ้—œๆณจ    920.3K ็ฒ‰็ตฒ
If your terminal ever gets into a 'bad state', like garbled outputs, you run ๐š›๐šŽ๐šœ๐šŽ๐š. I noticed it wasโ€ฆ oddly slow. Turns out in 1979 3BSD's ๐š๐šœ๐šŽ๐š had a ๐šœ๐š•๐šŽ๐šŽ๐š™(๐Ÿท) to let mechanical printer-and-ink terminals 'settle down' ๐Ÿ˜‚ I asked ๐š๐šก to write me a faster alternative in Zig. It takes 1ms instead of 1s. It was really cool to dive deeper into ๐š—๐šŒ๐šž๐š›๐šœ๐šŽ๐šœ, ๐š๐šœ๐šŽ๐š, ๐š๐šŽ๐š›๐š–๐š’๐š—๐š๐š˜, and the myriad ways in which your terminal can getโ€ฆ cursed. It's legit fascinating how far back our technology stack goes, and how enduring good system design is, even with the occasional 'spider webs' you can find. Check out for a fun explainer (and some alternative solutions.) ps: once you start using ๐š๐šก, you'll notice slowness like this everywhere :D
้กฏ็คบๆ›ดๅคš