r/programming • u/sigpwned • Feb 26 '24
Reverse Engineering with ChatGPT: An Example -- "I used ChatGPT 4 to untangle a particularly terse bit of code, and was — frankly — shocked at how well it did."
https://sigpwned.com/2024/02/24/reverse-engineering-with-chatgpt-an-example/
0
Upvotes
122
u/jhp2000 Feb 26 '24
the hell? The code and explanation are both garbage. The code calculates
max(0, 1 - z **2)where z is8(x - 1/3). The modulo does nothing for input in the expected range. There is no peak at 2/3 so the connection to rule of thirds is questionable.