frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Writing a "clear room" Z80 and Spectrum emulator with Claude Code

https://antirez.com/news/160
20•antirez•1d ago

Comments

rjh29•1h ago
No Carmack or Stallman. Just the right person at the right time.
marcus_lam•1h ago
The "clear room" framing is the most interesting part of this to me. It's essentially using the AI as a way to rebuild something from spec without looking at existing implementations, which has legal implications for emulation but also tells you something about the model's capabilities.

If Claude can produce a working Z80 emulator from documentation alone, it means the model has internalized enough about processor architecture, instruction sets, and timing behavior to reconstruct a functional implementation. That's qualitatively different from pattern-matching on existing emulator code.

From antirez's writing what comes through is that the value isn't "AI wrote my code" — it's that AI made it practical to attempt a project that would have been a multi-week time investment as a weekend experiment. The bottleneck for many side projects isn't knowledge or skill, it's calendar time. Compressing that changes what's worth attempting.

lazide•28m ago
Except the AI was trained - by looking at the implementations? Or do you think Claude never saw the implementations in its training set?

Because that is exceptionally unlikely.

ralferoo•1h ago
The problem is that it will have been trained on multiple open source spectrum emulators. Even "don't access the internet" isn't going to help much if it can parrot someone else's emulator verbatim just from training.

Maybe a more sensible challenge would be to describe a system that hasn't previously been emulated before (or had an emulator source released publicly as far as you can tell from the internet) and then try it.

For fun, try using obscure CPUs giving it the same level of specification as you needed for this, or even try an imagined Z80-like but swapping the order of the bits in the encodings and different orderings for the ALU instructions and see how it manages it.

dist-epoch•1h ago
If you did that, comments would be "it's just a bit shuffle of the encodings, of course it can manage that, but how about we do totally random encodings..."
ralferoo•46m ago
That's true, but I still think it'd be an interesting experiment to see how much it actually follows the specification vs how much it hallucinates by plagiarising from existing code.

Probably bonus points for telling it that you're emulating the well known ZX Spectrum and then describe something entire different and see whether it just treats that name as an arbitrary label, or whether it significantly influences its code generation.

But you're right of course, instruction decoding is a relatively small portion of a CPU that the differences would be quite limited if all the other details remained the same. That's why a completely hypothetical system is better.

dist-epoch•1h ago
> I believe automatic programming to be already super-human, not in the sense it is currently capable of producing code that humans can’t produce, but in the concurrent usage of different programming languages, system programming techniques, DSP stuff, operating system tricks, math, and everything needed to reach the result in the most immediate way.

As HN likes to say, only a amateur vibe-coder could believe this.

Zafira•54m ago
It is really quite something how many people that have earned credibility designing well-loved tools seem to be true believers in the AI codswallop.
avadodin•1h ago
So what you're saying is that it's not just the machine-readable documentation built over decades of the officially undocumented behavior of Z80 opcodes—often provided under restrictive licenses—it's also the "known techniques and patterns" of emulator code—often provided under restrictive licenses.
airza•34m ago
You use clean room everywhere in the article and clear room in the title. Is this on purpose?
lazide•28m ago
Literally nothing about it is either, either.
rustyhancock•13m ago
Yes for a moment I thought clear room might mean something else for LLMs.

Essentially they can't do clean room anything!

You might as well hire the entire former mid level of a businesses programming team and claim it's clean room work

steve1977•11m ago
Windows NT is not VMS! Trust me!
rustyhancock•6m ago
Had to Google this but I do love a deep cut reference!

https://www.itprotoday.com/server-virtualization/windows-nt-...

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
1892•qwertox•11h ago•1008 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
228•moultano•6h ago•89 comments

The normalization of corruption in organizations (2003) [pdf]

https://gwern.net/doc/sociology/2003-ashforth.pdf
56•rendx•4h ago•13 comments

Julia: Performance Tips

https://docs.julialang.org/en/v1/manual/performance-tips/
53•tosh•3d ago•32 comments

What Claude Code chooses

https://amplifying.ai/research/claude-code-picks
427•tin7in•16h ago•175 comments

80386 Protection

https://nand2mario.github.io/posts/2026/80386_protection/
70•nand2mario•2d ago•13 comments

The Origins of Agar

https://www.asimov.press/p/agar
26•surprisetalk•3d ago•3 comments

AirSnitch: Demystifying and breaking client isolation in Wi-Fi networks [pdf]

https://www.ndss-symposium.org/wp-content/uploads/2026-f1282-paper.pdf
357•DamnInteresting•18h ago•168 comments

Ubicloud (YC W24): Software Engineer – $95-$250K in Turkey, Netherlands, CA

https://www.ycombinator.com/companies/ubicloud/jobs/j4bntEJ-software-engineer
1•ozgune•1h ago

What does " 2>&1 " mean?

https://stackoverflow.com/questions/818255/what-does-21-mean
292•alexmolas•14h ago•157 comments

Layoffs at Block

https://twitter.com/jack/status/2027129697092731343
720•mlex•13h ago•779 comments

Working on Pharo Smalltalk: BPatterns: Rewrite Engine with Smalltalk Style

http://dionisiydk.blogspot.com/2026/02/bpatterns-rewrite-engine-with-smalltalk.html
5•mpweiher•1h ago•0 comments

Parakeet.cpp – Parakeet ASR inference in pure C++ with Metal GPU acceleration

https://github.com/Frikallo/parakeet.cpp
57•noahkay13•6h ago•12 comments

Writing a "clear room" Z80 and Spectrum emulator with Claude Code

https://antirez.com/news/160
21•antirez•1d ago•14 comments

I rendered 1,418 confusables over 230 fonts. Most aren't confusable to the eye

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
62•paultendo•1d ago•27 comments

Launch HN: Cardboard (YC W26) – Agentic video editor

https://www.usecardboard.com/
118•sxmawl•15h ago•63 comments

OsmAnd's Faster Offline Navigation (2025)

https://osmand.net/blog/fast-routing/
175•todsacerdoti•15h ago•55 comments

An Introduction to the Codex Seraphinianus, the Strangest Book Ever Published

https://www.openculture.com/2026/02/an-introduction-to-the-codex-seraphinianus.html
74•vinhnx•3d ago•15 comments

Show HN: As Level Chemistry Lab Simulator

https://github.com/nsriram/chem_lab
6•sriram_iyengar•3d ago•2 comments

Museum of Plugs and Sockets

https://plugsocketmuseum.nl/index.html
125•ohjeez•3d ago•49 comments

I baked a pie every day for a year

https://www.theguardian.com/lifeandstyle/2026/feb/22/a-new-start-after-60-i-baked-a-pie-every-day...
274•NaOH•3d ago•178 comments

BuildKit: Docker's Hidden Gem That Can Build Almost Anything

https://tuananh.net/2026/02/25/buildkit-docker-hidden-gem/
184•jasonpeacock•20h ago•64 comments

Palm OS User Interface Guidelines (2003) [pdf]

https://cs.uml.edu/~fredm/courses/91.308-spr05/files/palmdocs/uiguidelines.pdf
184•spiffytech•17h ago•91 comments

Show HN: Hacker Smacker – Spot great (and terrible) HN commenters at a glance

https://hackersmacker.org
124•conesus•2d ago•140 comments

Understanding the Go Runtime: The Memory Allocator

https://internals-for-interns.com/posts/go-memory-allocator/
73•valyala•3d ago•11 comments

Hydroph0bia – fixed SecureBoot bypass for UEFI firmware from Insyde H2O (2025)

https://coderush.me/hydroph0bia-part3/
59•transpute•12h ago•1 comments

Show HN: Linex – A daily challenge: placing pieces on a board that fights back

https://www.playlinex.com/
71•Humanista75•2d ago•20 comments

This time is different

https://shkspr.mobi/blog/2026/02/this-time-is-different/
167•speckx•20h ago•298 comments

Two insider cases we've recently closed

https://news.kalshi.com/p/kalshi-trading-violation-enforcement-cases
29•fortran77•8h ago•59 comments

Show HN: Deff – Side-by-side Git diff review in your terminal

https://github.com/flamestro/deff
106•flamestro•16h ago•59 comments