Live data from Hacker News

Show HN: Simulating 20M Particles in JavaScript

dgerrells.com

61–70 of 73 posts

Re: Show HN: Simulating 20M Particles in JavaScript

#61
post #50
post #49

Earlier quoted context omitted.

i wonder if simd is working. that would be cool.

If I understand the build process correctly... It should be on systems support WebAssemblySIMD, like Chrome's V8.

yes, but does it actually work end to end and actually deliver meaningful speedups that make it actually useful?

Re: Show HN: Simulating 20M Particles in JavaScript

#62
post #19

Earlier quoted context omitted.

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.

Not being a frontend dev, I have no idea how to even start making something like that. Are there some frameworks that make interactive simulations like that easier to make, or do you just do it the hard way?

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.

https://jason.today/falling-sand

Re: Show HN: Simulating 20M Particles in JavaScript

#64

Earlier quoted context omitted.

Not being a frontend dev, I have no idea how to even start making something like that. Are there some frameworks that make interactive simulations like that easier to make, or do you just do it the hard way?

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. https://jason.today/falling-sand

This is an amazing series. Love the style and incremental examples.

Re: Show HN: Simulating 20M Particles in JavaScript

#65

Earlier quoted context omitted.

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. https://jason.today/falling-sand

This is an amazing series. Love the style and incremental examples.

Wow thank you!

Re: Show HN: Simulating 20M Particles in JavaScript

#66

Earlier quoted context omitted.

Not being a frontend dev, I have no idea how to even start making something like that. Are there some frameworks that make interactive simulations like that easier to make, or do you just do it the hard way?

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. https://jason.today/falling-sand

Excellent, that does look quite approachable indeed. Thanks!

Re: Show HN: Simulating 20M Particles in JavaScript

#67
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?

Re: Show HN: Simulating 20M Particles in JavaScript

#68

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?

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 ...

Post reply on HN