Codex builds a working NES Emulator in one hour
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hi folks! I know NES emulators have been implemented countless times, in practically every language imaginable.However, having an LLM fully replicate the spec purely from memory—without referencing existing code—is still a significant challenge. It requires the underlying model to have strong anti-hallucination capabilities and solid long-term planning to keep from going astray. Because of this, building an NES emulator makes for an excellent LLM stress test.Here is how the emulator was built:Data Gathering: I asked Codex to download the necessary developer manuals and test suites. It was strictly prohibited from searching for reference implementations online.Development: I instructed Codex to build the emulator until all test suites passed. This process was mostly hands-free; I only chimed in to encourage it to continue when it paused.First Draft: After just 4-5 prompts, Codex delivered a functional, pure-Python emulator—though it ran at a sluggish 7 FPS.Optimization: Asking Codex to optimize the app completely on its own didn't work this time. Instead, I had it generate a flamegraph, which identified the PPU update as the bottleneck. I then instructed Codex to rewrite the PPU in Cython without breaking the passing tests.Overall, I'm incredibly impressed by Codex. I already knew it was capable of the task, but the speed was astonishing. It finished the project in under an hour, using merely 2% of my weekly Pro quota.While the NES might be a relatively easy system to emulate, I think emulation could serve as a fantastic benchmark for testing future LLMs.
HN · launched Feb 26, 2026 · 6 upvotes (top 72%) · 3 views
Niche: video game console emulators · 100 launches, 7 in the last 7 days ▼ -67% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- AI-native
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 100 launches in video game console emulators →
Could you build this?
Yes Building an emulator for the well-documented NES architecture (6502 CPU and basic PPU/APU) is a classic programming challenge that AI assistants can readily generate.
Discussion
4 comments analyzed.
Concerns raised: Automating performance optimizations to match real hardware benchmarks is difficult, Platform-specific dependencies are a limitation
Feature requests: Linux emulator running on DART to eliminate cross-platform dependencies, Support for more complex emulation projects like PS1 in different languages
Competitors
Other products that read as similar to this one : 397 launches clear the similarity bar, closest 8 shown.
Attention rank: #312 of 398 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 120 days after the earliest competitor.
- 2d platformer game built with Codex (zero code) · hn · 2026-02-16 · 10 upvotes · similarity 0.50
- I'm tired of my LLM bullshitting. So I fixed it · hn · 2026-01-22 · 5 upvotes · similarity 0.50
- Python running on the Super Nintendo (in-browser demo) · hn · 2026-07-06 · 7 upvotes · similarity 0.49
- android-emulator-plugin · github · 2026-10-07 · 15 upvotes · similarity 0.46
- Our space game has a built-in RISC-V emulator that runs Linux · hn · 2026-10-02 · 94 upvotes · similarity 0.45
- I vibe-coded a custom WebGPU engine for my MMO · hn · 2026-02-23 · 5 upvotes · similarity 0.45
- Salsa64 · github · 2026-10-12 · 19 upvotes · similarity 0.45
- I wrote a custom assembler for CHIP-8 in C++ · hn · 2026-09-17 · 28 upvotes · similarity 0.44
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.