frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Civ 1 period accurate decompilation

https://github.com/sjmelia/civd
5•crc32•1h 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•57m ago
Cool! Is this an approach that you could in theory use to other games / programs too? What about license, is this legal?
crc32•34m 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.

17k Lines of New Rust Kernel Code Heading into Linux 7.4

https://www.phoronix.com/news/Linux-7.4-Rust
1•doener•48s ago•0 comments

An RL agent learning to land a Falcon 9 on a droneship in simulation

https://twitter.com/breeg554/status/2112484802222072189
1•dawidkielbasa•1m ago•0 comments

DeepInfer, our in-house inference framework, now open source

https://twitter.com/deepseek_ai/status/2112476496283775135
1•awasum_yannick•2m ago•0 comments

Nvidia Vera's System Architecture: Pushing Bandwidth

https://chipsandcheese.com/p/nvidia-veras-system-architecture
1•rbanffy•3m ago•0 comments

Japan launches mission to bring home a piece of the Martian moon Phobos

https://arstechnica.com/space/2026/10/japan-launches-mission-to-bring-home-a-piece-of-the-martian...
1•rbanffy•3m ago•0 comments

Demystifying Spherical Harmonics: An Optimization Approach

https://andrew-helmer.github.io/demystifying-spherical-harmonics/
1•dverlaeckt80•4m ago•0 comments

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

https://tryanalisa.com/explore
1•tiagoantunespt•9m ago•0 comments

Show HN: A giant pixel map of London

https://tiny.london/
1•ktoyame•10m ago•0 comments

Revolut Partially Unavailable

https://www.revolut.com/en-US/system-status/
3•chopin•13m ago•1 comments

Study: New AI tool can predict cancer survival by a single patient selfie

https://www.theguardian.com/technology/2026/oct/19/ai-tool-predict-cancer-survival-patient-selfie
1•giuliomagnifico•13m ago•0 comments

Hackers steal 421,000 emails belonging to members of Germany's far-right AfD

https://www.euronews.com/2026/10/20/hackers-steal-421000-emails-belonging-to-members-of-germanys-...
2•whiteboardr•16m ago•0 comments

Revolut (bank) down since 3 hours

https://www.reddit.com/r/Revolut/comments/1xaklod/is_revolut_down/
4•m3nu•16m ago•0 comments

Google Cloud Service Disruption in UK

https://www.theregister.com/paas-and-iaas/2026/10/20/google-clouds-london-zones-takes-a-nap-multi...
1•giamma•17m ago•1 comments

GitHub's new license gate can block merges. Roll it out carefully

https://code.geohack.top/post/github-open-source-license-compliance-rollout
1•gongoro•19m ago•0 comments

Revolut down as users report app not working

https://www.bbc.com/news/articles/cxdd8mm6qy4mo
12•baal80spam•20m ago•2 comments

Twilight at the Banyan Tree

https://meniir.itch.io/twilight-at-the-banyan-tree
1•altilunium•20m ago•0 comments

I Did This Without Your Knowledge

https://www.lesswrong.com/posts/3375SZNGA5dKHQMie/i-did-this-without-your-knowledge
1•-_-•20m ago•0 comments

Amazon to fund 12 small nuclear reactors at former Indiana coal plant\

https://techcrunch.com/2026/10/19/amazon-to-fund-12-small-nuclear-reactors-at-former-indiana-coal...
2•mpweiher•22m ago•0 comments

You can control this robot (for free)

https://www.youtube.com/watch?v=jorcg0Bx3Cw
1•louwrentius•22m ago•0 comments

Stateless Agents: How to make AI work for teams

https://busabase.com/blog/how-to-make-ai-work-for-teams
1•poppylorry•25m ago•0 comments

Alberta votes to remain in Canada with 70% voting remain

https://www.cbc.ca/news/canada/calgary/alberta-referendum-canada-remain-vote-9.7387871
2•bhouston•26m ago•0 comments

Ask HN: Will Proton integrate Standard Notes?

1•robertlagrant•26m ago•0 comments

Building a reinforcement learning system for e-commerce search

https://www.searchagora.com/blog/building-a-reinforcement-learning-system-for-e-commerce-search
1•pencildiver•29m ago•0 comments

Show HN: PurePDF – merge, split and compress PDFs in the browser with qpdf/WASM

https://purepdfhq.com
1•rahulrana95•33m ago•0 comments

Show HN: 80s computing era meets small local decision models

https://github.com/HuyNguyenAu/amber-8
2•vanilla-latte•33m ago•1 comments

AI slop is a human problem

https://nishanth.blog/posts/ai-slop-is-a-human-problem/
2•crazyphoton•37m ago•1 comments

AfD Leak: What 421,179 Hacked Emails Show about the German Far Right

https://www.heistberlin.com/news/afd-leak-what-421-179-hacked-emails-show-about-the-german-far-ri...
118•firefax•39m ago•57 comments

Revolut Germany Is Down

https://www.revolut.com/de-DE/system-status/
7•lionkor•43m ago•2 comments

China's DeepSeek deep-sixed at all US federal civilian agencies

https://www.theregister.com/security/2026/10/20/deepseek-deep-sixed-at-all-us-federal-civilian-ag...
3•nephihaha•44m ago•0 comments

Henrify – DIY Spotify replacement stack

https://hieron.cc/blog/henrify/
1•antiochian•44m ago•1 comments