bourgoisloic
Ask HN: 2020, a broken year. A golden year?
89 days ago, predictions were made for the coming decade: https://news.ycombinator.com/item?id=21941278How true are they still ?What do you believe will happen ?I imagine some kind of therapy by confinement. A person is locked (with their consent) in a small room, in which we find many art supplies: music gear, brushes and paint, cooking ingredients, clay, a computer for all digital creation,...
I don't have solid metrics, but using only JS for a previous attempt, I couldn't have 8 points running smoothly [2]. Now it works with 500[3].
I'm not sure whether it's because I have a better understanding of the problems now or just because Rust/wasm is way faster, but what is sure is that Rust makes it easier to write performant code, even if it's harder to learn at first.
[1] https://github.com/loicbourgois/gravitle#learn-more
[2] https://loicbourgois.github.io/treeminor/demo/heart
[3] https://loicbourgois.github.io/gravitle/playground.html?test...
Drag is computed[2] for all the particles using something similar to the Drag equation[3].
Also, like electricslpnsld said, having a small enough time step helps.
[1] https://github.com/loicbourgois/gravitle/blob/master/fronten...
[2] https://github.com/loicbourgois/gravitle/blob/master/src/par...