Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



I guess technically Kolmogorov complexity is an answer to their question since they said "describe" but I expect Waterluvian was thinking "measure" and you can't really measure Kolmogorov complexity for real programs. It is mostly useful for proofs or thought experiments.

You can try to measure Cyclomatic complexity, so that's more useful in practice.


If only someone posts tomorrow with somethhing similar to cyclomatic complexity.


Kolmogorov complexity is borderline useless if the idea is to describe code size or code complexity for humans, though. It only describes programs in terms of "what is the smallest (fully qualified) program that would generate something that ultimately leads to the original result", completely removing both the human, as well as the original code in question, from the equation.

And to make matters worse, we don't actually know how to calculate the true Kolmogorov complexity of anything because humans are notoriously bad at figuring out what "the smallest program" actually is, so it's a great device for reasoning about complexity, but it's a near useless device for determining actual complexity.


I agree with you and tialaramex above, and I was hesitating including it for this reason, but I think it is very useful as a thought experiment.

I find it a very elegant concept about complexity (even if not very practical), and wanted to share it regardless to be honest ;)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: