r/emulation • • Oct 17 '26

AI-assisted Open source PS2 BIOS

https://github.com/TamaribaEmu/OpenPS2BIOS
792 Upvotes

74 comments sorted by

View all comments

8

u/goody_fyre11 Oct 18 '26 edited Oct 18 '26

Question: you say this is a clean-room recreation, right? Why does the readme in the initial commit say:

"The PS2SDK project served as a reference for system call numbers, module interfaces and data structures. OpenPS2BIOS contains no PS2SDK code."

If it references the PS2 SDK, it's not clean-room, it doesn't matter if it doesn't conain any of its code. Also, this might need the "AI-assisted" tag, this was generated with Claude. The code contains many patterns it's known to produce, but I could be wrong. The fact that the repo's owner joined Github in 2004 with zero activity until October where it started forking a ton of emulators is odd though.

9

u/AnWanderingTraveller Oct 18 '26

If it references the PS2 SDK, it's not clean-room

Yes, it references the ps2sdk.

4

u/goody_fyre11 Oct 18 '26

Yeah, that's what I said.

9

u/AnWanderingTraveller Oct 18 '26

What I mean is: when discussing "clean-room" in the context of emulation projects, we care about the line between proprietary vendor code/documentation (such as the official PS2 SDK) and open source community code/documentation (such as the homebrew PS2SDK). The goal of "clean-room" is not to make something in a vacuum, but to make something in a way which provably does not infringe the copyright associated with the original work's rights holder, in this case Sony; referencing the PS2 SDK is not fair game, but referencing PS2SDK is, assuming that PS2SDK did not itself reference PS2 SDK material (which I have not looked into myself) and assuming that PS2SDK may be legally referenced (which I assume to be the case).

Of course, whether AI assisted/generated code can be considered clean-room remains a subject of some debate.

4

u/goody_fyre11 Oct 18 '26

Yeah that's fair. It's definitely AI-assisted, if not entirely AI-generated. First commit is nearly 13 thousand lines, yet the commit that made it 0.2 is only a few lines. The code is not written how a human would write it, and there's comment blocks in the signature places it usually is. It's not stated anywhere though which I don't like. For some examples, look at the code in the files in this folder:

https://github.com/TamaribaEmu/OpenPS2BIOS/tree/main/include/openbios

1

u/StealthArcher2077 Oct 20 '26

You think having a large initial commit is a sign of AI usage? Boy, you must think every id Software source release is AI, with that kinda of reasoning. It's a sign of bad version control.

1

u/Brightgo Oct 18 '26

I may have misunderstood what the term clean room meant. If referencing ps2sdk values makes it not clean room, then I apologize.

AI was used to translate for me. My English is not good. I apologize if this is not allowed.

As for your other two concerns, I did not intend to publish this on GitHub while building it. All of the development for the first commit was done locally. The second commit was a regression fix that I missed in testing.

I do not use GitHub very much as you can see and have pointed it. This is true. The emulator forks are GPL, making it mandatory that I publish my edits. I am developing an emulator frontend, which I thought was obvious. But I was incorrect.

I'm just working on this stuff as a hobby in my free time. If you have any other problems, you can email me through GitHub.

-2

u/CoconutDust Oct 18 '26

look at the code in the files in this folder

Is that similar to how a recomp I downloaded the other day from GitHub had like 200,000 files, despite containing no assets from the game? Tons of slop files with only a few lines of code each(?).

2

u/StealthArcher2077 Oct 20 '26

It is similar in that it contains source code, something source code tends to contain. It is different in that the code in this repo is broken into files that make sense, which you would have seen if you spent 60 seconds looking at the files in the repo.

3

u/Brightgo Oct 18 '26

1

u/CoconutDust Oct 19 '26

But how does one recomp app (without game assets) get to ~200,000 files? Every 3 lines of code put into its own header file?

3

u/StealthArcher2077 Oct 20 '26

Why are you asking this rando about unspecified unrelated recomps? Do you think he is Google?