frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Browser-based interactive 3D Three-Body problem simulator

https://trisolarchaos.com/?pr=O_8(0.6)&n=3&s=5.0&so=0.00&im=rk4&dt=1.00e-4&rt=1.0e-6&at=1.0e-8&bs...
133•jgchaos•19h ago•46 comments

Show HN: RowboatX – open-source Claude Code for everyday automations

https://github.com/rowboatlabs/rowboat
87•segmenta•16h ago•23 comments

Show HN: Guts – convert Golang types to TypeScript

https://github.com/coder/guts
88•emyrk•16h ago•22 comments

Show HN: A subtly obvious e-paper room air monitor

https://www.nicolin-dora.ch/blog/en-epaper-room-air-monitor-part-1/
52•nomarv•1d ago•20 comments

Show HN: I built a synth for my daughter

https://bitsnpieces.dev/posts/a-synth-for-my-daughter/
1251•random_moonwalk•6d ago•207 comments

Show HN: Lumical – scan any meeting invite into your calendar in seconds

https://lumical.app/
3•arunavo4•3h ago•2 comments

Show HN: Kk – A tiny Bash CLI that makes kubectl faster

https://github.com/heart/kk-Kubernetes-Power-Helper-CLI
2•nkheart•4h ago•0 comments

Show HN: Parqeye – A CLI tool to visualize and inspect Parquet files

https://github.com/kaushiksrini/parqeye
154•kaushiksrini•1d ago•35 comments

Show HN: ESPectre – Motion detection based on Wi-Fi spectre analysis

https://github.com/francescopace/espectre
201•francescopace•1d ago•50 comments

Show HN: Tokenflood – simulate arbitrary loads on instruction-tuned LLMs

https://github.com/twerkmeister/tokenflood
20•twerkmeister•6d ago•0 comments

Show HN: Continuous Claude – run Claude Code in a loop

https://github.com/AnandChowdhary/continuous-claude
160•anandchowdhary•3d ago•59 comments

Show HN: I released Steam utility "Sentinel Signal" to manage your gaming time

https://store.steampowered.com/app/3879010/Sentinel_Signal/
2•sentinelsignal•1h ago•0 comments

Show HN: Startup Simulator

https://startup-simulator-phi.vercel.app/
3•paperplaneflyr•7h ago•2 comments

Show HN: Reversing a Cinema Camera's Peripherals Port

https://3nt3.de/blog/reversing-fs7-comms
47•3nt3•1w ago•2 comments

Show HN: PrinceJS – 19,200 req/s Bun framework in 2.8 kB (built by a 13yo)

https://princejs.vercel.app
147•lilprince1218•1d ago•68 comments

Show HN: Kalendis – Scheduling API (keep your UI, we handle timezones/DST)

https://kalendis.dev
18•dcabal25mh•1d ago•8 comments

Show HN: My hobby OS that runs Minecraft

https://astral-os.org/posts/2025/10/31/astral-minecraft.html
14•avaliosdev•1d ago•3 comments

Show HN: Building WebSocket in Apache Iggy with Io_uring and Completion Based IO

https://iggy.apache.org/blogs/2025/11/17/websocket-io-uring/
29•spetz•1d ago•6 comments

Show HN: Bsub.io – zero-setup batch execution for command-line tools

22•wkoszek•1d ago•10 comments

Show HN: Octopii, a framework for building distributed applications in Rust

21•janicerk•1d ago•3 comments

Show HN: Unflip – a puzzle game about XOR patterns of squares

https://unflipgame.com/
178•bogdanoff_2•1w ago•52 comments

Show HN: We built a generator for Vue+Laravel that gives you a clean codebase

https://codecannon.dev/
5•codecannon•15h ago•2 comments

Show HN: Copus – Internet gem marketplace for bookmark collectors (x402-powered)

https://www.copus.network/
4•Handuo•16h ago•0 comments

Show HN: How are Markov chains so different from tiny LLMs?

17•JPLeRouzic•1d ago•1 comments

Show HN: Agfs – Aggregated File System, a modern tribute to the spirit of Plan9

https://github.com/c4pt0r/agfs
9•c4pt0r•1d ago•0 comments

Show HN: Strawk – I implemented Rob Pike's forgotten Awk

4•ahalbert2•20h ago•0 comments

Show HN: I have created an alternative for Miro

https://nodeland.io
8•gxara•1d ago•2 comments

Show HN: I am self-hosting a time-sorted list of top STEM, Arts and Design posts

https://limereader.com/
3•busymom0•17h ago•0 comments

Show HN: Model-agnostic cognitive architecture for LLMs

https://github.com/scottonanski/persistent-mind-model-v1.0
6•HimTortons•1d ago•0 comments

Show HN: DBOS Java – Postgres-Backed Durable Workflows

https://github.com/dbos-inc/dbos-transact-java
114•KraftyOne•5d ago•57 comments
Open in hackernews

Show HN: Browser-based interactive 3D Three-Body problem simulator

https://trisolarchaos.com/?pr=O_8(0.6)&n=3&s=5.0&so=0.00&im=rk4&dt=1.00e-4&rt=1.0e-6&at=1.0e-8&bs=0.15&sf=0&sv=0&cm=free&kt=1&st=1&tl=1500&cp=2.5208,1.5125,2.5208&ct=0.0000,0.0000,0.1670
132•jgchaos•19h ago
Features include:

  - Several preset periodic orbits: the classic Figure-8, plus newly discovered 3D solutions from Li and Liao's recent database of 10,000+ orbits (https://arxiv.org/html/2508.08568v1)
  - Full 3D camera controls (rotate/pan/zoom) with body-following mode
  - Force and velocity vector visualization
  - Timeline scrubbing to explore the full orbital period
The 3D presets are particularly interesting. Try "O₂(1.2)" or "Piano O₆(0.6)" from the Load Presets menu to see configurations where bodies weave in and out of the orbital plane. Most browser simulators I've seen have been 2D.

Built with Three.js. Open to suggestions for additional presets or features!

Comments

joshdavham•8h ago
Nice work!

Were you by any chance inspired to make this because of the three body series by Cixin Liu? Or were you moreso just inspired because the simulation/math/physics are interesting?

notaurus•8h ago
I think the URL is telling
authnopuz•7h ago
Nightfall by Asimov was a 7 bodies problem - https://en.wikipedia.org/wiki/Nightfall_(Asimov_novelette_an...
authnopuz•7h ago
And to be fair, Liu Cixin's book is a 4 bodies problem :)
Cthulhu_•2h ago
This made me irrationally annoyed, lol. But that was only the start (I've only seen the TV show though)
adastra22•1h ago
Seriously there was so much wrong with that book.
jgchaos•8h ago
Thanks! The Three-Body series definitely helped spark the idea, and the URL is a little nod to the books. I also took some simulation classes back in college, so the math and physics side pulled me in too. It’s crossed my mind that it could be fun to add a kind of Trisolaran mode that tracks a small planet and how habitable its position is throughout the orbits.
allemagne•7h ago
It was nice of you to add that stable era to the submission URL. It was good while it lasted. Oh well, Time to DEHYDRATE
TMEHpodcast•7h ago
This is really lovely work! Simple to use, surprisingly solid, and just a pleasure to poke around with. The fact it runs in the browser is a bit of magic on its own.

One idea for later might be a few preset systems, such as Alpha Centauri or other known three-body systems. It would give people a quick way to drop into something real before they start making chaos of their own.

Anyway, cracking project.

jgchaos•7h ago
Thanks so much, really appreciate it! I’ve been focusing the presets on stable or interesting solutions that aren’t tied to real systems, but adding a few real examples like Alpha Centauri would fit in nicely. I’ll keep that on the list for future updates.
jjmarr•7h ago
Is this with Gemini 3?
lutusp•5h ago
> Is this with Gemini 3?

An LLM couldn't provide results for a sim like this, compared to a relatively simple numerical differential equation solver, which is how this sim works. Unless you're asking whether a sim like this could be vibe-coded, if so, the answer is yes, certainly, because the required code is relatively easy to create and test.

Apart from a handful of specific solutions, there are no general closed-form solutions for orbital problem in this class, so an LLM wouldn't be able to provide one.

nhatcher•7h ago
This is amazing! Nicely done!

I did something similar, mostly 2D here:

https://www.nhatcher.com/three-body-periodic/

(Mine is just unfinished)

nhatcher•7h ago
I would be very curious to compare notes on the integrators you used. How good do they perform in general?

In the avobed shared you can go to the settings a pick an integrator. I did the integrators in wasm although I suspect js is just as fast.

Color me impressed! I love the ammount of settings you can play with. I still need to understand what happens whe yu add more bodies though.

jgchaos•6h ago
Thank you! Your 2D version is great, I love seeing how different people approach this stuff. As for integrators, I currently only have Velocity Verlet and RK4 (can change in the advanced settings). I started with just Verlet, but to get some of the presets to behave properly I ended up needing RK4 as well. I’ve been thinking about adding adaptive methods next, but I'll take a look at the methods you've got listed too. Everything is still running in plain JS for now. I started moving some of the work into web workers but haven’t finished that part yet.
saboot•3h ago
Symplectic integrators are the approach I used for some old galaxy simulations. Page 5 on the attached paper was my main reference, eq 22 https://arxiv.org/pdf/cond-mat/0110585 I believe this is used in several academic codes for long term N-body calculations.
sbinnee•7h ago
I really enjoyed the book series. This is an amazing work! Thanks for sharing.
kapitanjakc•7h ago
No physics expert but isn't this unpredictable (based on what I saw in series) ?

Amd this does seem predictable, I saw this for almost a minute

jgchaos•6h ago
The link points to one of the stable solutions, and there are actually quite a few of those. The problem is that there’s no general closed form that tells us exactly where the bodies will be in the future, so we rely on numerical methods to approximate the motion. If you hit Reset All a few times or add more bodies, you’ll start to see the chaos
Pulcinella•6h ago
There actually is an analytical solution using a power series that actually converges (Karl Sundman's work). Unfortunately, the universe still mocks our attempts. Though the series converges, it does so incredibly slowly. From Wikipedia:

The corresponding series converges extremely slowly. That is, obtaining a value of meaningful precision requires so many terms that this solution is of little practical use. Indeed, in 1930, David Beloriszky calculated that if Sundman's series were to be used for astronomical observations, then the computations would involve at least 10^8000000 terms.

Nevermark•3h ago
> the computations would involve at least 10^8000000 terms.

Well we could speed up that simulation pretty easily, just arrange the actual masses and velocities somewhere...

Then I thought, is there a way to scale the distances, masses and velocities to create a system with the same, but proportionally faster behavior?

One guess as to perhaps why not: As distances get small, normal matter bodies will get close enough to actually collide. Perhaps some tiny primordial black holes would be useful.

taneq•4h ago
When you say 'stable' here, do you mean 'periodic' or are these solutions actually stable in the face of small perturbations (as opposed to the sensitive dependence on initial conditions that we'd expect from a chaotic system)?
lutusp•5h ago
> No physics expert but isn't this unpredictable (based on what I saw in series) ?

A three-body orbital problem is an example of a chaotic system, meaning a system extraordinarily sensitive to initial conditions. So no, not unpredictable in the classical sense, because you can always get the same result for the same initial conditions, but it's a system very sensitive to initial settings.

> Amd this does seem predictable, I saw this for almost a minute

The fact that it remains calculable indefinitely isn't evidence that it's predictable in advance -- consider the solar system, which technically is also a chaotic system (as is any orbital system with more than two bodies).

For example, when we spot a new asteroid, we can make calculations about its future path, but those are just estimates of future behavior. Such estimates have a time horizon, after which we can no longer offer reliable assurances about its future path.

You mentioned the TV series. The story is pretty realistic about what a civilization would face if trapped in a three-solar-body system, because the system would have a time horizon past which predictions would become less and less reliable.

I especially like the Three Body Problem series because, unlike most sci-fi, it includes accurate science -- at least in places.

adastra22•1h ago
There are stable solutions. See: Earth’s Moon (or any other planetary moon in the solar system).
adastra22•1h ago
No, and please don’t try to learn anything from that science-free series. The author doesn't even have a Wikipedia-level understanding of what he is writing about.

N-body problems for N>3 do not have exact, closed form solutions. For N=2 the solution is an ellipse. For N=3+ there is no equation you can write down that you can just plug in t and get any future value for the state of the system.

But that is NOT the same as saying it is unpredictable. It is perfectly predictable. You just have to use one of the many numerical solutions for integrating ODEs.

buf•6h ago
I spent a long time playing with the sim. Nice work.

Most of the random data sets that I ran ended up with a two body system, where the third body was flung far into space never to return. However, some of these were misleading. I had one running for 15 minutes at 5x, and the third body did eventually return.

jgchaos•6h ago
It might be fun to add some kind of visualization showing when a body has enough energy to potentially escape the system.
pylotlight•5h ago
Question, can you mathmatically plot a trajectory across time X and energy required to see when it's met and how long it would take given a start position or something? Or is the simulation so complex that you can never project. Oh never mind I see answers to this elsewhere here, cheers.
lutusp•5h ago
> However, some of these were misleading. I had one running for 15 minutes at 5x, and the third body did eventually return.

That's not misleading. Real three-body orbital systems show this same behavior. Consider that such a system must obey energy conservation, so only a few extreme edge cases lose one of its members permanently (not impossible, just unlikely).

Ironically, because computer simulators are based on numerical DE solvers, they sometimes show outcomes that a real orbital system wouldn't/couldn't.

moi2388•4h ago
I don’t understand. How would energy not be conserved if one flew away? It’s not in the system, but it’s still out there?
Ethan312•6h ago
The 3D presets are the standout here, especially the ones that move in and out of the orbital plane. The interaction feels smooth, and it’s great to see this level of detail running in the browser.
lutusp•5h ago
> Open to suggestions for additional presets or features!

Anaglyphic (red/cyan) 3D rendering would be nice. I've created a lot of anaglyphic 3D apps over the years, but they're no longer very popular -- I suspect it's the goofy glasses one must acquire and wear.

But a true 3D view of an orbital simulator like this greatly increases its impact and tutorial value.

Mikhail_Edoshin•5h ago
I recently thought that if life supposedly happened by chance then it should be same for the three-body problem: naturally occurred solutions floating here and there somewhere.
adastra22•1h ago
There’s a big one in the sky right now - the Earth-Moon-Sun system.
2b3a51•1h ago
The relative scales might be a bit hard to put in the simulation. Roughly 400 to 1 for Earth-Sun to Earth-Moon. It would be fun to set that up and view from Earth and view from Sun though.
oskarkk•5h ago
Looks very nice!

I think I found a bug: after pausing, moving a body and unpausing, I cannot move the camera. Changing "follow" to something and back to "none" helps.

phkahler•4h ago
How about a perturb button so those special stable orbits can be nudged just enough to destabilize them.
drsopp•3h ago
It destabilized after a few minutes on my phone.
emmanueloga_•4h ago
Tried writing an electrostatic particle simulator in Turbo Pascal 7 with BGI as a teen, a handful of particles before it crawled. Then saw a galaxy collision sim on a CD-ROM magazine disc handling thousands of bodies smoothly. Thought it was assembly tricks.. now I'm sure it's algorithmic (avoiding N**2 runtime) but never dug into the specifics. Are charges vs gravity sims essentially the same n-body problem?
wcrossbow•3h ago
They might have been using the fast multipole expansion method
pixelpoet•2h ago
Super cool!

I've been working on some n-body code too, currently native only though: https://www.youtube.com/watch?v=rmyA9AE3hzM

chombier•1h ago
Nice! It would be interesting to visualize the total momentum vector, IIRC Verlet being symplectic should be good at preserving symmetries, whereas RK4 is good at conserving energy.
gorgoiler•1h ago
I didn’t realize something until I used this simulation: with three bodies you can eject one body in one direction and the barycentre of the remaining two in another. This means that compared to the original frame of reference you have an orbiting pair that moves.

It’s one of those things that seems so obvious and yet actually seeing it is a really important step in understanding.

brna-2•1h ago
Starting out with the stable preset I had no idea how hard it would be to not make a object slingshot out. But it is a really fun sim, I think I will let my kid play with it.
kona358•1h ago
fuck this is so cool. im currently reading deaths end from the three body trilogy and seeing the physical representation is so cool. Makes a certain moment in deaths end seem awesome.
thrance•9m ago
There is also this fun website: https://labs.sense-studios.com/threebody/index.html

Simulating a four-body problem from the point of view of a telluric planet being juggled around by three stars. It's supposed to emulate the evolution of trisolarans from the "Three Body Problem" novel by Liu Cixin.