frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Accidentally Turing-Complete

https://beza1e1.tuxen.de/articles/accidentally_turing_complete.html
25•bschne•11mo ago

Comments

panstromek•11mo 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•11mo 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•11mo 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_•11mo 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_•11mo 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•11mo 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•11mo 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

Harvests and food prices at risk as Iran war triggers global fertiliser crunch

https://www.independent.co.uk/news/world/middle-east/global-fertiliser-shortage-iran-war-food-pri...
1•measurablefunc•1m ago•0 comments

Why mathematicians are boycotting their biggest conference

https://www.scientificamerican.com/article/why-mathematicians-are-boycotting-their-biggest-confer...
1•nickcotter•7m ago•0 comments

Mathematics Is All You Need

https://zenodo.org/records/19080172
2•vinhnx•10m ago•0 comments

Carl Schmitt in Miami

https://thecritic.co.uk/carl-schmitt-in-miami/
1•paulpauper•12m ago•0 comments

How Many AA Batteries Does It Take to Power a PC Setup? [video]

https://www.youtube.com/watch?v=U5lskFXDbWs
1•gnabgib•13m ago•0 comments

Caching algorithms without knowing how they work

https://blog.autorouting.com/p/caching-algorithms-without-knowing
1•juanpabloaj•15m ago•0 comments

Will This 'Miracle' Battery Change Your Mind About EVs?

https://www.wsj.com/lifestyle/cars/donut-lab-solid-state-battery-ssb-ev-4e6ad966
1•NN88•19m ago•1 comments

Solving the Strait of Hormuz Blockage

https://www.austinvernon.site/blog/thestrait.html
1•paulpauper•19m ago•0 comments

Airfare Is Just the Beginning

https://www.theatlantic.com/newsletters/2026/03/expensive-plane-tickets-oil-iran/686604/
2•paulpauper•20m ago•0 comments

Stop picking my Go version for me

https://blog.howardjohn.info/posts/go-mod-version/
1•ingve•21m ago•0 comments

Show HN: EnterpriseFizzBuzz – 622K lines of production-grade FizzBuzz

https://github.com/Elijah-J/EnterpriseFizzBuzz
2•CodeIsMyFetish•25m ago•0 comments

AI Perfected Chess. Humans Made It Unpredictable Again

https://www.bloomberg.com/news/articles/2026-03-27/ai-changed-chess-grandmasters-now-win-with-unp...
2•GMoromisato•29m ago•1 comments

Show HN: Windows 95–style Weather App for iPhone

https://apps.apple.com/us/app/weather-exe/id6761195944
1•web3rb•29m ago•0 comments

Intel Core Ultra Series 3 VPro: 18A AI PCs Debut with Dtect Security Updates

https://hothardware.com/news/intel-unveils-core-ultra-series-3-vpro
1•rbanffy•35m ago•0 comments

Goldman Sachs now reckons that oil could take out the 2008 record of $147

https://www.ft.com/content/360ca227-4d2a-41a4-a05f-41baedc0f7d2
3•bookofjoe•35m ago•1 comments

Causality optional? Testing the "indefinite causal order" superposition

https://arstechnica.com/science/2026/03/getting-formal-about-quantum-mechanics-lack-of-causality/
1•rbanffy•36m ago•0 comments

Show HN: Drag-to-Reveal Before/After Slider Component for React/Next.js

1•doanything_ai•37m ago•1 comments

Russia took satellite images of U.S. base before Iranian attack, Zelensky says

https://www.nbcnews.com/world/ukraine/russia-us-base-american-troops-zelenskyy-rcna265612
1•vrganj•38m ago•0 comments

Suspect in Foiled Bank of America Attack Says He Was Recruited on Snapchat

https://www.newsweek.com/suspect-in-foiled-bank-of-america-attack-says-he-was-recruited-on-snapch...
1•geox•39m ago•0 comments

I built PistonAlpha to track the collector car market in real time

https://pistonalpha.com/
1•magrix•40m ago•0 comments

The Cryptopals Crypto Challenges

https://cryptopals.com/
1•pmaddams•41m ago•0 comments

The Braille Institute's family of hyperlegible fonts

https://www.brailleinstitute.org/freefont/
2•pmaddams•42m ago•0 comments

Benchmarking quantum simulation with neutron-scattering experiments

https://arxiv.org/abs/2603.15608
1•rbanffy•42m ago•0 comments

MCP Toolbox for Databases

https://github.com/googleapis/genai-toolbox
1•pmaddams•42m ago•0 comments

Old masters, new perspectives: The Gemäldegalerie in Berlin

https://blog.google/company-news/outreach-and-initiatives/arts-culture/old-masters-new-perspectiv...
2•gnabgib•43m ago•0 comments

Claude-IPC: Watch 5 claudes build a terminal Yubikey manager together [video]

https://www.youtube.com/watch?v=6vEJNr8sASI
1•thejabberwock•44m ago•1 comments

Is AI agent discoverability a reputation graph problem, not an SEO problem?

https://www.snackonai.com/p/the-web-of-trust-will-be-the-next-distribution-layer
1•mohinish•52m ago•0 comments

Private equity turned vulnerable elderly people into human ATMs

https://www.theguardian.com/society/2026/mar/28/the-great-care-home-cash-grab-how-private-equity-...
27•mordechai9000•53m ago•8 comments

OpenClaw is fun. OpenClaw is dangerous. Here's where Tailscale helps

https://tailscale.com/blog/openclaw-tailscale-aperture-serve
2•makaimc•54m ago•0 comments

U.S. uses hundreds of Tomahawk missiles on Iran, alarming some at Pentagon

https://www.washingtonpost.com/national-security/2026/03/27/iran-war-tomahawk-missiles/
3•breve•55m ago•0 comments