News for hackers. Stuff that matters.
Re:Zelda: A Link to the Past (SNES) re-implemented in C by foxyv on Monday January 30, 2023 @02:35PM (#34585205)
I don't think that looks right. It looks like C code but mostly is just empty loops and missing references.

  for (i = 0; i < Square1Note; ++i) {
  // Output audio waveform data
  }
Re:Zelda: A Link to the Past (SNES) re-implemented in C by bhouston on Monday January 30, 2023 @02:51PM (#34585429)
As I said, it is calling subroutines in the code snippet I asked it to translate. I didn't include all of the subroutines. Thus it has stubs for those. To do this properly, you need to basically create a graph of all the subroutines and then ask it to translate the leaf nodes first and slowly work your way up to the root nodes, or something like that. ChatGPT has length limitations for each prompt so you need to have a strategy to overcome those.
Re:Zelda: A Link to the Past (SNES) re-implemented in C by foxyv on Wednesday February 01, 2023 @10:46AM (#34612107)
That's pretty cool. I wonder if it would work well paired with FernFlower to decompile and de-obfuscate Java byte code. I often find myself stuck with a JAR where the source was never pushed to GIT and have to re-create it from decompiled source.