so when do we get WebBLAS and WebFORTRAN? kinda joking, kinda not.
Actively in-progress, actually. [0] Since about 2016. [0] https://gws.phd/posts/fortran_wasm/
Show HN: Simulating 20M Particles in JavaScript
21–30 of 73 posts
Re: Show HN: Simulating 20M Particles in JavaScript
#22Re: Show HN: Simulating 20M Particles in JavaScript
#23Re: Show HN: Simulating 20M Particles in JavaScript
#24Nice! 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 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…
Re: Show HN: Simulating 20M Particles in JavaScript
#25Might want a strobe warning. At least for Firefox and Chromium in Linux on a desktop it strobes heavily in the starting state.
It depends on the display type. 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. Anything with local dim zones may struggle. I looked at ways to fix this but could not come up anything other than running a blur filter which ends up looking terrible.
Not sure I understand. The flicker is not due to sometimes the screen drawn with white(like I assumed) and just because of my mobiles light settings?
Other simulations similar to this, don't have this flicker on my devive.
(still impressive work, genuine question to avoid this effect in my experiements)
And no matter the technical reasons, for some people this might be a serious health issue, so a warming might make sense in the current state.
Re: Show HN: Simulating 20M Particles in JavaScript
#26Inspiring 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?
Re: Show HN: Simulating 20M Particles in JavaScript
#27Earlier quoted context omitted.
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, it's worth making it easy to understand.
I have done a few blog posts with interactive doodads like this. It takes a lot (like really a _lot_) more time to do, but I think it's the right way to go. There is so much noise on the internet caused by people casting their 2 cents into the void. 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?
Re: Show HN: Simulating 20M Particles in JavaScript
#28Re: Show HN: Simulating 20M Particles in JavaScript
#29Nice! 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 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…
Re: Show HN: Simulating 20M Particles in JavaScript
#30super cool! i'm thinking webgpu might be usable for a speedup, not sure if webgl would be