And things that play (humans), it's a useful diversion.
The sport gives you an incentive to learn a language, library, or algorithm more deeply and to discover new ways to think about how they work. It's very useful.
In current models, context is limited and attention is expensive, the shorter the code the more you can have in a given context window. Code golfing techniques could help a LLM see further within a given context window.
Part of the fun is also doing things you're not supposed to do. Not only does it become unreadable, but you often are abusing dark corners of the language and implementation.
I took that opportunity to learn a bit of assembly. I’m guessing it was 100 lines of code, COM size was ~100 bytes and it could do the whole test in less than 100ms. I got second place to a turbo pascal entry that had a much larger binary, took 5-10 seconds but it was maybe ten lines of very readable code.
Made me realize that folks really value readability (and to ask how metrics are weighted )
e: Autocorrect did the worst thing you could do to Barth's name.
You can mitigate the unreadability in many ways. For example c++ allows to generate magic numbers using constexpress, where the code itself is clear and human readable.
You can create a loop to calculate a lookup table and store it into a small number of uint64. The code shows what the magic numbers mean, and can be debugged.
Incidentally, in my experience, the strongest human competition usually is in Python.
Always do as much as possible at compile time, unless it bloats your binary size or makes things slower with cache misses.