frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Arcade.js – Decompiling MAME ROMs into Idiomatic JavaScript with LLMs

https://github.com/qarl/arcade-js
2•qarl2•44m ago
arcade-js is an experiment in using an agentic harness to decompile ROM machine code.

A MAME ROM is a good candidate for porting — you can run it perfectly and capture its state. It is also a challenge — pure machine code running on odd hardware.

To get from machine code to readable JavaScript, we go through several stages:

1) Disassembly — pull the raw bytes apart into instructions and data.

2) Translation — rewrite it one instruction at a time into JavaScript that's provably identical to the original. We call this "assembly-JavaScript": it's JavaScript, but its shape is the assembly's.

3) State testing — run the assembly-JavaScript next to MAME and check that every register, every byte of memory, and the cycle count all track it. Not bit-perfect (real hardware has a CPU-vs-video-beam race we don't chase, etc.) but close enough to catch errors.

4) Decompilation — rewrite that assembly-JavaScript into real, idiomatic JavaScript.

5) Pixel testing — the idiomatic code no longer tracks registers or cycles, so we check the only thing that ultimately matters: the output.

6) Clarification — the surprise, where an LLM reasons about the code and its behavior to create human-readable JavaScript.

We point to two good examples of the technique: Donkey Kong (1981), because everyone has heard of it; and The Pit (1982), because no one has.

https://github.com/qarl/arcade-js/blob/main/games/dkong/idio...

https://github.com/qarl/arcade-js/blob/main/games/thepit/idi...

Note: the repo does not hold the original ROMs (which contain copyrighted artwork). If you want to actually play the games, you must provide your own.

Microchip Technology Signs Definitive Agreement to Acquire Hailo

https://ir.microchip.com/news-events/press-releases/detail/1406/microchip-technology-signs-defini...
1•muxamilian•1m ago•0 comments

Most Googlebots are fake

https://digitalseams.com/blog/most-googlebots-are-fake
1•Brajeshwar•2m ago•0 comments

BBC Micro AI Agent Experiment

https://www.dompajak.com/blog/bbc-micro-ai-agent/index.html
1•fidotron•2m ago•0 comments

Did OpenAI's New Model "Go Rogue"?

https://calnewport.com/did-openais-new-model-go-rogue/
1•skadamat•3m ago•0 comments

Show HN: Nostalgia – Windows 98

https://nostalgia-stilloo.zocomputer.io/
1•tsachin•3m ago•0 comments

Finding six Nginx vulnerabilities with open models

https://winfunc.com/research/endginx
1•mufeedvh•4m ago•0 comments

What policy makers need to know about AI safety and security

https://educatedguesswork.org/posts/ai-security-policymakers/
2•ibobev•4m ago•0 comments

To Database or Not to Database

https://glfmn.io/devlog/2026-07-26/
1•ibobev•5m ago•0 comments

Impressions of Teal

https://purplesyringa.moe/blog/impressions-of-teal/
1•ibobev•5m ago•0 comments

Trump administration Admits Canceling Grants to States That Did Not Vote for Him

https://www.nytimes.com/2026/07/24/business/trump-state-grants-canceled.html
4•xoa•6m ago•0 comments

Should You Microwave Salmon? (2024)

https://mollymogrenkatt.substack.com/p/i-tried-it-should-you-microwave-salmon
1•surprisetalk•7m ago•0 comments

Malbolge

https://en.wikipedia.org/wiki/Malbolge
2•tosh•7m ago•0 comments

We built a video ingestion pipeline for 60× scale headroom

https://codo.tech/blog/how-we-built-a-video-ingestion-pipeline-for-60x-scale-headroom/
1•qbllr_•8m ago•0 comments

Write the Documentation First

https://jrhawley.ca/2026/05/11/write-the-docs-first
2•speckx•8m ago•0 comments

We're open sourcing our privacy proxy CLI

https://blog.cloudflare.com/open-sourcing-our-privacy-proxy-cli/
1•soheilpro•8m ago•0 comments

The Year of Technoligarchy

https://www.citationneeded.news/the-year-of-technoligarchy/
2•mooreds•9m ago•0 comments

PostgreSQL's MVCC is bad. So is everyone else's

https://boringsql.com/posts/mvcc-bad-bad/
1•radimm•9m ago•0 comments

Anatomy of a Thin-Book Loss

https://brocode.rs/research/thin-book-loss/
1•desicne•9m ago•0 comments

Don't add PostHog to your codebase. Make AI do it for you

https://posthog.com/wizard
1•mooreds•9m ago•0 comments

DIY Home Solar System for under $5000

https://www.gavinmai.com/1736354308000-diy-home-solar-backup-system
1•gmaijoe•10m ago•0 comments

Hiding Data in Empty Space Characters

http://www.undr.com/understatement/2026/july24_hiding_data_in_empty_space_demo/index.html
1•lurn_mor•11m ago•1 comments

A Brief, Incomplete, and Mostly Wrong History of Programming Languages

http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html
1•wizerno•11m ago•0 comments

Show HN: Towerpunk Cyberdefence

https://towerpunk.aeonax.com
1•xeonax•11m ago•0 comments

Stable Scheduling Increases Productivity and Sales (2019) [pdf]

https://worklifelaw.org/publications/Stable-Scheduling-Study-Report.pdf
1•mooreds•12m ago•0 comments

Erasmus Darwin's Improved Design for Steering Carriages–and Cars (2002)

https://www.jstor.org/stable/532121
1•walterbell•13m ago•0 comments

The Beauty of Chalk

https://www.plough.com/articles/the-beauty-of-chalk
1•geneticdrifts•13m ago•0 comments

Show HN: Xllama – Local LLM Chat and Stable Diffusion on an Xbox Series S

https://github.com/gianlucamazza/xllama
1•gmazza1989•14m ago•0 comments

How the EU can punish Google (despite Trump)

https://pluralistic.net/2026/07/27/eucd-6/
2•hn_acker•16m ago•0 comments

Iran War Forces Energy Buyers to 'Unshackle' from Global Markets

https://www.nytimes.com/2026/07/27/business/natural-gas-lng-asia-exposure.html
2•JumpCrisscross•17m ago•0 comments

AI Can't Do the Last 20%

https://www.vincentschmalbach.com/ai-cant-do-last-20/
4•vincent_s•17m ago•0 comments