r/EmuDev • u/Schnitzelieferant • Nov 04 '26
Question Help, I think I have a problem.
So for context, I programmed relatively much in python and learned a bit c++. I wanted to make my first own Emulator, so I jumped right in. I found this guide, (https://austinmorlan.com/posts/chip8_emulator/) read it and after a bit of research immediately started coding. My problem now, is following: I have a history if using AI and not learning how to properly code on my own. It's not like a can't code, made a few games myself already. But I think I just dont have the ability to code by myself. This resulted in my basically just copying large chunks of the code and just like analysing them. Its not like I didn't learn anything (I think I learned quite a lot already) but I't just doesn't feel like my own work/my own interlect, which was what started to make me wanna do it in the first place. I also would say, that I have to google a bunch of the code, to "understand" it. I mean I understand the principles I have to use, but it feels like I cant apply them. I also did use AI about two times, but that was just to research something about how the code worked. I also tried to not look at the code instructions and come up with ideas by myself and that actually worked quite good I would say. I also write a bit of the code myself but alot of it is just copied and analysed by me afterwards. My question is, what do I do now? I surely dont want to quit my project, dont get me wrong it makes hella fun.
Yeah that's it from my side, sorry for the repeating Grammer and the kinda bad English, It's 0:40 am rn and Im hella tired.
4
u/hypersonicwilliam569 x86 is cool Nov 04 '26
Hmmm, I’d say try rewriting the parts you don’t know, so that you can understand them later :-)
11
u/khedoros NES CGB SMS/GG Nov 05 '26
Sounds like you've practiced more with reading code than writing code. You'll get better at writing code by...writing code. No AI. Do it yourself. Expect it to be frustrating, because it'll feel like you're stepping backwards.
2
u/vancha113 Nov 05 '26
What part do you get stuck at? I wrote a chip8 emulator too when i was learning rust, and i think it's actually a pretty good project to take on to tackle this sort of insecurity. You mentioned you plan on still continuing, why not drop the ai altogether? You can try out a bunch of things, if one potential solution gets you stuck, you can always throw it out and try something else.
3
u/SoftDream_ Nov 05 '26
Programming by hand without an LLM is like writing poetry.
Think of it this way: do you want to create a high-performance emulator for the latest consoles? Then go the brute-force route and use your own design ideas to build the best emulator on the market using AI
Or do you want to learn more about the world of emulation? What’s your goal? If programming is like a Sudoku puzzle to you (as it is for me, too), then don’t use an LLM and just have fun (no one would use an LLM to solve a Sudoku puzzle. they just wouldn’t do it)
If, on the other hand, you want to learn how to create emulators to improve your software design skills, then for the same reason, you shouldn’t use LLMs
The Chip8 is very simple; it was my first emulator. I learned to program in Rust thanks to that project. Close the ChatGPT app and start writing code. Are you stuck on a single line of code for an entire day? Rack your brain, find other solutions. it doesn’t matter if they aren’t good at first; you’re human, after all :)
This comment was automatically translated from Italian to English, but I wrote it myself
1
u/Gulrak 29d ago
Despite all that, the code from that tutorial is riddled with errors, out of bounds accesses wrong math opcodes, wrong timer handling, so, while it is a very nicely presented tutorial, it’s result will fail a bunch of tests of the CHIP-8 test suite (https://github.com/Timendus/chip8-test-suite) and thus is not even a good copying source. I really like the presentation, I just wish the implementation would be as good.
To avoid peeking at code, I would recommend a code-free tutorial like https://tobiasvl.github.io/blog/write-a-chip-8-emulator/ (I only disagree with its Fx1E box, but it is a good guide to be writing the emulator yourself.)
1
u/vizigr0u Nov 05 '26
One of my friends faced a similar problem and wrote prompts for something they were interested in building, with a few introduction topics, MCQ and then a program to "fill" in for the areas he wanted to learn. Can be unit tests to fix or on the contrary areas of code the AI wrote tests for so that you code in "TDD" (test driven). He gave specific instructions to never give answers or code in the areas he was learning, but to give hints and explanation as requested. Given the right instructions an LLM can be a great tutor to improve on areas that interest you. You can even start by asking it to quizz you so that it knows areas that you want or don't want to work on.