Tagged articles
FFI
33 articles · Page 1 of 1

TonyBaiOct 12, 2026 · Backend Development
Vercel incrementally migrated Turborepo from Go to Rust, overcoming cross-platform hurdles like Windows UNC paths and Alpine musl incompatibilities via JSON serialization and separate binaries, but CEO Guillermo Rauch now calls the ROI 'controversial' as AI agents lower migration costs and shift language selection priorities.
AI agentsFFIGo
0 likes · 25 min read


TonyBaiSep 4, 2026 · Backend Development
Rust's language team has launched an experimental `#[rustc_splat]` attribute in Nightly, enabling natural calling syntax for C++ overloaded functions like `hypot(2.0, 3.0, 6.0)` without tuple wrapping, as part of the Google-funded Rust-C++ Interop Initiative.
C++ interopFFIGoogle
0 likes · 18 min read

The article explains how Rust’s ustr library implements string interning to store each unique string only once, offering O(1) pointer‑based comparison, pre‑computed hashing, zero‑cost cloning, seamless C FFI, and thread‑safe usage, while also detailing its internal design, usage patterns, suitable scenarios, and trade‑offs.
FFIRustperformance
0 likes · 14 min read

This guide explains how PHP‑VIPS, a libvips binding for PHP, delivers dramatically higher performance and lower memory usage than traditional libraries, covering its core features, installation steps, code examples, use cases, and security considerations.
FFIPHPlibvips
0 likes · 8 min read

This article introduces PHP‑Raylib, the PHP binding for the Raylib game framework, outlines its key features, cross‑platform support, installation steps, and provides detailed code examples—including a basic window and a custom button—while comparing it to native Raylib.
FFIGraphicsPHP
0 likes · 7 min read

Migrating a Java computing layer to Rust yielded dramatic performance gains—30% lower CPU usage, 70% less memory—and greater stability, as the authors explain how Rust’s ownership, borrowing, lifetimes, and concurrency, combined with optimized data handling, FFI integration, Tokio async, Docker deployment, and monitoring, outweigh the steep learning curve and ecosystem gaps.
FFIHigh-Performance ComputingRust
0 likes · 22 min read

This article demystifies the relationship between Node.js's N‑API and the underlying Application Binary Interface (ABI), explaining their definitions, comparing their abstraction levels, cross‑platform compatibility, memory management, and performance, and provides concrete Rust code examples for both raw ABI and N‑API implementations.
ABIFFIN-API
0 likes · 8 min read

This article explains PHP's Foreign Function Interface (FFI) introduced in PHP 7.4, outlines its primary use cases, shows two methods to enable the extension, provides detailed compilation and installation commands, and demonstrates a basic example of calling a C function from PHP.
C integrationFFIPHP
0 likes · 5 min read

This article introduces PHP 7.4's Foreign Function Interface (FFI), explains how to enable it, demonstrates basic usage and advanced examples for calling C functions, discusses performance considerations, security best practices, troubleshooting, and future directions for PHP developers.
BackendC integrationFFI
0 likes · 8 min read

This article explains how to set up Rust for Android development, covering installation, creating a demo project, using JNI to call Rust functions, building the shared library, integrating it into an Android app, and designing a scalable architecture with event dispatch and Protobuf.
FFIJNIRust
0 likes · 12 min read

This article explains how to invoke Go functions from C within the same process, covering the three‑step implementation, the required cgo compilation commands, the generated intermediate files, and the runtime mechanisms such as crosscall2 and stack switching that make cross‑language calls possible.
C++FFIInteroperability
0 likes · 12 min read

This article explains APISIX’s multi‑process architecture and request lifecycle, then explores various ways to develop external plugins—including SideCar‑based plugins, WASM modules, and LuaJIT FFI—detailing their implementation steps, advantages, and limitations to help developers choose the optimal approach for extending the cloud‑native gateway.
APISIXFFILua
0 likes · 14 min read


phodalSep 3, 2023 · Artificial Intelligence
This article shares practical insights from months of building LLM proof‑of‑concepts, covering language‑agnostic architectures, FFI integration, prompt engineering, RAG patterns, DSL design, and four core architectural principles for scalable AI applications.
AI ArchitectureDSLFFI
0 likes · 13 min read

This article walks through creating Rust projects that call C functions directly, generate bindings with bindgen, and wrap a complex C library (secp256k1), providing complete commands, Cargo configurations, and build scripts for seamless Rust‑C integration.
C++FFIInteroperability
0 likes · 11 min read

This article introduces PHP 8.0's built‑in FFI extension, explains its key features, demonstrates how to compile a simple C library into a shared object, and shows step‑by‑step PHP code to load the library, call its functions, and display the results.
C integrationFFIPHP
0 likes · 7 min read

This article provides a comprehensive guide on Rust build scripts, the role of sys crates, foreign function interfaces, and cross‑compilation techniques, illustrating how to create and use NAPI‑sys and libsodium‑sys crates, manage Cargo instructions, and leverage tools like Zig for seamless multi‑platform builds.
Build ScriptCross-compilationFFI
0 likes · 21 min read

This tutorial walks you through using Dart's foreign function interface (FFI) in Flutter, showing how to create a macOS plugin project, generate bindings with ffigen, call native C/C++ functions, handle callbacks and asynchronous threads, and integrate message passing between Dart isolates and native code.
C++DartFFI
0 likes · 15 min read

This article details how Xianyu’s engineering team analyzed and adapted Xiaomi’s MIUI long‑screenshot capability for Flutter list pages, covering the problem background, system source investigation, scroll view detection, event proxy design, asynchronous channel and synchronous FFI communication, and performance results.
AndroidFFIFlutter
0 likes · 17 min read

This article explains Kraken’s three‑layer event channel, detailing how event registration on the JS side is translated into Flutter commands, how those commands travel through the C++ engine, and how pointer events are finally dispatched back to JavaScript callbacks.
FFIFlutterJavaScript
0 likes · 12 min read

PowerImage, Alibaba’s next‑generation Flutter image library, combines native‑level FFI and texture techniques to deliver ui.Image support, pre‑loading, unified caching, simulator compatibility, custom image channels, and performance‑optimized rendering, while providing extensive unit tests and open‑source tooling for developers.
FFIFlutterimage processing
0 likes · 11 min read

PowerImage is a stable, high‑performance Flutter image library that combines native FFI and texture integration to eliminate cache conflicts, enable simulator support, provide custom image channels, preload and animate images, unify memory management, reduce Dart code, achieve extensive test coverage, and invite open‑source contributions for future enhancements.
FFIFlutterImageProcessing
0 likes · 12 min read


21CTOApr 2, 2022 · Fundamentals
The article explains how C has evolved from a programming language into a universal ABI protocol that every language must speak to interact with operating systems, detailing the challenges of FFI, ABI compatibility, and strategies for forward‑compatible API design.
ABIC languageFFI
0 likes · 20 min read

The article introduces PowerImage, a new Flutter image library that combines external texture and FFI to enable direct ui.Image loading, pre‑caching, simulator support, and custom channels, and compares its performance against traditional Texture solutions with detailed memory and scrolling analyses.
FFIFlutterPowerImage
0 likes · 12 min read

The article introduces PHP's FFI extension, explains how to call C libraries such as libbloom, manipulate Linux namespaces, and use raylib for graphics, provides complete code examples, and discusses performance considerations, offering a practical guide for backend developers.
C integrationFFILinux namespaces
0 likes · 9 min read

This article details the architecture of the Qingzhou Business Gateway, identifies its granular control, data‑loss, and performance issues, and explains a series of optimizations—including FFI usage, table‑pool reuse, coroutine caching, radixtree routing, and connection‑pool tuning—that raise single‑node QPS to 80 k while preserving functional capabilities.
API GatewayFFILua
0 likes · 13 min read

PowerImage combines FFI and external‑texture techniques to deliver native‑like Flutter image handling, offering direct ui.Image loading, unified caching, simulator support, custom channels and comprehensive error capture, with texture‑based rendering preferred for typical use and FFI reserved for legacy simulators or direct pixel access, while providing performance gains and upcoming animated‑image support.
FFIFlutterTexture
0 likes · 12 min read

This article introduces Kraken, a high‑performance, Flutter‑based web rendering engine, detailing its technical background, architecture, bridge implementations, key performance optimizations, extended widget support, and debugging tools, while comparing its rendering flow with traditional WebView and Flutter pipelines.
FFIFlutterKraken
0 likes · 17 min read

This article details Kuaishou's Flutter audio-video implementation, optimization practices, and engineering support, covering video playback via external textures, data communication strategies, FFI integration, and performance tuning.
FFIFlutterKuaishou
0 likes · 17 min read

This article details how Kuaishou’s Fast Creation team leveraged pure Flutter to implement complex audio‑video features such as playback, editing, and live streaming, describing the challenges of UI, state, performance, and data communication, and presenting optimization techniques like external textures, FFI, thumbnail caching, and frame‑rate improvements.
FFIFlutteraudio-video
0 likes · 18 min read

This article details the performance challenges of large‑scale Flutter apps and presents a series of practical optimizations—including module‑level hybrid rendering, native‑side data prefetch with FFI, multi‑level caching, and resource compression—that together reduced home‑page startup time by more than one second.
Data PrefetchFFIFlutter
0 likes · 10 min read

The article compares Flutter’s native interaction methods, explaining how Platform Channels use message codecs and thread switching for method calls, while FFI lets Dart directly invoke C functions, offering superior performance but more boilerplate, and discusses trade‑offs, implementation details, and a benchmark showing the speed gap.
C++DartFFI
0 likes · 8 min read

Flutter 2 transforms the framework into a true multi‑platform solution by adding stable desktop (Windows, macOS, Linux) and web support, introducing dual‑screen widgets, sound null‑safety, stable FFI, and tooling upgrades, while highlighting migration challenges and future enhancements.
DartFFIFlutter
0 likes · 11 min read

This article demonstrates how to use PHP 7.4's FFI to directly call the Cjieba Chinese word‑segmentation library, explains common pitfalls such as uninitialized variables and pointer handling, shows code examples for compiling and running the library, and compares PHP's performance with native C.
BackendCjiebaFFI
0 likes · 6 min read
