[KongchangAI]
ConceptForeign Function Interface / 外部函数接口

FFI

A mechanism that allows one programming language to call functions written in another language or to use its data structures. Common forms include the C ABI, ctypes/cffi and extern "C".

Timeline (last 90 days)

Oct 20

FFI (foreign function interface) is a mechanism that allows one programming language to call functions written in another language or use its data structures, with common forms including the C language ABI calling convention, Python's ctypes/cffi, and Rust's extern "C".

Unverified50%
Oct 20

Delegating heavy tasks to a resource-rich host language via FFI or inter-process communication is a pragmatic advanced technique that preserves the low-resource language's expressive advantages in a specific domain while leveraging a mature ecosystem for general tasks.

Unverified50%
Oct 10

FFI is the bridging mechanism by which Rust calls libraries in other languages (especially C); calls that cross the boundary must be marked as unsafe, and the compiler cannot make memory-safety guarantees there.

Unverified50%
Sep 8

Languages such as Python, Rust, and Go often use C's FFI (Foreign Function Interface) as a bridge when calling low-level functionality.

Unverified50%
Sep 2

In Rust, all FFI calls must be wrapped in unsafe blocks because the compiler cannot verify whether external functions comply with Rust's ownership and borrowing rules.

Unverified50%
Aug 23

混合使用Zig和Rust两种系统级语言会显著增加编译工具链和维护的复杂度,跨语言调用通常需通过C ABI进行并维护FFI边界层

Unverified50%

All Facts (6)

Source Articles