Claude-written evolutionary algorithm breaks: RNG double overflow creates short cycle, workers idle forever
ssh4net · x · 2026-10-19
A RT of a debugging post: Claude-generated swarm/evolutionary code had a random number generator using double arithmetic that overflowed past 53 bits; with seed 9 it fell into a short cycle, so every bred child was a repeat, the main thread spun forever while eight workers sat idle, and the eight-survivor run never got past its first generation. Author laments "Claudeee... What are you doing!!" — a classic AI-generated-code bug case with juicy technical detail.
More from Fun
- Steve Jobs' 2010 'Thoughts on Flash' closing line: open standards like HTML5 will win — shauseth · 2026-10-19
- 'Prayer-based programming' emerges as AI coding's latest self-deprecating meme — lxfater · 2026-10-19
- Vibe coding a parent's TV: Claude Code strips 25 Xiaomi packages, kills boot ads — HarperSCarroll · 2026-10-19
- Job hunting in AI circles now has one requirement: bring your own Claude quota — yangyi · 2026-10-19
- Meta's ad AI "enhancements" mangle a tea shop's photos, and users can't turn it off — annetgriffin · 2026-10-19
- Explaining OCD to AI bros: mech interp your own reasoning traces — ChrisGPT · 2026-10-19