Jump to content

Language binding

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 187.66.93.72 (talk) at 00:24, 28 February 2012 (→‎See also: add item and sort all). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computing, a binding from a programming language to a library or OS service is an API providing that service in the language.

Many software libraries are written in systems programming languages such as C or C++. To use these libraries from another (usually higher-level) language such as Java, Common Lisp, Python or Lua, a binding to the library must be created in that language possibly requiring the recompilation of the language's code depending on the amount of modification necessary; however most languages offer some sort of foreign functions interface like Python's ctypes and ecl's cffi, and uffi.

Software reuse is a major motivation for creating library bindings, rather than reimplementing the library in several languages. Another is the impossibility of implementing certain algorithms efficiently in high-level languages.

See also

[1] ISO standard for language bindings