Sabby
Creative
particle simulation
SHOW HN2024
How HN took it
14 positive, 14 neutral or asking, 1 mixed, 4 critical, out of 33 comments about the project. Thread score +0.26.
Design: 5 for, 1 againstExecution: 3 for, 2 againstDocs: 3 for, 1 againstPerformance: 1 for, 0 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Impressive, fun to play with, and the writeup is excellent
From 3 comments
Seriously impressive engineering OP, thanks for the awesome writeup too. Looks like you've got a ton of fans now, well earned!
tired_and_awake on HNLove this. Enjoyed riding your train of thought from challenge conception through each performance pass to the final form. Surprisingly fun to play around with this sim too.…
pdsouza on HNThis is great work
dangoodmanUT on HN
Fluid-like visuals look organic and beautiful
From 2 comments
Wow, looks strangely organic, like lipid structures in primordial ooze.
bloopernova on HNWhoa this is like fine sand. Amazing!
shash7 on HN
Blog explanations are very clear and polished
From 2 comments
That's one of the best examples of an explanatory blog that I've ever seen. I wish that this would become the standard of which information was shared - if it's worth sharing,…
w_for_wumbo on HNNice! I'd suggest embedding the simulation in the blog. I had to scroll up and down for a while before finding a link to the actual simulation. (You might want to pick a value…
andai on HN
Objections
Codesandbox embeds do not work inline and require a separate tab with headers
From 2 comments
The videos look awesome but the "try it out here" codesandbox links don't work for me on MacOS Chrome desktop. I get 'Uncaught ReferenceError: SharedArrayBuffer is not defined'…
dado3212 on HNFor security reasons you cannot use some of the features in this code without setting a specific header (the blog mentions this). The sandbox has a button that's basically "Open…
pkilgore on HN
Strobing/flicker can be a health concern
From 2 comments
Might want a strobe warning. At least for Firefox and Chromium in Linux on a desktop it strobes heavily in the starting state.
int0x29 on HN"When run on something with low per pixel lighting it can flicker a bit due to how quickly the average light changes frame to frame" Not sure I understand. The flicker is not due…
lukan on HN
Hard to find the simulation link on the page; embed it in the blog
From 1 comment
Nice! I'd suggest embedding the simulation in the blog. I had to scroll up and down for a while before finding a link to the actual simulation. (You might want to pick a value…
andai on HN
Requests
Publish full source code to run locally
From 2 comments
Is the code available somewhere? I'd like to see the full code and run locally. It looks like the code sandbox isn't working anymore.
llmblockchain on HNAnyone else having trouble with that web vscode he's using?
lbj on HN
Embed the simulation in the article
From 1 comment
Nice! I'd suggest embedding the simulation in the blog. I had to scroll up and down for a while before finding a link to the actual simulation. (You might want to pick a value…
andai on HN
Use less memory per particle (Float16Array or packing)
From 2 comments
Random question (genuine, I do not know if it's possible): > I decided to have each particle be represented by 4 numbers an x, y, dx, and dy. These will each be 32-bit floating…
franciscop on HNAs you stated, Encoding/decoding would kill your performance. Float16Array would immediately halve your memory requirements Another possibility would be to have separate…
DrMiaow on HN
Questions
How to run the code locally
From 1 comment
Yeah, no idea how to run the code. There are links to the final demo at the end, but everything else just links to this editor :/
aap_ on HN
How Atomics relates to promises
From 1 comment
This is really awesome! I did have a question about this: > Javascript does support an Atomics API but it uses promises which are gross. Eww sick. With the exception of…
codelikeawolf on HN
How state persists when tab is backgrounded
From 1 comment
Inspiring tutorial! Does anyone know why/how it maintains state if you tab out? Does Chrome eventually try to clean up the cache or is it locked in?
thomasfromcdnjs on HN
Alternatives named
Ciechanow.ski interactive explanations
From 1 comment
Nice! I'd suggest embedding the simulation in the blog. I had to scroll up and down for a while before finding a link to the actual simulation. (You might want to pick a value…
andai on HN
Shadama2 particle simulations
From 1 comment
Almost 20 million particles: run and program the simulations https://tinlizzie.org/~ohshima/shadama2/ https://tinlizzie.org/~ohshima/shadama2/live2017/…
morphle on HN
Falling sand p5.js tutorial
From 1 comment
p5.js is a great medium. I did a short series in this style - you can inspect it to see full source (non minified / obfuscated) with some comments here and there.…
jasonjmcghee on HN