News for hackers. Stuff that matters.
Re:Show HN: Self-Parking Car Evolution by trekhleb on Tuesday September 28, 2021 @12:39PM (#28684738)
Yes, currently the simulation performance is one of the biggest issues (https://github.com/trekhleb/self-parking-car-evolution/issue...). You may try to check the “Performance boost” checkbox that simplifies the geometry. It should give you approx x1.5 performance increase. But even with x1.5 boost the performance is still an issue, yes
Re:Show HN: Self-Parking Car Evolution by riboflavin123 on Tuesday September 28, 2021 @12:52PM (#28684877)
The page says:

> For better results, increase the population size to 500-1000 and wait for 50-100 generations

Do you have example output from that? I'd expect my computer to take months of running 24/7 to get there.

Re:Show HN: Self-Parking Car Evolution by trekhleb on Tuesday September 28, 2021 @12:58PM (#28684936)
Yes, you may press the "Restore Evolution" button (at the bottom of the screen) and then upload the pre-saved training checkpoints from here https://github.com/trekhleb/self-parking-car-evolution/tree/...

You may also press the "Restore Evolution" button and then press "Use demo checkpoint" to use some pre-trained data.

Re:Show HN: Self-Parking Car Evolution by andai on Tuesday September 28, 2021 @08:31PM (#28689060)
Does each visitor submit their dna back to the server? Using the power of the web this allows you to have as many "cores" as you have visitors, and train massively parallel!
Re:Show HN: Self-Parking Car Evolution by trekhleb on Wednesday September 29, 2021 @01:57AM (#28690706)
Currently all calculations are happening in user’s browsers - no sending to the backend.
Re:Show HN: Self-Parking Car Evolution by riboflavin123 on Tuesday September 28, 2021 @03:42PM (#28686613)
Oh, amazing. Thanks!
Re:Show HN: Self-Parking Car Evolution by criddell on Tuesday September 28, 2021 @01:54PM (#28685515)
Have you thought about a native version? I get the appeal of writing for the browser but it's so damned slow compared to what you could get natively.
Re:Show HN: Self-Parking Car Evolution by trekhleb on Tuesday September 28, 2021 @02:41PM (#28686015)
I haven’t thought about the native version, it was fun trying to implement it for browser. To resolve the performance issue I would try next to switch to the 2D simulation engine, since we don’t use the height during the parking. Getting rid of the 3rd dimension, lights and complex geometry would increase the performance drastically I believe
Re:Show HN: Self-Parking Car Evolution by andai on Tuesday September 28, 2021 @08:32PM (#28689068)
And then still render it in 3D, right? That's a really cool idea.
Re:Show HN: Self-Parking Car Evolution by trekhleb on Wednesday September 29, 2021 @01:59AM (#28690721)
Yes, training may happen pretty fast in 2D, but then applied to the 3D to final visualizations. But this is just an assumption. I haven’t tried this approach yet.
Re:Show HN: Self-Parking Car Evolution by criddell on Wednesday September 29, 2021 @08:32AM (#28692762)
https://rednuht.org/genetic_cars_2/ does something like this. You can turn off visualizations and let it run for a while then turn visualizations back on or replay the best result.
Re:Show HN: Self-Parking Car Evolution by athorax on Tuesday September 28, 2021 @03:05PM (#28686213)
Maybe you could have an option to not render all the generations and maybe only show the animation for the Nth run