npx tsx scripts/build-index.ts
Figuring out how to strip it out was a bit of a challenge - I ended up forking go’s crypto library - but it was a huge win. Performance approximately doubled!
。夫子对此有专业解读
The x86 protection model is notoriously complex, with four privilege rings, segmentation, paging, call gates, task switches, and virtual 8086 mode. What's interesting from a hardware perspective is how the 386 manages this complexity on a 275,000-transistor budget. The 386 employs a variety of techniques to implement protection: a dedicated PLA for protection checking, a hardware state machine for page table walks, segment and paging caches, and microcode for everything else.
The last decade hasn’t been smooth. Brewster rattles off challenges: tariffs on equipment and consumables sourced from China, Europe, Mexico, and Canada; price hikes on vinyl and paper; labor shortages; and SBA lending issues layered on top of the whiplash of COVID, when only “necessary businesses” were allowed to stay open.