Show HN: Simulating 20M Particles in JavaScript (opens in a new tab)dgerrells.com
561 pointsHad some fun with shared array buffers over many months of free time.
Skip to the end to play around with the final app.
Open to ideas on how to simulate more whilst staying in js land.

Comments (70) 25 threads
Show all comments
Showing thread 1 of 25
(You might want to pick a value that runs reasonably well on old phones, or have it adjust based on frame rate. Alternatively just put a some links at the top of the article.)
See https://ciechanow.ski/ (very popular on this website) for a world-class example of just how cool it is to embed simulations right in the article.
(Obligatory: back in my day, every website used to embed cool interactive stuff!)
--
Also, I think you can run a particle sim on GPU without WebGPU.
e.g. https://news.ycombinator.com/item?id=19963640
That blog is amazing. Each example is so polished. I love it.
edit: I tried adding an embedded version but the required headers didn't play well with other embeds. The older versions are all still stuck in codesandboxes.
Interactive thingywotsits may slow down individuals making posts, but there are a lot of individuals out there.
Are there some frameworks that make interactive simulations like that easier to make, or do you just do it the hard way?
https://jason.today/falling-sand
Continue this thread — 1 reply