This article explains how GCC optimizes constant integer division by replacing it with multiplication and comparison using magic numbers, demonstrating a significant performance improvement over variable division. The technique is part of a series on the Number Field Sieve algorithm and includes code examples showing assembly-level optimizations.
A 172-line RISC-V RV32I emulator written in Nix executes real machine-code instructions during Nix evaluation, supporting integer arithmetic, branching, memory operations, and minimal I/O without external dependencies. The emulator includes sample programs like hello and fibonacci assembled with GNU binutils, with machine-code images provided as JSON arrays for direct execution.
An article explaining systematic techniques for generating cycle-exact delay sequences on 8-bit CPUs (6502, 6809, Z80, SM83, 8080, 6800). The author describes a general method using tight delay loops with the formula An + B, combined with lookup tables for remainders, to achieve precise timing for sound generation and graphical effects.
Facet-0 is a robotic foundation model designed for precise sub-millimeter assembly tasks, combining vision-language learning with reinforcement learning to predict contact outcomes and adapt to part-specific dynamics. Trained on 1,000 hours of force-synchronized data across multiple manufacturing systems, it achieves 82% success on assembly tasks compared to 15% for baseline methods, with 0.5mm accuracy and 50ms latency.