Lurker News
Had 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

Earlier comments
purple-leafy1 reply#
Such a clever fellow.

How does one get this good with understanding hardware level details like L1 caches and the software implications?
I graduated as an Electrical Engineer, moved into Software for career. Feel like I’m missing some skills.
Specifically how can I better understand and use:
- the chrome Profiler? It’s scary to me currently. - Graphics programming - Optimisiations?

tripzilch#
About caches, the main important thing is to know they exist. Which you do know now :) The general idea of cache is exactly how he explains it in the article, and is useful to know about as a general concept. Note that the very hardware specific bit of info that the M1 chip has a "chungus big" cache is not mentioned until very late in the article, which I didn't know yet either.

I'm not super skilled at the chrome profiler either, it seems to be suited better for certain tasks than others, but I might just be doing it wrong ...

Seb-C#
Nice article.

I have done a somewhat similar experiment a while ago and achieved to fit quite a lot of particles with a basic physics simulation.
https://github.com/Seb-C/gravity

pdsouza#
Love 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. Looking forward to more posts!
llmblockchain#
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.

Load more comments