Lightning Talk: A Compiler Optimization and the 2-Adic Numbers
summary
Shows a concrete algorithm that computes reciprocals via a Newton half-iteration that contains no division, implements two concrete code paths (double for 1/3 and unsigned integers for -3) and measures that each iteration doubles the number of correct bits. Demonstrates that the integer version exhibits 2-adic convergence — a variable becomes divisible by larger powers of two — explains why compilers replace division with a precomputed “magic” multiplier in pointer arithmetic, and shows both implementations work but converge in different number systems.
AI-written summary · about
related talks
23mEfficient Dual-Numbers Reverse AD via Well-Known Program Transformations
16mWhat About the Integer Numbers?
01h 12mLightning Talks by Simons Institute Fellows
21mNavigating the Frontier of EDDO-Based Accelerators: Programming and Code(…)
58mPortable floating-point calculations
32mBit-Stealing Made Legal: Compilation for Custom Memory Representations of Algebr...
15mCoarsening Optimization for Differentiable Programming
15mSealing Pointer-Based Optimizations Behind Pure Functions
