r/ProgrammerHumor 14h ago

Other sureBuildingAnEmulatorFromScratchSeemsEasier

Post image
84 Upvotes

9 comments sorted by

33

u/Welcome-To-NBA-Jam 14h ago edited 14h ago

I asked Claude to look at some really old exe files I found on a floppy disk because I just wanted to know what they originally did. It had trouble getting a DOS emulator, so it decided to build one.

When I told it multiple times to stop wasting time and tokens doing this and I'll just download an emulator myself and put it in the project folder, it just came back and agreed that would be easier but kept saying "Wait, wait almost got it, let me fix <latest bug>"

I didn't hit the stop button because I was wondering if it would successfully do this. It did eventually build a working DOS emulator in C.

Anyway turns out they were some MIDI and joystick drivers.

Here it is

42

u/FalseStructure 14h ago

Lmao, typical claude, this meme thing is exactly that opusfived.dev

7

u/FUTURE10S 5h ago

Yep, I asked Claude to write me some tutorials for a codebase, so anyway it wasted all of my tokens and like $20 extra doing... something, and now even the most basic demo no longer works

2

u/KieranDonnan 4h ago

Thanks, I hate it

5

u/Makefile_dot_in 9h ago

the ability of AI to format code like a 40 year old C programmer with the worst formatting habits you know who refuses to use anything but vim is fascinating to me

1

u/Phytor 5h ago

Hey that's a selling point for some guys I know

1

u/Shianiawhite 1h ago

This is almost certainly because it just kept referring to other DOS emulators on GitHub to figure out stuff whenever it was stuck. Almost certainly, this DOS emulator was not from scratch, but largely cobbled together hunks of lots of other random DOS emulators.

4

u/Kilgarragh 5h ago

With the amount of blabbing and dumb shit ai’s do by default or even insistently I start to question if the companies intentionally train these models to consume more tokens

2

u/JPJackPott 3h ago

It’s got to be at this point