Comment by s-macke
10 hours ago
Yes, you haven’t tried it. LLMs are actually awesome at deobfuscation, but terrible at obfuscation. They just can’t do it yet.
They also lack the creativity needed for those entries. Obfuscation is only one part of it. Coming up with the idea is another. Many entries also have special qualities that make them true works of art.
They should train on some of my colleagues code - they have an inate skill of turning anything simple and clear into a mindboggling mess
Lol you're so much smarter, nice
> They just can’t do it yet.
Have you tried it or are you guessing this?
Yes, I’ve tried it. For example, this was my winning entry from a year ago [0]. The LLM only performs trivial obfuscation, not advanced transformations.
For example:
can be transformed into:
An LLM will do this if you explicitly ask it to, but not on its own.
[0] https://github.com/ioccc-src/winner/blob/master/2024/macke/p...
One of the main instruments of obfuscation (and the way to get more out of the size constraints) is making the code as short as possible, so in that example you'd prefer
EDIT: Oops, confused the original with x==2 || x==3. Instead, we can use !(x-1>>1), which precedence rules parse as !((x-1)>>1).
3 replies →
Not sure what you mean by advanced transformations but I got these versions from ChatGPT without explicit instructions.
1 reply →
But then we all know that LLM has come a long way since one year ago.
Are you sure they still can't do it?
1 reply →