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.
Software developers often struggle to optimize core implementations like Python sorting and garbage collection due to a lack of real-world data.
Synthetic benchmarks fail to predict actual performance, leaving maintainers to rely on rare, anecdotal reports of catastrophic failures. The difficulty of obtaining production-grade data makes iterative improvements challenging and highlights the instability of performance heuristics.
Using Micropolis source code and gym-city experiments, the author reverse-engineers SimCity’s scoring.
Perfect-score cities reach roughly 12–16k residents through low taxes, minimal roads, rails, and public services, while population-optimized designs exceed 700k at lower scores. Key exploits include unemployment bonuses, fountain-based crime reduction, land-value overflow, and pollution averaging.
Whistleblowers from Meta and TikTok allege that these social media giants prioritize engagement over user safety.
Internal research shows that algorithms leverage outrage to drive usage, leading to the proliferation of harmful content. Despite company denials, insiders claim that competitive pressures, particularly against TikTok, have compromised safety protocols and resource allocation, leaving users, especially children, vulnerable.
Okmain is a Rust and Python library that extracts visually pleasant dominant colors from images.
Unlike standard 1x1 resizing which produces muddy results, it uses K-means clustering in the Oklab color space. Key features include spatial weighting to prioritize image centers and SIMD optimizations for high-performance processing.
Finding all regex matches has always been O(n²)
Artificial Intelligence · Algorithms · Programming Languages
Existing regex engines struggle with finding all matches in linear time, often defaulting to O(n²) complexity due to redundant scanning.
The new RE# engine solves this by using a two-pass approach that identifies match starts and ends efficiently, maintaining POSIX leftmost-longest semantics and offering a 'hardened' mode to guarantee linear-time execution against adversarial inputs.
A combinatorial optimization framework selects residue moduli and low-precision GEMM constructions to emulate FP64 matrix products efficiently.
Extending Ozaki scheme II to a unified family covering INT8, FP8, FP6, and FP4, it minimizes GEMM counts for any format, accumulator, and inner dimension and derives family-wide lower bounds. On current GPU formats, it produces the first FP6 schemes, a more efficient FP8 scheme, and a provably minimal FP4 scheme within a stated modulus range. On three Blackwell GPUs, these schemes outperform native FP64 by up to 83x on B300.
TALA (Terrastruct's AutoLayout Algorithm) is now open-source under MPL-2.0 and bundled with D2 v0.9.0.
Its orthogonal layout targets software architecture diagrams, supports pinned or hybrid node positioning, and routes connections for agentic workflows. Tradeoffs include randomness, weaker DAG layouts, and nonlinear runtime growth on large diagrams. Try it with --layout=tala or play.d2lang.com.
A Three.js liquid-foundation effect combines a Stable Fluids velocity map with fragment-shader rendering.
A height map stores liquid thickness, which is moved by backward advection; an alpha map preserves traces using historical maxima; and normals derived from neighboring heights drive Matcap shading without deforming geometry. The method favors appearance over physical accuracy, so volume is not conserved, especially in curved strokes. 32-bit textures smooth shading, and separate maps enable colored-liquid mixing.
GLMap published earstrip, an ISC-licensed C++ header and WebAssembly/npm polygon triangulator compatible with earcut’s arguments.
Replacing constrained Delaunay with optimized ear clipping—using reflex-vertex lists, convex shortcuts, triangle strips, spatial buckets, branchless tests, and marked-hit filtering—triangulates 3.74 million map polygons in 489 ms on one M4 Pro core, versus 2.93 seconds. It is 14% faster than earcut.hpp natively and 1.4–2.1 times faster than earcut.js in browser use, with Delaunay fallbacks for difficult geometries and many holes.
Canonical engineers used the TLA+ formal specification tool to analyze a 16-year-old WAL checkpoint concurrency bug in SQLite.
By modeling SQLite's operations and comparing them to dqlite, they confirmed that dqlite is immune to this specific data corruption issue because its architecture inherently serializes write and checkpoint operations, preventing the identified race condition.
An investigation of Knuth’s multiprecision Algorithm D finds a decades-old correctness bug: using a full two-limb quotient in odd bases can leave the trial quotient oversized after two corrections.
The smallest counterexample is base 3. LLVM’s implementation has a stale comparison typo but remains correct; the post also previews faster division methods.
sameshi.h is a minimal chess engine implemented in C, utilizing a 120-cell mailbox board and Negamax search with alpha-beta pruning.
Despite missing complex rules like castling or promotion, it achieves approximately 1170 Elo through material-based evaluation and capture-first move ordering, as validated by 240 games against Stockfish.
Soksolv is presented as the strongest published Sokoban solver, solving more levels than rivals across the Large and Open Test Suites, including 24 world-first automated solves, while taking about 3.2× less aggregate time on shared levels.
Its Go implementation uses bidirectional search, FESS, novelty search, deadlock pruning, factoring, relays, and concurrent forward/backward lanes sharing positions. It stays within 15 GB and eight cores, and was developed through Claude Code with roughly 430 subagents and 15,000 vCPU-hours of research and benchmarking.
Anthropic’s proof that VP≠VNP implies the permanent cannot be computed by arithmetic circuits of polynomial size using only addition and multiplication, unlike the determinant, which Gaussian elimination computes in polynomial time.
The permanent is the determinant’s subtraction-free analogue and is hard to compute even for 0–1 matrices (#P-complete). Thus, if P=NP, any efficient permanent algorithm would need a Boolean-operator trick beyond these arithmetic circuits.
NP-hardness is widely misunderstood as practical impossibility.
While worst-case inputs can cause exponential blowups, real workloads often avoid them, and heuristics or improved algorithms frequently deliver optimal or scalable solutions. Dependency resolution, type checking, scheduling, Traveling Salesman, and SAT/SMT demonstrate this; Amazon reportedly solves a billion SMT problems daily. Timeouts handle failures.
This article discusses an efficient, GPU-friendly procedural erosion technique for generating virtual landscapes.
Unlike resource-heavy simulations, it uses custom noise patterns—specifically stacked sine-wave stripes—to create realistic branching gullies and ridges. This filter can be applied to any height function, offering a fast, chunk-friendly solution for rendering expansive, detailed terrains with enhanced control over peaks, valleys, and drainage patterns.
Show HN: An agent skill that optimizes code with falsifiable hypotheses
Artificial Intelligence · Algorithms · Performance · Computer Science · AI Agents
Agentic Algorithm Engineering (AAE), a Claude Code and Codex skill from Heidelberg University, autonomously optimizes existing code through a cycle of falsifiable hypotheses, analysis, minimal Git patches, experiments, and correctness checks.
Reported results include 8.9× faster VieCut, 3.9× faster KaHIP kaffpa, and 3.0× faster Hochbaum’s pseudoflow, while preserving validated outputs or quality. Each accepted change produces a reviewable numbered patch and the session generates a PDF report; one KaHIP session ran 122 experiments and accepted 41 patches.
RE# is a new general-purpose regex engine built in F# and presented at POPL 2025.
It reintroduces boolean operators (intersection, complement) and context-aware lookarounds while maintaining O(n) search-time complexity. Utilizing Brzozowski derivatives, minterm compression, and lazy DFA construction, it outperforms traditional engines on large-scale benchmarks and provides reliable security against ReDoS attacks.
A New Way to Think About Borrow Checking (In Reverse)
Algorithms · Low-Level Programming · Programming Languages · Computer Science
Valen introduces an experimental borrow checker whose safety-checking phase walks functions backward, unlike Rust’s forward conflict checks.
After static typing and static grouping identify each reference’s variable or path, the reverse pass tracks pending future uses: MUTATE must not invalidate them, and DECLARE satisfies them. Loop handling records mutations and revived references. The approach simplifies last-use tracking, handles loops naturally, and may be faster, though benchmarking and support for control-flow interruptions, closures, and other features remain incomplete.
Stephen A. Weis reports factoring RSA-896 with Claude on September 19, 2026.
The post publishes the 896-bit RSA challenge number and two prime factors, p and q, whose product equals RSA-896, documenting a notable AI-assisted cryptographic computation.