News for hackers. Stuff that matters.
Re:Metal Gear Solid 2's source code has been leaked on 4chan by diath on Sunday May 03, 2026 @03:15PM (#48000336)
Absolutely. This is just some delusions of a vibe coder at best. Not with just current generation of AI tools but essentially never. The conversion from C, C++, Rust or whatever, through post-processing (macros etc), through IR generation, through compile time optimizations, through link time optimizations, to the generated machine code is a one way street for low level languages. You can get a pretty close higher level approximation that matches the flow/logic/structure - but the code will never be anywhere near close to the original source code. I could write the same C++ program in 3 different ways and get identical assembly, how do you go back to the exact source? The answer is that you don't.

Here's the same simple program, written in 3 different ways, producing identical binary compatible code: https://godbolt.org/z/qWrc8fEnn

How does the AI know whether it should produce back the snippet #1, #2 or #3? It does not. It cannot.

Re:Metal Gear Solid 2's source code has been leaked on 4chan by CamperBob2 on Sunday May 03, 2026 @04:26PM (#48001083)
Who cares? Who said anything about recreating the exact code? You will get usable, compilable, and surprisingly readable source code, in your language of choice, that yields the functional equivalent of the binary.

Barring obvious edge cases that could show up but don't usually, like intentional race conditions. Timing is the one area where things get iffy.

Re:Metal Gear Solid 2's source code has been leaked on 4chan by wuschel on Sunday May 03, 2026 @05:33PM (#48001745)
That is quite incredible if that is true. Need to read a bit into that. Can you point towards relevant literature/examples? Also: please see my questions in the comment to your other reply
Re:Metal Gear Solid 2's source code has been leaked on 4chan by MarioMan on Monday May 04, 2026 @02:18AM (#48005242)
This blog post is a great starting point: https://blog.chrislewis.au/the-unexpected-effectiveness-of-o...
Re:Metal Gear Solid 2's source code has been leaked on 4chan by diath on Sunday May 03, 2026 @04:41PM (#48001252)
> Who said anything about recreating the exact code?

The person I'm replying to? Who said you will get the same code as if it were the original source?