Hacker News new | ask | show | jobs
by healeycodes 13 days ago
Author here. The owner of sokobano.de/wiki/index.php?title=Solver_Statistics is currently independently verifying the performance of my solver (and the early signs look good)!
3 comments

"I think in this agentic age of software, you have to want the goal as much as the agent. Yes, anyone can build software. But you need to care about it, you need to love it. The human focus and effort remains." Great quote
Really cool work and great post! Brings back fond memories of playing this as a kid!

I got curious about how well it would perform if ported to C#, as I've been getting some great results porting and optimizing C/C++/Rust code to C# lately.

If you're interested, here's my take (built with Sonnet 5.5):

https://github.com/theolivenbaum/soksolv

Took some ideas on optimizing memory usage from chess solvers. Probably applies to the original Go code if you want to port it upstream.

The benchmark is still running, but the results so far look quite promising:

Go: Solved 1,927 in 1269s

C#: Solved 2,365 in 382s

The timings are for boards solved by both, and so far the C# version is showing roughly a 3x speedup over the Go implementation, while also solving more boards (running for a 10s time limit - I'll run it afterwards matching the 20s time limit to see).

I wonder if you are aware of the MAP-Elites algorithm? The animation in the FESS section looks like that algorithm, except it's search priority instead of priority to select a gene to mutate.

On second thought, it could also be just be me having read too many papers about quality-diversity and now I see it everywhere. There clearly are measures for diversity for the purpose of search, but there isn't an "elite" solution in every bin that gets search priority like in MAP-Elites, I guess... or maybe there is?