frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I wrote a CHIP-8 emulator in my own programming language

https://github.com/navid-m/chip8emu
19•pizza_man•1h ago

Comments

azhenley•56m ago
I wish there was a writeup about the emulator. I did find the documentation for the language: https://spectre-docs.pages.dev

Over 900 commits and 400k loc to Spectre in less than 3 weeks has me thinking this is all AI.

pizza_man•48m ago
I'm not really big on blogging, but I'll write a summary of what I did, since this post seems to have gained some attention.

This is a rewrite of an emulator I wrote in Nim called Cemu, you can find the original over at https://gitlab.com/navid-m/cemu, it adds several features to the original version, including CPU speed changing with Y and H keys and a better control mapping, since the CHIP-8 ASDF controls were cumbersome for game ROMs like space invaders. It was also done as a practice to test the language for more practical applications that would involve external C libraries, in this case SDL2.

The rewrite was a good stress test for a few areas of the compiler I hadn’t exercised before, like FFI ergonomics, global handling and tooling ergonomics. Most of the core emulator logic stayed fairly close to the original, though the surrounding infrastructure (input handling, rendering loop, and timing) is cleaner and more robust now.

Overall, it’s still a fairly small project, but it served its purpose well in validating that the language can handle something more substantial, while also exposing a few rough edges that need smoothing out.

I'll address the AI claim too since you added that sneakily after I responded, I don't know where you got the number of lines from, but chances are you're taking into account the sxc.ssa file, which is just the auto-generated QBE SSA bootstrap file from the compiler, used by the install.sh script so that people can install the compiler from source without needing a prebuilt binary for their platform. No, it's clearly not AI, and if you're hellbent on saying it is, I challenge you to write any Spectre code with AI, the AI will be useless.

alfanick•55m ago
Seems like (AI-slop)^2. Or someone very smart, wasting their skills.
pizza_man•46m ago
It's neither. Kind of like your comment, which isn't worth a quarter of the page it's written on.

Satoshi Nakamoto: 'The best outcome is that no one ever finds out'

https://english.elpais.com/economy-and-business/2026-04-19/satoshi-nakamoto-the-reclusive-billion...
1•geox•52s ago•0 comments

Are developers burning out faster than ever? (survey)"

https://docs.google.com/forms/d/e/1FAIpQLSdu-1Sa6oPvhDtFtBuKEgeQ-xIUMTjGdtfRwVLJGibhJUAmOg/viewform
1•rechargedaily•1m ago•1 comments

The Invisible Migration from Nation-States to Stateless Nations

https://medium.com/discourse/the-invisible-migration-from-nation-states-to-stateless-nations-687b...
1•simonebrunozzi•4m ago•0 comments

Sardine Scam or Delicious Novelty?

https://ecency.com/hive-150329/@leaky20/sardine-scam-or-delicious-novelty
1•randycupertino•5m ago•1 comments

The State of Streaming Codecs 2026

https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=173838
1•breve•6m ago•0 comments

Ask HN: Is giving AI agents DB access the new BI-tool problem?

1•vira28•8m ago•0 comments

Louisiana Advances One of the Country's 'Cruelest' Anti-Homeless Bills

https://www.commondreams.org/news/louisiana-homeless-bill
3•MiguelX413•9m ago•0 comments

RustNet – A cross-platform network monitoring tool

https://github.com/domcyrus/rustnet
1•martinlofgren•16m ago•0 comments

What's that "structured" in Structured Concurrency?

https://macguru.dev/whats-that-structured-in-structured-concurrency/
1•ingve•16m ago•0 comments

Nevada police may be tracking your phone's location without a warrant

https://apnews.com/article/nevada-police-fog-data-cellphone-location-tracking-ab6f7d75864cf0bfb94...
2•breve•17m ago•0 comments

Islamic Medicine (2018)

https://hekint.org/2018/11/19/islamic-medicine/
2•debo_•20m ago•0 comments

Intel Is Making Progress. But It Isn't Out of the Woods Yet

https://www.wsj.com/finance/stocks/intel-is-making-progress-but-it-isnt-out-of-the-woods-yet-f69c...
2•Brajeshwar•22m ago•0 comments

I don't care that it's X times faster

https://tinkering.xyz/faster/
3•RohanAdwankar•24m ago•0 comments

Robot breaks human world record for half-marathon in China

https://www3.nhk.or.jp/nhkworld/en/news/20260419_13/
2•baal80spam•25m ago•0 comments

Bringing the Power of the Sun to Earth: Nuclear Fusion Reactors

https://www.simonsfoundation.org/2026/02/18/bringing-the-power-of-the-sun-to-earth/
2•ganitam•26m ago•0 comments

Egypt's Forgotten Industrial Revolution

https://lostfutures.substack.com/p/egypts-forgotten-industrial-revolution
2•Lost-Futures•26m ago•0 comments

Swiss authorities want to reduce dependency on Microsoft

https://www.swissinfo.ch/eng/swiss-ai/swiss-authorities-want-to-reduce-dependency-on-microsoft/91...
23•doener•27m ago•1 comments

The time when we suffer from large amounts of AI slop is gone

https://lists.haxx.se/pipermail/daniel/2026-April/000153.html
5•jicea•29m ago•0 comments

Yoshihisa Kishimoto (1961 – 2026), creator of Double Dragon and Kunio-kun

https://old.reddit.com/r/NintendoClassics/comments/1sp8dao/in_tribute_to_yoshihisa_kishimoto_1961...
3•alberto-m•31m ago•0 comments

A trainspotter's dream: our own station on England's most scenic railway

https://www.ft.com/content/999edf24-3737-44ba-8ecb-57baa6493a27
2•bwb•33m ago•1 comments

The Weird, Dangerous, Isolated Life of the Saturation Diver

https://www.atlasobscura.com/articles/what-is-a-saturation-diver
3•thunderbong•34m ago•0 comments

Autoloom – Autonomous AI Agent built on tinyloom

https://github.com/thresher-sh/autoloom
3•rmason•35m ago•0 comments

Self-improving Artificial Intelligence (2007) [video]

https://www.youtube.com/watch?v=omsuTsOmvsc
3•downboots•35m ago•0 comments

George McGovern: On Taxing and Redistributing Income (1972)

https://www.nybooks.com/articles/1972/05/04/george-mcgovern-on-taxing-redistributing-income/
3•mitchbob•37m ago•1 comments

The making of a search engine: A conversation with the creator of Tantivy

https://www.paradedb.com/blog/tantivy-interview
4•philippemnoel•38m ago•0 comments

AI Assistance Reduces Persistence and Hurts Independent Performance

https://arxiv.org/abs/2604.04721
3•yagyu•40m ago•0 comments

Iron Galaxy Studios Lays Off Staff, Blames "Current Market Conditions"

https://www.techpowerup.com/348330/iron-galaxy-studios-lays-off-staff-blames-current-market-condi...
4•mikhael•43m ago•0 comments

Stop trying to engineer your way out of listening to people

https://ashley.rolfmore.com/stop-trying-to-engineer-your-way-out-of-listening-to-people/
2•walterbell•44m ago•0 comments

What Anthropic's Mythos and Project Glasswing Mean for Your Apple Devices

https://tidbits.com/2026/04/09/what-anthropics-mythos-and-project-glasswing-mean-for-your-apple-d...
2•JumpCrisscross•44m ago•0 comments

How the JVM Optimizes Generic Code – A Deep Dive [video]

https://www.youtube.com/watch?v=J4O5h3xpIY8
2•pron•46m ago•0 comments