All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Native extension, language binding?

Also known as: native extension · language binding

Definition 9.1 Research, Data and Risk Platforms · Chapter 9 — Native Extensions

A native extension is compiled code (C, C++, Rust) loaded into the Python process and called like a Python function. A language binding is the layer that makes it callable: it converts arguments and results between the two languages’ representations, reports errors across the boundary, and states who owns each piece of memory.

Read in context →