3 ms·
I had no idea what Shimming was until this article. Shim seems to mean to build: >a small library that transparently intercepts API calls and changes the argu
by mamurphy 9y ago
I had no idea what Shimming was until this article.
Shim seems to mean to build:
>a small library that transparently intercepts API calls and changes the arguments passed, handles the operation itself, or redirects the operation elsewhere
https://en.wikipedia.org/wiki/Shim_(computing) https://en.wikipedia.org/wiki/Shim_(computing)
- ztjio 9y agoA shim is conventionally a carpentry/metalwork/etc. term for a piece of wood, metal, rubber or similar material you stick between two things to get them in the right position relative to one another, to fill some space, basically. This is necessary because the context of installation for many physical building situations are not reliably plumbed. It's also used as a term for things like thin washers used in lens manufacturing to deal with manufacturing tolerance differences when aligning elements in each individual lens. It is a term adopted here because the "shim" in this case is a small simple thing (driver) sitting between two other components to fix a problem. That's a simpler way of looking at a real life shim: a small simple thing stuck between two other things to solve a problem.
- andreareina 9y agoAlso relevant is advice[1]. Same technique, though for different purposes. Or you could say that shimming is a special case of advising. [1]: https://en.wikipedia.org/wiki/Advice_(programming) https://en.wikipedia.org/wiki/Advice_(programming)