frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Civ 1 period accurate decompilation

https://github.com/sjmelia/civd
5•crc32•2h ago
I've used LLMs to decompile Civ 1 and put the reconstructed C source on GitHub, along with a technical book and story.

The reconstructed source builds with what i'm pretty sure is the original Microsoft C compiler and toolchain. It produces a byte-for-byte match with the original executable, aside from a four-byte correction for what appears to be a patch applied after linking. So it should be pretty close to how the original game was made; although it can't be said that this is the "original source code".

I've also used that source to create a modern build of the game, in the `reciv` repository.

Like most people, I'm in two minds about the benefits and downsides of LLMs. This work also builds on OpenCiv1, which probably deserves most of the credit - not only did I direct the LLM to use that work; but it was almost certainly in the training data.

Qualms aside - I couldn't resist having a look inside one of my all-time favourite games. There's a few attempts at Civ 1 including recent LLM ones. But i'm not aware of any that publicise the resulting source code.

Comments

tuomas2•1h ago
Cool! Is this an approach that you could in theory use to other games / programs too? What about license, is this legal?
crc32•1h ago
The approach really boils down to just giving the LLM the clear target of 100% binary compatibility with the same toolchain. It makes it easy for it to check its work and iterate towards it.

It's probably a couple of months of intermittently using £15pm subscriptions between OpenAI, Anthropic and Google; nowhere near maxing them out.

MSC 5.1 is a relatively simple compiler; and there's lots of prior art on Civ 1. I've set them off on a slightly more obscure and recent game now; so we'll see how well they manage on that!

Regarding legality - IANAL so perhaps we'll see. I just wanted to see how the sausage was made.

Show HN: Family quality-of-life score for every US county (108 indicators)

https://tryanalisa.com/explore
3•tiagoantunespt•1h ago•0 comments

Show HN: Death Plan Switch, a self-hosted dead man's switch for solo devs

https://deathplanswitch.com/
71•romeo19361•6h ago•50 comments

Show HN: I built an AI tool that turns two photos into a dance video

https://a2oliteai.com/
3•fourfire•2h ago•1 comments

Show HN: Civ 1 period accurate decompilation

https://github.com/sjmelia/civd
5•crc32•2h ago•2 comments

Show HN: FlexChords – chords for any YouTube song, from a model I trained

https://www.flexchords.com/
6•amits97•2h ago•0 comments

Show HN: Axes Test – Client-side multi-axis political spectrum mapper

https://12axestest.org
3•Darwin233•2h ago•1 comments

Show HN: Ruralcheck.eu – geospatial property analyis in rural Europe

https://ruralcheck.eu/
2•raptor111•2h ago•0 comments

Show HN: I built a task system to handle the drudgery so I could focus on tasks

https://3anddoneapp.com/try
56•dmayle•22h ago•49 comments

Show HN: Lights-on software factory boilerplate for Claude Code

https://github.com/gojko/lights-on-software-factory
13•gojkoa•9h ago•7 comments

Show HN: RoadRash ported to Three.js to run in the browser

https://roadrash.pages.dev
22•olucurious•13h ago•6 comments

Show HN: I made the most simple pie chart maker

https://www.createpiechart.com/
5•atharvtathe•5h ago•0 comments

Show HN: Qwen3-4B with the AI writing tics trained out

https://100toolkit.com/blog/deslop-model/
149•erikkannike•22h ago•109 comments

Show HN: The Zelda timeline to catch up before the Ocarina of Time remake

https://legendofhyrule.com/
218•jsomau•1d ago•127 comments

Show HN: WhatsApp MCP running free on Cloudflare

https://github.com/finereli/whatsapp-mcp
150•zoozla•1d ago•80 comments

Show HN: Open-source early-reading reader with phonics help

https://github.com/finereli/yarareads
22•zoozla•17h ago•9 comments

Show HN: KiviDB, a faster Redis-compatible memory database and vector cache

https://github.com/kividbio/kividb
68•murtazayusuf•21h ago•40 comments

Show HN: Yana – A local-first, human-governed AI runtime and IDE in Rust

https://github.com/yanacuti1121/yana-ai
4•vutam•8h ago•0 comments

Show HN: High-quality duck audio synthesizer

https://celphase.github.io/duck-pond/
176•celphase•2d ago•44 comments

Show HN: Esp32sim – Run ESP32 firmware in the browser

https://github.com/mikroverk/esp32sim
206•joakimeriksson•2d ago•46 comments

Show HN: Sphinx – A hook that quizzes you on your AI's code before shipping

https://sphinx-six-theta.vercel.app/
252•critiquebrowser•2d ago•89 comments

Show HN: Self-hosted AI spend attribution

https://demo.costura.ai/overview
5•0set0set•10h ago•1 comments

Show HN: Ranet3 – High performance policy routed IPsec mesh SD-WAN

https://ranet3.com/
40•StepBroBD•1d ago•13 comments

Show HN: Resourcedeck, free and open source resource and portfolio planning

https://resourcedeck.app/
2•Gshaheen•10h ago•0 comments

Show HN: OpenFlow – AI Agent Workflow Builder

https://github.com/SeeRay11/OpenFlow
4•searay112023•11h ago•0 comments

Show HN: Chai-UI – A design system to generative AI apps

https://chai-ui.com/
2•KazaNLP•11h ago•0 comments

Show HN: 500 clocks in one 6.3 MB HTML file by Opus 5.5

https://tkgally.github.io/500-clocks/
73•tkgally•2d ago•31 comments

Show HN: Parin – A 2D game engine between raylib and Godot, written in Dlang

https://github.com/Kapendev/parin
75•Kapendev•3d ago•19 comments

Show HN: Gemini 4 Argon plays StarCraft

https://starskirmish.com/bench/v0-2/
252•__cayenne__•3d ago•111 comments

Show HN: Llmspeed – feel how fast a local LLM runs before you buy the hardware

https://llmspeed.dev/
329•albinstman•3d ago•86 comments

Show HN: Claude Code skills and hooks that prove a fix's test fails without it

https://github.com/ehnruiz/claude-skills
3•ehnruiz•13h ago•0 comments