frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Accidentally Turing-Complete

https://beza1e1.tuxen.de/articles/accidentally_turing_complete.html
25•bschne•1y ago

Comments

panstromek•1y ago
Nice list. Some of those are arguably not accidental, TypeScript type system seems kinda obvious to be turing complete when it tries to describe dynamically typed langauage.
WalterGR•1y ago
x86 MOV instruction: “The mov-only DOOM [game] renders approximately one frame every 7 hours, so playing this version requires somewhat increased patience.”
a_cardboard_box•1y ago
Rule 110 is only Turing-Complete if you have an infinitely large array of cells, and are able to initialize it with an infinite repeating pattern. If I'm not mistaken, HTML+CSS can only do a fixed-sized array.

With a Turing-Complete language, if a program runs out of memory on one machine, you can run the same code on a bigger machine without modifying it, and it can use the additional memory. With fixed-length rule 110, you need to modify the code if you want to use more memory.

256_•1y ago
This is addressed in the second paragraph of TFA:

"Stuff which is somehow limited (stack overflows, arbitrary configuration, etc) is still considered Turing complete, since all "physical" Turing machines are resource limited."

In my opinion, worrying about infinite memory, in regards to Turing completeness, makes the task of implementing computation much less interesting.

Also, I'm pretty sure CSS only does one generation (or a finite number of them) before stopping anyway.

256_•1y ago
Logic in Doom is particularly interesting to me. Apparently you can fit ~64k logic gates in a map (using the method described). From [1]:

"As the DOOM engine was not designed to be an interpreter, there are some constraints on our programs written against it. The biggest one is how large our programs can be. Since each gate uses at least one tag, we can use this as a metric to derive an upper-bound on the size of a program. As the DOOM engine uses 16-bit tags, this means we can have, at most, 65535 gates. This is not a particularly large number. We may be able to implement a very small CPU but this limit will be hit pretty quickly I believe."

The z80 had ~8,500 transistors. The 8086 had ~29,000 (checking Wikipedia). You could get far fewer if you use a 1-bit microarchitecture, I'm sure. I think there was a DEC (PDP?) computer that used that trick to have a really low transistor count, but I don't remember what it was called.

The real problem is RAM; for this you may as well cheat and modify Doom's code to add a RAM chip, and I/O while you're at it.

You could create a CPU in Doom implementing an architecture for which a C compiler exists, capable of compiling Doom, and run it in the CPU in Doom. For "reasonable" speed you'd have to do more than one simulation step per frame render (in the host Doom). If you ran it for long enough maybe you could get a full frame of Doom in Doom.

[1]: https://calabi-yau.space/blog/doom.html

karmakaze•1y ago
Doom running in TypeScript static type checker[0].

> half trillion lines of types totaling 177 terabytes ran through the type checker around the clock for 12 days to get the first frame

[0] https://news.ycombinator.com/item?id=43184291

karmakaze•1y ago
My favorite one is Conway's Game of Life. It's perhaps the least surprising one, but it's also the most visually appealing. Really like this video that leads up to making the Game of Life in itself[0]. It's something you can show a non-technical person and they can get a sense of how crazy it is that something so simple can do anything.

[0] https://www.youtube.com/watch?v=Kk2MH9O4pXY

Closing the data loop in AI-driven drug discovery

https://www.technologyreview.com/2026/07/27/1139667/closing-the-data-loop-in-ai-driven-drug-disco...
1•joozio•41s ago•0 comments

I Buy Belgian

https://www.ikkoopbelgisch.be/nl
1•mooreds•1m ago•0 comments

Health Insurance Companies Are a Union for You the Consumer

https://nicholasdecker.substack.com/p/health-insurance-is-a-big-union
1•paulpauper•1m ago•0 comments

I created an AI boyfriend. He was charming – and deeply troubling

https://theconversation.com/i-created-an-ai-boyfriend-he-was-charming-and-deeply-troubling-286740
1•neom•2m ago•0 comments

Birgitta Boeckeler on Harness Engineering for AI Agents [audio]

https://se-radio.net/2026/07/se-radio-730-birgitta-boeckeler-on-harness-engineering-for-ai-agents/
1•mooreds•2m ago•0 comments

Vigilant PR – adversarial AI code review that posts as you, not a bot

https://github.com/tllongdev/vigilant-pr
1•tllongdev•2m ago•0 comments

How Small Can a Video Game Be?

https://www.youtube.com/watch?v=9zE42ffDPKo
1•skibz•2m ago•0 comments

Singles Are So Burned Out They're Letting Spreadsheets Evaluate Their Dates

https://www.wsj.com/lifestyle/relationships/dating-singles-love-hackers-spreadsheets-711a493b
1•JumpCrisscross•3m ago•0 comments

The North Star for AGI

https://arcprize.org
1•barbacoa•3m ago•0 comments

Show HN: FeyNoBg – Automatic background removal model and training library

https://usefeyn.com/blog/feynobg/
2•snyy•3m ago•0 comments

Fire-loving fungi are nature's first responders after wildfire, renewing soil

https://www.cbc.ca/radio/day6/fire-loving-fungi-9.7233110
1•hn_acker•3m ago•1 comments

Atlas Discovery launches AI models to predict responses in clinical trials

https://runtimewire.com/article/atlas-discovery-launches-ai-models-to-predict-patient-response-in...
1•ryanmerket•5m ago•0 comments

Just Let Agents Write Code

https://redo.com/eng-blog/just-let-agents-write-code/
1•joshmoody24•7m ago•0 comments

When Canceling Subscriptions Is Not Easy

https://www.mouseprint.org/2026/07/27/when-canceling-subscriptions-is-not-easy/
1•speckx•8m ago•0 comments

Try the Fast Models

https://www.natemeyvis.com/try-the-very-fast-models/
1•meetpateltech•9m ago•0 comments

MAI-Cyber 1

https://microsoft.ai/news/introducing-mai-cyber-1-flash-inside-mdash/
2•migmartri•10m ago•0 comments

Make AI stop hallucinating by changing system design, not the model

https://blazephoenix.xyz/learn/invariant-driven-design-ai-hallucination/
1•mitraxyz•12m ago•0 comments

Ford Motor Joins Race to Build Next U.S. Army Truck

https://www.wsj.com/business/autos/ford-motor-joins-race-to-build-next-u-s-army-truck-f8efa051
1•LostMyLogin•12m ago•0 comments

Blanche-led DOJ likely to derail Epstein survivors' pursuit of justice

https://www.theguardian.com/us-news/2026/jul/27/epstein-survivors-todd-blanche-justice
1•hn_acker•13m ago•1 comments

Decathlon Germany adds Wero payment option to decathlon.de website

https://www.sgieurope.com/e-commerce/decathlon-germany-launches-wero-payment-on-its-website/12239...
3•doener•13m ago•0 comments

A+

https://github.com/PlanetAPL/a-plus/tree/master
2•tosh•14m ago•0 comments

Round Rects Are Everywhere

https://www.folklore.org/Round_Rects_Are_Everywhere.html
1•mgranados•16m ago•0 comments

Production Multi-Party Computation Is Here

https://divviup.org/blog/pepr-26/
2•SGran•16m ago•0 comments

Show HN: Directed Memory Bank – Tool-agnostic project context for AI agents

https://github.com/pmikutel/directed-memory-bank
1•pmikutel•17m ago•0 comments

Writing Arenas in Rust from Scratch

https://rushter.com/blog/rust-memory-arenas/
2•arto•17m ago•0 comments

Japan Launches Domestically Produced Quantum Computer

https://quantumcomputingreport.com/japan-launches-fully-domestically-produced-quantum-computer-in...
1•Tomte•17m ago•0 comments

Origins of Precision(2017) [video]

https://www.youtube.com/watch?v=gNRnrn5DE58
1•pillars•18m ago•0 comments

Gene Therapy Helps Teen with Rare Form of Epilepsy Walk Independently

https://today.ucsd.edu/story/personalized-gene-therapy-helps-teen-with-rare-form-of-severe-epilep...
2•gmays•18m ago•0 comments

The Brain Needs Euphoric Fatigue

https://jrswab.com/blog/the-brain-needs-euphoric-fatigue/
2•speckx•18m ago•0 comments

The Library of Lives

https://foofaraw.press/the-library-of-lives/
1•JumpCrisscross•19m ago•0 comments