Tag
Lemire shows how to beat compilers at signed 32-bit integer division by constant using a 64-bit 33-bit multiplier trick, avoiding the correction term GCC/LLVM emit, with benchmark latencies across modern CPUs.
Copper is a minimal, low-level programming language designed as a simpler alternative to C, featuring OOP and generics with a focus on explicit, easy-to-understand syntax. It is released under the BSD license.
博客文章讨论计算中读写操作的不对称性,解释缓冲 I/O、块设备对齐以及错误处理如何打破 read/write 系统调用表面的对称性。
The author explains the common mistakes when iterating backwards in C and presents the clean idiom `for(size_t i = count; i--; )`, which avoids signed-index and wrap-around pitfalls, especially as LLM-generated code repeats the buggy versions.
A blog post introducing a new fast algorithm for signed 64-bit floor division by compile-time constants, benchmarked 10–20% faster than existing approaches on ARM and ~5–10% faster on most x86 cases, along with a copy-paste code generator and a critique of how compilers and libraries handle floor division.
一篇博客深入逆向分析 macOS 上的 `gcc` 二进制文件,揭示它并非简单的 clang 别名,而是通过 libxcselect 的 xcselect_invoke_xcrun() 调用 xcrun 来转发到真实的开发者工具。
Futhark 博客解释了有符号整数除法中 x/-1 溢出(最小负数无对应正值)导致的极端罕见 bug,以及为修复它在编译器中引入的性能开销与取舍。
Raymond Chen 解释了为什么 x86 需要专用的 ud2 指令而不是用 int 6 来触发未定义指令异常:int 6 是陷阱(报告下一条指令地址)而 #UD 是故障(报告出错指令地址),且操作系统会禁止用户态调用 int 6 以免混淆 #UD 处理程序。
A 2014 blog post by L. Pereira exploring increasingly optimized ways to convert integers to strings in C, comparing naive division-based approaches, an in-place reverse-free variant used in Lwan, and Facebook's pair-of-digits lookup table trick that roughly halves the number of divisions for a ~31% speedup.
A blog post explaining the problems of NUL-terminated strings in C and introducing a small single-file C library that provides str_view and str_owned structs for safer, more efficient string handling.
一篇技术博客,介绍如何利用浮点数指数相当于对数这一特性,用 AVX2 浮点指令实现可向量化的 clz(前导零计数)和 ctz(尾随零计数)多播(polyfill),并在 Haswell/Alder Lake 上给出优于标量版本的性能数据。
Raymond Chen explains why compilers emit int3 versus ud2 for unreachable code: int3 marks padding where no code should exist (invalid function pointers), while ud2 marks paths that violate language-level undefined behavior.
Vincent Bernat explores how to efficiently map IPv4 addresses to IPv6 in Go's netip.Addr, comparing a standard library addition, an unsafe helper, and hacking the Go compiler to optimize the netip.AddrFrom16(ip.As16()) pattern that maintainers prefer.
A hobbyist developer builds a self-written Forth programming environment for the Soggy-1000, a DIY Sega SG-1000 clone, as part of RetroChallenge 2026/10. The project aims to provide a low-level, copyright-free interactive development system that can live in the console's onboard ROM.
The article surveys the state of SIMD support in Rust in 2026, discussing advancements in SIMD libraries and implementation details.
A project called BootLife implements Conway's Game of Life in a 512-byte x86 boot sector, using VGA memory for the simulation grid.
A developer created Idle, a statically-typed, low-level Lisp for WebAssembly GC with interesting features like O(1) method lookups and macros loaded from Wasm modules.
This tutorial demonstrates how to create minimal ELF executables on Linux using assembly code and optimization techniques to reduce file size.
The author implemented YOLO26n model inference from scratch using ARM64 assembly language without any external frameworks, demonstrating low-level AI inference techniques.
A tutorial on building a virtual machine using the C programming language, covering low-level systems concepts.