Shim (computing) explained

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.[1] [2] 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, thereby causing compatibility issues for older applications which 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."

Examples

See also

External links

Notes and References

  1. Web site: Computerworld. Your company's apps incompatible with Windows 7? Shim them, says Microsoft. 2014-04-05. 2009-03-21.
  2. Web site: Microsoft TechNet. Demystifying Shims - or - Using the App Compat Toolkit to make your old stuff work with your new stuff. 2014-04-05. 2011-06-17.
  3. Book: Speaking JavaScript . Axel Rauschmayer . 2014 . Shims Versus Polyfills.
  4. Web site: Microsoft. Microsoft Application Compatibility Toolkit 5.0. 2008-06-24. 2007-12-11.
  5. Web site: Daniel Ryde. Source code of bind.so. 2014-04-05. 2010-01-09.