Language Binding

In programming and software design, binding is an application programming interface (API) that provides glue code specifically made to allow a programming language to use a foreign library or operating system service (one that is not native to that language).

Characteristics

Binding generally refers to a mapping of one thing to another. In the context of software libraries, bindings are wrapper libraries that bridge two programming languages, so that a library written for one language can be used in another language. Many software libraries are written in system programming languages such as C or C++. To use such libraries from another language, usually of higher-level, such as Java, Common Lisp, Scheme, Python, or Lua, a binding to the library must be created in that language, possibly requiring recompiling the language's code, depending on the amount of modification needed. However, most languages offer a foreign function interface, such as Python's and OCaml's ctypes, and Embeddable Common Lisp's cffi and uffi.

For example, Python bindings are used when an extant C library, written for some purpose, is to be used from Python. Another example is libsvn which is written in C to provide an API to access the Subversion software repository. To access Subversion from within Java code, libsvnjavahl can be used, which depends on libsvn being installed and acts as a bridge between the language Java and libsvn, thus providing an API that invokes functions from libsvn to do the work.

Major motives to create library bindings include software reuse, to reduce reimplementing a library in several languages, and the difficulty of implementing some algorithms efficiently in some high-level languages.

Runtime environment

Object models

Virtual machines

Porting

See also

References


Tags:

Language Binding CharacteristicsLanguage Binding Runtime environmentLanguage Binding PortingLanguage BindingApplication programming interfaceComputer programmingGlue codeLibrary (computer science)Operating systemProgramming languageSoftware design

🔥 Trending searches on Wiki English:

Florence PughAnatomy of a FallWilliam, Prince of WalesErnie HudsonJennette McCurdySenegalJoe BidenPreity Zinta2026 FIFA World Cup qualificationSaquon BarkleyRed yeast rice2024 Indian general election in KarnatakaJoey GraziadeiTaylor SwiftList of solar eclipses in the 21st centuryWorld War IIList of ports in the United StatesLisa LillienRebecca FergusonBianca CensoriCillian MurphySexual intercourseMarch 27Tasman Bridge disasterEminemList of country calling codesGhostbustersRobloxComstock lawsMadonnaHeath LedgerLarry DavidAmanda BynesMel GibsonGeorge WashingtonSacha Baron CohenRed heiferRicky StanickySuki WaterhouseMao ZedongRaindrop cakeMister SinisterEuphoria (American TV series)ChaturbateNikita KhrushchevKate WinsletCheryl HinesThailandJason PatricPier Gerlofs DoniaBrittany SnowMount TakaheJeffrey HunterAdolf HitlerCatherine, Princess of WalesRachin RavindraShirley ChisholmLady GagaAlan RitchsonSwitzerlandKim KardashianPriyanka ChopraJay-ZFacebookAmerican Civil WarPablo SandovalPalm RoyaleShakiraTaiwanMahatma Gandhi2026 FIFA World Cup qualification (UEFA)Ramy YoussefJake Paul vs. Mike TysonJapanSex positionJohnny Depp🡆 More