alt.hn

3/30/2025 at 7:44:55 PM

Show HN: Chip-8 emulator written in JavaScript

https://github.com/victorqribeiro/Chip8js

by atum47

3/30/2025 at 7:47:21 PM

Hi everyone, this was my first attempt at writing an emulator. I went with the Chip 8 cause it seemed to be the easiest one. I then used tiny.js to manage some aspects of the display; I was trying to emulate that glow from an old monitor

by atum47

4/3/2025 at 4:14:13 PM

Didn't you post this a few days ago?

by asciimov

4/3/2025 at 5:07:16 PM

Ah, CHIP-8, arguably the world's first fantasy console.

by bitwize

4/3/2025 at 6:05:40 PM

I'm just gonna come out and say it this ideia came from either Claude or ChatGPT. I thought the GBA was the easiest console to write an emulator for, but after talking to either one of those LLM I learned about Chip 8. All I wanted was to write an emulator that I could make some post processing on the output.

by atum47

4/3/2025 at 10:31:33 PM

What makes CHIP-8 great for babby's first emu is the fact that it's not a real CPU or system architecture; it's a VM to make video games for the Cosmac VIP 1970s hobbyist computer easy to write.

Don't worry about your use of an LLM. If it spits out something that gives you a holy-crap idea, that's great. Things get iffy when you lean on the LLM to do the work.

by bitwize

3/31/2025 at 5:16:45 AM

Nice work!

by ghffcvb

3/31/2025 at 3:32:32 PM

thanks

by atum47