Hacker News new | ask | show | jobs
by pengowray 10 days ago
I agree with the sentiment, but there are competitions to do things with the shortest amount of code in other programming languages, and it does not lead to anything simple or understandable.
2 comments

Nice example with code golfing, indeed most code golfing code I've seen is awful :)
Code golfing often measures by character count or things like that, which leads to hard to understand results due to short symbol naming. This seems avoidable by measuring by something other than character count.

It also leads to hacks taking advantage of underlying hardware or runtime quirks, which are anything but easy to follow. I don't know Lean, but it seems like it wouldn't expose abstractions that would allow for these kinds of hacks either.

If there was a challenge that was something like "provide GRH in the fewest Lean symbols", that seems like it could produce comprehensible results.