Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. A foreign
function interface (or FFI) is a mechanism by which a program written in
one programming language can call routines or make use of services
written in another. The term comes from the specification for Common
Lisp, which explicitly refers to the language features for
inter-language calls as such; the term is also used officially by the
Haskell programming language. Other languages use other terminology (the
Ada programming language talks about "language bindings", while Java
refers to its FFI as the Java Native Interface, or JNI). Foreign
function interface has become generic terminology for mechanisms which
provide such services.