Tagged articles
13 articles
Page 1 of 1
Linux Tech Enthusiast
Linux Tech Enthusiast
Jan 17, 2026 · Fundamentals

The Most Stupid Embedded C Bug Ever: A Missing Space That Turned Code Into a Comment

The article walks through a seemingly simple C file‑creation snippet that fails on Windows because Microsoft's tmpfile() uses C:\, then reveals a hidden bug where a stray backslash in a comment and a missing space in an expression silently turn code into comments, illustrating how tiny syntax errors can break cross‑platform programs.

CDebuggingbug
0 likes · 7 min read
The Most Stupid Embedded C Bug Ever: A Missing Space That Turned Code Into a Comment
Bilibili Tech
Bilibili Tech
Oct 22, 2024 · Mobile Development

Understanding Swift Macros in Swift 5.9 and Their Applications

Swift 5.9’s new macro system lets developers generate type‑safe code at compile time via external plug‑ins, using role‑based declarations such as @attached and @freestanding to create properties, extensions, or warnings, thereby reducing repetitive boiler‑plate and improving safety in large‑scale architectures like MVVP modules and exposure frameworks.

Code GenerationCompiler PluginSwift
0 likes · 20 min read
Understanding Swift Macros in Swift 5.9 and Their Applications
BirdNest Tech Talk
BirdNest Tech Talk
Jul 30, 2024 · Fundamentals

Master Conditional Compilation in Rust with cfg_if: A Practical Guide

This article explains how the Rust cfg_if crate simplifies conditional compilation by providing a macro that replaces nested #[cfg] attributes with clear if‑else or match structures, shows step‑by‑step usage, advanced patterns, and compares cfg_if to raw #[cfg] for readability and maintainability.

BackendRustcfg_if
0 likes · 8 min read
Master Conditional Compilation in Rust with cfg_if: A Practical Guide
Liangxu Linux
Liangxu Linux
Aug 14, 2023 · Backend Development

Mastering GNU C Extensions: typeof, Zero‑Length Arrays, and More in the Linux Kernel

This article explains key GNU C extensions used in the Linux kernel—including typeof, zero‑length (flexible) arrays, case ranges, labeled initializers, variadic macros, function and variable attributes, built‑in functions, asmlinkage, and UL suffixes—showing why they exist, how to use them safely, and providing concrete code examples.

GNU CLinux kernelbuiltin function
0 likes · 13 min read
Mastering GNU C Extensions: typeof, Zero‑Length Arrays, and More in the Linux Kernel
Liangxu Linux
Liangxu Linux
Jul 2, 2023 · Fundamentals

Mastering Table‑Driven Parameter Management for Low‑Memory MCUs

This article explains the latest updates to a table‑driven parameter management library for MCU devices, covering unified parameter definitions, macro‑based registration, key‑value and non‑key‑value storage options, configurable trimming, macro and function interfaces, and provides detailed C code examples and serialization demos.

Embedded CMCUmacro
0 likes · 11 min read
Mastering Table‑Driven Parameter Management for Low‑Memory MCUs
Liangxu Linux
Liangxu Linux
Jun 22, 2023 · Backend Development

Mastering GNU C Extensions: typeof, Flexible Arrays, Case Ranges and More in the Linux Kernel

This article explains essential GNU C extensions used in the Linux kernel—including typeof, zero‑length (flexible) arrays, case range labels, designated initializers, variadic macros, function and variable attributes, built‑in functions, asmlinkage, and UL suffixes—showing why they matter and how to apply them safely.

AttributesC extensionsGNU C
0 likes · 13 min read
Mastering GNU C Extensions: typeof, Flexible Arrays, Case Ranges and More in the Linux Kernel
Liangxu Linux
Liangxu Linux
Jun 13, 2018 · Fundamentals

Master Enterprise-Scale Makefiles: Versioning, Libraries, and Build Automation

This tutorial presents a complete enterprise‑level Makefile example, detailing version numbering, dynamic library integration, macro definitions, include paths, compilation flags, output directory handling, and clean targets, while also showing the associated source code layout and how to retrieve the full project from the public account.

Build AutomationCDynamic Library
0 likes · 6 min read
Master Enterprise-Scale Makefiles: Versioning, Libraries, and Build Automation
Architecture Digest
Architecture Digest
Oct 31, 2016 · Fundamentals

One Week with Elixir – Language Design Reflections

Over the course of a week, the author explores Elixir’s design and features—covering its pipe operator, sigils, macro quoting, version handling, and differences from Erlang—while reflecting on language ergonomics, code readability, and functional programming concepts illustrated with concrete code examples.

ElixirErlangPipe Operator
0 likes · 21 min read
One Week with Elixir – Language Design Reflections