frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

A shower thought turned into a Collatz visualization

https://abstractnonsense.com/collatz/
90•abstractbill•5h ago

Comments

manwe150•4h ago
As for the randomness, I have wondered if Collatz sequences are somehow related to the properties of a common prng with multiplier 3/2, infinite length state vector, and mod 2 on the output with this formula: https://en.m.wikipedia.org/wiki/Linear_congruential_generato.... I assume this could be part of what makes the conjecture both interesting and difficult and beautiful.

Very cool to see there is some patterns hiding in the randomness too!

gpm•3h ago
> The points look quite uniformly distributed to me. If I squint, then maybe I can see some structure, but it's hard to describe and I could be imagining it.

It doesn't, these points look like what happens if you ask someone who doesn't know what a uniform distribution looks like to generate a uniformly distributed set of points though.

Here's what an actual uniform distribution looks like... much less "uniform": https://claude.ai/public/artifacts/00549caf-2ec1-4803-b909-6...

Credit to the book "Struck By Lightning" for making me aware of this fact, many years ago now. Disclaimer that the author is a family friend.

Edit: I misunderstood what was being plotted in the article, and as a result had claude plot random instead of evenly spaced X coordinates. It doesn't change my point, but this version has the appropriate distribution to compare to (evenly spaced x, uniformly randomly y coordinates): https://claude.ai/public/artifacts/a04a3023-25d3-4d99-889d-a...

willrftaylor•1h ago
For what it's worth, I thought "uniform" was a fine description - as you zoom out, the pattern looks more organised and less random. That is a property of uniform distributions.

https://bookdown.org/kevin_davisross/probsim-book/sec-linear...

pepinator•1h ago
Irrational rotations of a torus are uniformly distributed and closely resemble the image from the blog. The images you linked, on the other hand, are random sequences with positive entropy (which are also uniformly distributed). Confusing these two things is what happens when someone without the necessary expertise tries to sound smart.
WithinReason•36m ago
The author invented a new low discrepancy sequence generator
90s_dev•3h ago
> I've been telling people for years if businesses want employees to have better ideas, they should have more showers in their offices. So far everyone seems to think I'm joking. I'm not.

I have definitely noticed that some of my best ideas or breakthroughs come to me when showering, or sleeping, or eating, or driving, or doing the dishes, or basically any mundane autopilot task where my mind is free to wander. But yeah no, having a shower room in the office is both gross and weird. Maybe offices should.. encourage you to... wash some dishes?

gpm•3h ago
I've worked in an office with a very nice (clean, private, towels and soap dispensers provided) shower. Actually two (in separate rooms). And taken showers in them. It definitely was not gross, nor do I think anyone thought it weird, nor was I the only person who used them.

After a bicycle commute to work though, not randomly during the day.

90s_dev•3h ago
Depends. In skyscrapers with multifloor offices, sure. Regular small-ish offices, the showers would be too proximal for comfort.
gpm•3h ago
Still going to disagree... these are effectively equivalent to the bathrooms you would see in the average house. Designed for purpose of course (e.g. no tub, and a rack of rolled towels instead of a place to hang them).

If they were communal ones like you'd see in many gyms I'd see your point. Or if they weren't very well cleaned. But this was just... convenient and nice. Apart from enabling more active transport to work, I don't think anyone thought twice about them.

The office was technically multifloor, 2. Probably a few hundred people in the office on an average day (no clients, just employees). Solely in use by the company I was working for.

xigency•2h ago
Taking a wild guess, was this at Fog Creek / Stack Overflow?
gpm•2h ago
Nope, Bay Area not NYC.
amszmidt•2h ago
Sinks where you wash dishes tend to be far more dirty than any shower.

Having showers at work is awesome, it means you can take a proper bike ride to work, and freshen up.

willmarquis•2h ago
Interesting take. The visualization of the inverse tree highlights just how sparse the “preimage space” is under Collatz iterations. The idea that this sparsity contributes to the apparent randomness is compelling. I’m curious whether modeling the process modulo powers of 2 and 3, or via 2-adic analysis, could formalize some of these heuristic observations. Also, the assumption that most numbers “fall off” rapidly aligns with empirical behavior, but it’s still not clear how to bound exceptional trajectories.
uptownfunk•37m ago
Why hasn’t ai solved it yet

DDoSecrets publishes 410 GB of heap dumps, hacked from TeleMessage

https://micahflee.com/ddosecrets-publishes-410-gb-of-heap-dumps-hacked-from-telemessages-archive-server/
350•micahflee•5h ago•84 comments

I got fooled by AI-for-science hype–here's what it taught me

https://www.understandingai.org/p/i-got-fooled-by-ai-for-science-hypeheres
54•qianli_cs•1h ago•10 comments

The Windows Subsystem for Linux is now open source

https://blogs.windows.com/windowsdeveloper/2025/05/19/the-windows-subsystem-for-linux-is-now-open-source/
1246•pentagrama•14h ago•807 comments

Have I Been Pwned 2.0

https://www.troyhunt.com/have-i-been-pwned-2-0-is-now-live/
478•LorenDB•9h ago•151 comments

Making Video Games (Without an Engine) in 2025

https://noelberry.ca/posts/making_games_in_2025/
8•selvan•57m ago•1 comments

Jules: An Asynchronous Coding Agent

https://jules.google/
298•travisennis•9h ago•122 comments

What are people doing? Live-ish estimates based on global population dynamics

https://humans.maxcomperatore.com/
109•willbc•5h ago•29 comments

Zod 4

https://zod.dev/v4
661•bpierre•15h ago•193 comments

A shower thought turned into a Collatz visualization

https://abstractnonsense.com/collatz/
90•abstractbill•5h ago•14 comments

GitHub Copilot Coding Agent

https://github.blog/changelog/2025-05-19-github-copilot-coding-agent-in-public-preview/
400•net01•14h ago•236 comments

Ann, the Small Annotation Server

https://mccd.space/posts/design-pitch-ann/
23•todsacerdoti•3h ago•2 comments

Claude Code SDK

https://docs.anthropic.com/en/docs/claude-code/sdk
322•sync•12h ago•148 comments

Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript

205•bekacru•16h ago•80 comments

Show HN: A free, privacy preserving, archive of public Discord servers

https://searchcord.io
41•searchcord•3h ago•33 comments

Kilo: A text editor in less than 1000 LOC with syntax highlight and search

https://github.com/antirez/kilo
121•klaussilveira•10h ago•15 comments

Run GitHub Actions locally

https://github.com/nektos/act
217•flashblaze•3d ago•85 comments

Game theory illustrated by an animated cartoon game

https://ncase.me/trust/
261•felineflock•14h ago•43 comments

Memory Consistency Models: A Tutorial

https://jamesbornholt.com/blog/memory-models/
33•tanelpoder•5h ago•2 comments

A man who visited every country in the world without boarding a plane (2023)

https://www.theguardian.com/travel/2023/aug/16/take-the-high-road-the-man-who-visited-every-country-in-the-world-without-boarding-a-plane
37•thunderbong•2d ago•11 comments

The forbidden railway: Vienna-Pyongyang (2008)

http://vienna-pyongyang.blogspot.com/2008/04/how-everything-began.html
173•1317•12h ago•48 comments

Biff – a batteries-included web framework for Clojure

https://biffweb.com
22•TheWiggles•3h ago•1 comments

Terraform MCP Server

https://github.com/hashicorp/terraform-mcp-server
63•kesor•8h ago•13 comments

Remarks on AI from NZ

https://nealstephenson.substack.com/p/remarks-on-ai-from-nz
148•zdw•4d ago•74 comments

xAI's Grok 3 comes to Microsoft Azure

https://techcrunch.com/2025/05/19/xais-grok-3-comes-to-microsoft-azure/
122•mfiguiere•14h ago•111 comments

Patience too cheap to meter

https://www.seangoedecke.com/patience-too-cheap-to-meter/
38•swah•2d ago•14 comments

WireGuard vanity keygen

https://github.com/axllent/wireguard-vanity-keygen
77•simonpure•10h ago•11 comments

Too Much Go Misdirection

https://flak.tedunangst.com/post/too-much-go-misdirection
161•todsacerdoti•15h ago•78 comments

Dilbert creator Scott Adams says he will die soon from same cancer as Joe Biden

https://www.thewrap.com/dilbert-scott-adams-prostate-cancer-biden/
352•dale_huevo•13h ago•391 comments

Cleo, the mathematician that tricked Stack Exchange

https://en.wikipedia.org/wiki/Cleo_(mathematician)
9•schaum•1h ago•2 comments

Solving the local optima problem – NQueens

https://github.com/Dpbm/n-rainhas/blob/main/readme-en.md
6•ColinWright•3d ago•1 comments