Re:The AMD Radeon Graphics Driver Makes Up Roughly 10.5% of ...
by barumi on Sunday October 11, 2020 @05:59PM
(#24749458)
> This might not exist in C (I've never written it), but something like this seems like a fairly clean pattern you could use:
How sure are you?
I mean, if the code path of a driver is touched, that triggers all verification and validation steps on all pieces of hardware that are required to ensure that the pieces of hardware affected by it will continue to work as expected.
Furthermore, how many bugs are introduced on a daily basis because people like you and me push "fairly clean patterns" that end up triggering all sorts of unexpected consequences? I know I did, and still do, my share.
Re:The AMD Radeon Graphics Driver Makes Up Roughly 10.5% of ...
by AlotOfReading on Sunday October 11, 2020 @06:16PM
(#24749565)
C doesn't provide any language support for this, including any notion of abstracts or classes. You can still do it manually and that's basically how drivers are implemented in Linux, but it doesn't address the combinatorial test matrix explosion.
Maybe this turns into spaghetti at scale and it actually is easier to just copy-paste all of it, who knows.