Mastodon Feed: Post

Mastodon Feed

dysfun@treehouse.systems ("gaytabase") wrote:

these things are insidious because the way you're told to deal with ISA support is to ask is it supported with cpuid or something. and so you ask and it helpfully says "yes, i support that". it doesn't say anything about whether it's dogshit slow.

and how do you work that out? glad you asked:

  1. know the bug exists at all, somehow
  2. implement a fallback
  3. sniff the processor model and switch between the two implementations.
  4. have a few of these stack up, give up and choose which architectures to penalise.