Recent stories
Each story's summary, with the places it was discussed.
Summaries are written by AI from the linked sources. Open the source for full context.
Zig replaced its floating-point parsing and formatting implementation with fp, based on the algorithms from Russ Cox’s research and extended to arbitrary float types.
It uses 64-bit and 128-bit engines, formats f64 about twice as fast as ryu and parses large floats dramatically faster than std, while producing smaller binaries. fp adds full-precision output and case options for special values, passed extensive fuzz and conformance testing, fixes several issues, and was merged into master.
An experimental miniflags format encodes recognizable country flags as compact variable-length bitstreams.
It uses Huffman trees for common aspect ratios, colors, palette sizes, and layer properties, then renders decoded data as SVG. Average definitions use 76 bits (12 Base94 characters); 128 flags work, while 67 fail due mainly to coats of arms, glyphs, text, and unsupported geometry.
Floe explains using bloom filters, probabilistic data structures that efficiently speed up SQL queries by filtering non-matching rows before decompression.
By implementing a fixed-size 256KB filter with two bits stored in a single uint32, they reduced false positive rates by 2x (11.7% to 5.7%) with negligible performance costs, significantly optimizing database join operations.
Halfspace is an experimental, open-source IDE for solid modeling with distance fields, built around the Fidget kernel.
It combines primitives and scripts with incremental visualization, exposes field behavior to diagnose discontinuities, and exports images or triangle meshes. A Rust, egui, wgpu, and Rhai stack delivers GPU-accelerated rendering across native and web platforms, while driving Fidget’s performance and architecture improvements.
This project explores an experimental simulation of emergent complexity inspired by Paul Cousin’s research on Graph-Rewriting Automata.
By utilizing specific local topological rules, the system demonstrates how complex global patterns can arise from simple structural transformations. Unlike traditional cellular automata which operate on static grids, this approach employs dynamic graphs where nodes and edges evolve based on rewriting logic. This simulation serves as a bridge between computer science and mathematical theory, offering insights into how self-organizing systems function within computational frameworks. The work highlights the potential for non-linear growth and structural evolution in distributed systems and algorithmic design.
Bridson’s algorithm efficiently generates Poisson disk samples—random points separated by a minimum distance—using a grid and active list, avoiding costly rejection sampling.
Parental angle constraints and nonuniform radial sampling improve density and speed, while variable distances enable stippling. PixelPie enables GPU parallelism. Mitchell’s newer method provides maximal, uniform, deterministic 2D sets without rejection sampling, at greater complexity.
Herbie is a tool designed to identify and fix inaccuracies in floating-point arithmetic.
By analyzing mathematical expressions, it provides more accurate and sometimes faster alternatives by handling issues like cancellation and overflow. It allows developers to optimize core algorithms by replacing inefficient code with improved, numerically stable versions derived through automated analysis.
Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC
Algorithms · Performance · Rust · Software Architecture · Computer Science
warpspec is an open-source tool that compiles TLA+ specifications into fixed-size, bit-packed no_std Rust state machines for exhaustive model checking on NVIDIA GPUs or multicore CPUs.
It matches TLC’s state counts, depths, and verdicts while greatly reducing dynamic-value overhead: an RTX 5090 checks PaxosCommit’s 1.36 billion states in 3.65 seconds, 4,600× faster than TLC. It currently requires fixed-shaped models, fits all state data in RAM or VRAM, and supports GPU safety checking but not liveness.
Choosing QuePaxa, an unusual consensus algorithm
Algorithms · Backend · Distributed Systems · Software Architecture · Computer Science
Cloudflare chose QuePaxa for Meerkat, an experimental global consensus service whose replicas maintain an ordered event log.
Unlike leader-dependent Raft or Paxos variants, QuePaxa uses an optional leader, randomized proposal priorities, recorder majorities, and cooperative adoption, allowing progress through latency spikes, disconnections, and leader failures without fault detection. It offers a one-round-trip leader fast path and slower fallback rounds. Global evaluations showed Meerkat continued processing requests without stalling, though throughput temporarily declined after leader failure.
Tech industry expert Russ Cox presents a new, highly efficient algorithm for floating-point to decimal conversion using unrounded scaling.
By simplifying the scaling process into a single 64-bit multiplication in many cases, this implementation achieves performance that surpasses established algorithms like Ryū, Dragonbox, and Grisu3. The post provides concrete Go implementations and formal proofs that ensure the precision and speed required for production software, with plans for the code to ship in Go 1.27.
A study of over 30,000 participants shows that humans are surprisingly efficient at solving 'Coverage Path Planning' problems, mirroring computer heuristics.
Success depends not on how much time is spent thinking, but on strategically applying cognitive effort at decision-making forks to avoid backtracking, using decomposition to manage complexity.
PR #27210 adds adaptive MTP to llama.cpp via `--spec-type draft-mtp-adaptive`.
A hysteresis state machine adjusts draft depth using consecutive full accepts and weighted drop pressure, bounded by configurable minimum and maximum values. On Qwen3.8-27B, coding throughput reached 86.4 tokens/s versus 78.8 at fixed depth 3, while prose gains were minimal.
Python’s IDNA 2003 implementation used str.lower() with the interpreter’s current Unicode data, rather than the required Unicode 3.2.0 case-folding rules from StringPrep.
This could produce incorrect domain-name encodings and constitutes CVE-2026-17084. Python now adds targeted exceptions to restore RFC 3454 compliance; users should generally prefer the idna package for IDNA 2008.
The article compares bitmap atlases, SDF, MSDF, tessellation/Rive, and Slug for GPU text rendering.
Slug analytically computes coverage from Bezier outlines in the fragment shader, avoiding atlases and per-frame tessellation while remaining sharp under arbitrary scale and perspective. MSDF remains a strong baked-atlas default. Slughorn is a C++20 implementation that also supports general vector paths.
Google researchers released Apache2-licensed open-source C++ code for a portable SIMD Quicksort that sorts numeric arrays up to 10 times faster than C++ std::sort.
Using Highway, compress-store and permute techniques, it supports six instruction sets across x86, Arm and RISC-V, reaching about 1 GB/s and outperforming architecture-specific algorithms.
Regex Chess: A 2-ply minimax chess engine in 84,688 regular expressions
Artificial Intelligence · Algorithms · Programming Languages
Nicholas Carlini created 'Regex Chess,' a project that plays chess exclusively using a sequence of 84,688 regular expressions.
By implementing a custom branch-free, SIMD-like instruction set, he developed a regex-based CPU emulator. This system processes move generation, board evaluation, and mini-max search in parallel, optimizing execution through symbolic compilation and clever regular expression design.
An unconditional, zero-error Las Vegas algorithm on a fixed uniform classical multitape Turing machine computes the exact prime factorization of every integer N≥2 in worst-case expected time L_N[1/3,105] and deterministic workspace L_N[1/3,40].
It certifies every output factor with Agrawal–Kayal–Saxena primality testing and multiplication checks. The paper also claims a complete Mathlib-only Lean 4 formalization, produced by Cogentic using Gemini 4 without human interaction beyond the initial prompt.
The two-stack algorithm maintains sliding-window aggregates for associative operations without requiring an inverse.
It stores incoming values and their aggregate, while a second stack holds reverse cumulative aggregates for elements being removed; combining the two gives each window result in O(1) time. Rebalancing costs O(w) only periodically, yielding amortized O(1) per operation and O(w) memory. It supports minimum, quantiles, HyperLogLog, and more, while limiting NaN, infinity, and floating-point errors to windows containing them.
jevchat turns Jev into a chat model by repeatedly scoring possible next symbols and sampling from the resulting distribution.
It offers multiple alphabets, strategies, presentations, beam search, and live generation statistics through a Poetry-based CLI. Hypothesis presentation substantially improves accuracy, while offline tests cover the generation and HTTP layers; API costs remain impractical.
Hengefinder is a project that calculates when the sun aligns with city streets, creating 'Manhattanhenge' events.
By scaling coordinates for spherical geometry, implementing a custom binary search for sunset timing, and using a two-phase search to match solar azimuths with street bearings, the tool enables users to discover these rare alignment moments anywhere worldwide.