NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Resident Evil 4 (GameCube) – complete byte-identical decompilation to C/C++ (github.com)
wk_end 9 minutes ago [-]
From a preservation perspective, this is one of the least useful decomps ever, given how committed Capcom is to making sure RE4 is ported absolutely everywhere (kidding!)

Made using the leaked debug build and its symbols, which shows how meaningful the work the game preservation community that acquires and distributes these things is.

OTOH this is pretty off-putting:

> Where the compiler needed a particular source shape to reproduce a register choice or a schedule and no natural spelling was found, the construct is marked with a // COMPILER-DIFF: comment (644 of them: dead tests, empty asm("") launders and anchors, register T x asm("rN") pins, padding statements).

To me the value of a decomp isn't reproducing the original bytes per se (we already have the original bytes after all) - it's about reconstructing the understanding of the original game as represented by human-readable source code; getting byte-for-byte is just an indication that you've gotten it right. Needing to add a bunch of slop to force the compiler to match the original output is actually just an indication that you've gotten it wrong - and it's a demonstration of the danger of Goodhart's law, especially as it applies to AI.

Pannoniae 1 minutes ago [-]
Correct, this is just hacks for stuff you didn't manage to match exactly. Either that or your build environment isn't the same. Sadly, there are things which aren't really possible to reproduce in a byte-identical manner, things like exact file layout or variable declaration order, compilation order and that kinda stuff. And they might cause small but equivalent changes like different inlining/optimisation decisions, so it's really tricky to get it byte-exact.
18 minutes ago [-]
ricardobeat 6 minutes ago [-]
“byte-identical” is one of Claude’s favorite expressions
Tiberium 3 minutes ago [-]
The whole readme is extremely Claude-written, its dense Claudish style leaks from every sentence ;)
davikr 10 minutes ago [-]
How many tokens and which models were used?
sick_of_slop 2 minutes ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 18:32:15 GMT+0000 (Coordinated Universal Time) with Vercel.