What to do on Covid-19 lockdown? Let's start learning Go!
I had previously implemented a A n-body solution in Ruby . However, I was never really happy with the performance. Especially when running the inner solar system simulation, it would make the CPU on my laptop really pant.
Other improvements over the Ruby version are the use of sprites to draw the planets (and maybe one of the reasons it is faster), trying to improve O(n^2) by using goroutines, elimination of some ui cruft.