Tag

FFI

1 views collected around this technical thread.

DeWu Technology
DeWu Technology
Feb 26, 2025 · Backend Development

Migrating to Rust: A Case Study in High-Performance Computing

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 ComputingMemory Management
0 likes · 22 min read
Migrating to Rust: A Case Study in High-Performance Computing
php中文网 Courses
php中文网 Courses
Aug 7, 2024 · Backend Development

Using PHP 7.4+ Foreign Function Interface (FFI) to Call C Libraries

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.

C# IntegrationFFIPHP
0 likes · 8 min read
Using PHP 7.4+ Foreign Function Interface (FFI) to Call C Libraries
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 10, 2024 · Mobile Development

Integrating Rust into Android: A Step-by-Step Guide

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.

AndroidFFIJNI
0 likes · 12 min read
Integrating Rust into Android: A Step-by-Step Guide
Refining Core Development Skills
Refining Core Development Skills
May 23, 2024 · Fundamentals

Calling Go Functions from C: Step‑by‑Step Guide and Underlying Mechanism

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++FFIcgo
0 likes · 12 min read
Calling Go Functions from C: Step‑by‑Step Guide and Underlying Mechanism
php中文网 Courses
php中文网 Courses
May 25, 2023 · Backend Development

Using PHP 8.0 FFI Extension to Integrate C Libraries

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
Using PHP 8.0 FFI Extension to Integrate C Libraries
ByteDance Web Infra
ByteDance Web Infra
Feb 17, 2023 · Backend Development

Understanding Rust Build Scripts, FFI, and Sys Crates for NAPI Integration

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 ScriptFFINAPI
0 likes · 21 min read
Understanding Rust Build Scripts, FFI, and Sys Crates for NAPI Integration
Xianyu Technology
Xianyu Technology
Jun 1, 2022 · Mobile Development

PowerImage: High‑Performance Flutter Image Library Using FFI and Texture Integration

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
PowerImage: High‑Performance Flutter Image Library Using FFI and Texture Integration
Laravel Tech Community
Laravel Tech Community
Feb 15, 2022 · Backend Development

Using PHP FFI to Call C Libraries: libbloom, Linux Namespaces, and raylib Examples

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
Using PHP FFI to Call C Libraries: libbloom, Linux Namespaces, and raylib Examples
TAL Education Technology
TAL Education Technology
Nov 11, 2021 · Backend Development

Optimizing the Qingzhou Business Gateway: Performance Boosts, FFI Integration, and Routing Enhancements

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
Optimizing the Qingzhou Business Gateway: Performance Boosts, FFI Integration, and Routing Enhancements
Xianyu Technology
Xianyu Technology
Oct 29, 2021 · Mobile Development

PowerImage: Integrating FFI and External Texture for Advanced Flutter Image Handling

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.

FFIFlutterImage Processing
0 likes · 12 min read
PowerImage: Integrating FFI and External Texture for Advanced Flutter Image Handling
Kuaishou Tech
Kuaishou Tech
Jun 8, 2021 · Mobile Development

Flutter Audio-Video Practice and Optimization in Kuaishou

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.

Audio-VideoFFIFlutter
0 likes · 17 min read
Flutter Audio-Video Practice and Optimization in Kuaishou
Kuaishou Frontend Engineering
Kuaishou Frontend Engineering
Jun 4, 2021 · Mobile Development

Boosting Audio‑Video Editing with Flutter: Kuaishou’s Cross‑Platform Success

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.

Audio-VideoFFIFlutter
0 likes · 18 min read
Boosting Audio‑Video Editing with Flutter: Kuaishou’s Cross‑Platform Success
HelloTech
HelloTech
Apr 25, 2021 · Mobile Development

Flutter Native Interaction: Platform Channel vs FFI Comparison

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++Cross-platformDart
0 likes · 8 min read
Flutter Native Interaction: Platform Channel vs FFI Comparison
Xianyu Technology
Xianyu Technology
Apr 13, 2021 · Frontend Development

Flutter 2 New Features: Multi‑Platform Support, Web, Desktop, and Dart Enhancements

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.

DartDesktopFFI
0 likes · 11 min read
Flutter 2 New Features: Multi‑Platform Support, Web, Desktop, and Dart Enhancements
php中文网 Courses
php中文网 Courses
Dec 1, 2020 · Backend Development

Using PHP FFI to Call the Cjieba Chinese Word Segmentation Library

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.

CjiebaFFIPHP
0 likes · 6 min read
Using PHP FFI to Call the Cjieba Chinese Word Segmentation Library