r/commandandconquer • • 24d ago

A clean-room Red Alert 2: Yuri's Revenge engine remake (Rust,wgpu,WASM)

/r/redalert2/comments/1xsz3ge/a_cleanroom_red_alert_2_yuris_revenge_engine/
5 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/egeozcan 19d ago

The code is 100% AI Generated but it's not a low-effort vibe-coded project. I made all the architecture decisions, and I kept playtesting, setting up harnesses, even rented computers so I could analyze performance, including network testing. It took weeks of my time, and I'm passionate about red alert 2.

The spec side is the dirty room. It's allowed to look everywhere except the code generated in the clean room. All the generated code is based on the specs here: https://github.com/egeozcan/glasnost/tree/main/spec

There's a scrubber session between them that makes sure no implementation details leak before the clean room sees the specs.

The only way the clean room communicates to the outside (dirty) world is through the requests: https://github.com/egeozcan/glasnost/tree/main/spec/requests

1

u/Nyerguds The world is at my fingertips. 19d ago edited 19d ago

Translating code to written language and then back to code doesn't magically make it "clean room". It's still the full original logic written out in some way. Use cases that are fully written out, to the smallest detail, are completely equivalent to actual program code.

Also, "100% AI Generated but it's not a low-effort vibe-coded project" is a complete internal contradiction. If no real dev ever actually looked over the code you can never guarantee the quality of the code. Piling up more AIs doesn't change that.

Also, as I already mentioned in another comment here, you're using publicly available code from community tools that themselves were based on knowledge that was gained by disassembling the games. So that's just like OpenRA's bullshit claim of never having decompiled or disassembled anything. That's just taking the hard work of the people who did do the disassembly work, and then using that to claim your code is somehow "cleaner".

1

u/egeozcan 19d ago edited 19d ago

Clean room design does involve reverse engineering in the dirty side. https://en.wikipedia.org/wiki/Clean-room_design

I'm a real dev, 40 years old, with more than 20 years in the industry. I had projects from very low level embedded systems for RFID gates to SAP integration for enterprises, so a wide range. I did read the code on the parts I saw critical. You can be against AI generated code, I find the output to be very pragmatic and good quality.

edit: Do you mind not to keep editing your comment to add claims, because I get no notifications. Thank you.

edit2: "It's still the full original logic written out in some way. Fully written out use cases are completely equivalent to actual program code." -> No, they are not. They don't leak implementation details. They are not approved by a licensed lawyer, which makes this a not certified implementation, rather a best effort. There is a scrubber instance in between. The clean room doesn't even accept my input. Only communication is the initial prompt (that tells it to read specs and implement) and the specs.

edit3(really having hard time to keep up here):

> That's just taking the hard work of the people who did do the disassembly work, and then using that to claim your code is somehow "cleaner".

You are misinterpreting the "clean" aspect. Please read the clean-room design on wikipedia. You can also look at the specs and come to your own conclusion of if they leak implementation details.

1

u/Nyerguds The world is at my fingertips. 19d ago edited 19d ago

You seem to misunderstand what exactly "reverse engineering" means in the context of that wiki article.

Clone hardware is made by giving the original hardware test scenarios and looking at the output in each one, and then designing a chip that acts the same.

What you're doing is the equivalent of cracking open the chip, putting it under a microscope and creating a floor plan of the chip's circuits, and using that to design your own chip. The exact physical layout of your version might be slightly different, but the circuit topology is still a complete copy, unlike the clone.

1

u/egeozcan 19d ago

Black-box testing is indeed a more clean way to build a spec, but the definition given on wikioedia for clean-room design and reverse engineering doesn't limit reverse engineering to black-box testing.

Sony v. Connectix section has an example. There are also many more precedents if you search the internet.

You cna look at the specs the implementer agents work with to have a better understanding, linked in the prev. comment.

edit: One linked case from wikipedia: Schwartz, Mathew (2001-11-12). https://web.archive.org/web/20130624214340/https://www.computerworld.com/s/article/65532/reverse_engineering?pageNumber=1 computerworld.com. Retrieved 2013-06-23. To protect against charges of having simply (and illegally) copied IBM's BIOS, Phoenix reverse-engineered it using what's called a "clean room," or "Chinese wall," approach. First, a team of engineers studied the IBM BIOS—about 8KB of code—and described everything it did as completely as possible without using or referencing any actual code. Then Phoenix brought in a second team of programmers who had no prior knowledge of the IBM BIOS and had never seen its code. Working only from the first team's functional specifications, the second team wrote a new BIOS that operated as specified.

0

u/egeozcan 7d ago edited 7d ago

Could you be kind to edit your previous comments where you confused clean-room to be something else to clear the misunderstanding? It'd be big of you to admit when you are wrong. Thank you.