Skip to content
Search

Shim

lastmod 2020-12-09created 2020-10-078 edits

In computer programming, a shim is a library that transparently intercepts API calls and changes the arguments passed, handles the operation itself, or redirects the operation elsewhere. Shims can be used to support an old API in a newer environment, or a new API in an older environment. Shims can also be used for running programs on different software platforms than they were developed for.

Shims for older APIs typically come about when the behavior of an API changes, causing compatibility issues for older applications that still rely on the older functionality. In such cases, the older API can still be supported by a thin compatibility layer on top of the newer code. Shims for newer APIs are defined as "a library that brings a new API to an older environment, using only the means of that environment."

Categories

See also

Favorite site

author Zer0 sitemap