Tagged articles
4 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Nov 30, 2025 · Fundamentals

Why Turning Device Drivers into Libraries Boosts Reuse and Maintainability

The article explains the advantages of encapsulating device drivers and peripheral code into reusable libraries, outlines best practices for creating clean, platform‑independent libraries, and discusses the trade‑offs such as slight performance overhead and code‑size considerations for embedded systems.

Software Architecturecode-reusedriver development
0 likes · 7 min read
Why Turning Device Drivers into Libraries Boosts Reuse and Maintainability
BirdNest Tech Talk
BirdNest Tech Talk
Aug 28, 2024 · Backend Development

How to Provide Both Async and Sync APIs in a Rust Library Without Duplicating Code

This article walks through the challenges of offering both asynchronous and synchronous interfaces for a Rust API client, evaluates naive copy‑paste solutions, explores runtime‑based wrappers and the maybe_async procedural macro, and finally presents a clean, feature‑flagged design that avoids code duplication and compile‑time overhead.

AsyncRustcargo
0 likes · 23 min read
How to Provide Both Async and Sync APIs in a Rust Library Without Duplicating Code
Ctrip Technology
Ctrip Technology
Jul 3, 2019 · Frontend Development

Building a Standalone Vue 3 Reactivity Library: CycleJS‑like Reactive View, Immer‑like State, RxJS‑like Operators, and React‑Hooks‑like Mechanisms

This article explores Vue 3's function‑based reactivity API, demonstrates how to implement a lightweight, framework‑agnostic reactivity library with watchable objects, functional combinators, and immutable updates, and shows practical examples such as a reactive counter, a todo list, immer‑style state handling, RxJS‑style pipelines, and React‑hooks‑style utilities, while discussing the underlying concepts and limitations.

ReactivityState Managementfrontend
0 likes · 12 min read
Building a Standalone Vue 3 Reactivity Library: CycleJS‑like Reactive View, Immer‑like State, RxJS‑like Operators, and React‑Hooks‑like Mechanisms