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•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

Google Is Killing ChromeOS: Aluminium OS, Its Android-Based Replacement

https://techjournal.org/google-aluminium-os-replacing-chromeos
1•pabs3•3m ago•0 comments

The Making of Indian Statistics

https://altermag.com/articles/the-making-of-indian-statistics
1•trojanalert•6m ago•0 comments

Microsoft reports AI is more expensive than paying human employees

https://fortune.com/2026/05/22/microsoft-ai-cost-problem-tokens-agents/
4•nreece•10m ago•0 comments

Most EVM systems have no memory

https://blog.bridgexapi.io/most-evm-systems-have-no-memory
1•Bridgexapi•11m ago•0 comments

Agent Substrate

https://github.com/agent-substrate/substrate
1•ahmedtd•12m ago•0 comments

Comparisons as Predictable as the Sunrise

https://pudding.cool/2026/05/similes/
1•newtwentysix•14m ago•0 comments

What Is an Air Gap?

https://www.ibm.com/think/topics/air-gap
1•teleforce•19m ago•0 comments

Ask HN: How concerned are you about a debt crisis?

4•bhag2066•21m ago•1 comments

Laravel Lang Compromised with RCE Backdoor Across 700 Versions

https://socket.dev/blog/laravel-lang-compromise
1•gpi•22m ago•0 comments

New kind of dark tourism emerging in online 'Backrooms,' study shows

https://phys.org/news/2026-05-kind-dark-tourism-emerging-online.html
1•WaitWaitWha•26m ago•0 comments

How the Library of Congress is using both AI and volunteers to unlock history

https://www.nextgov.com/artificial-intelligence/2026/05/how-library-congress-using-both-ai-and-vo...
1•WaitWaitWha•29m ago•0 comments

The Verification Tree: Turning AI bug report floods into a confidence signal

https://zenodo.org/records/20349904
2•yellow_glovez•33m ago•0 comments

Thousands evacuated in Garden Grove worry toxic chemicals in tank could explode

https://ktla.com/news/orange-county/thousands-evacuated-again-after-toxic-tank-leak-in-garden-grove/
1•Bender•34m ago•1 comments

Systemd 261-Rc1 Released with OS Installer, IMDS Subsystem and New Storagectl

https://www.phoronix.com/news/systemd-261-rc1
1•Bender•36m ago•0 comments

Feds unwittingly leak pilots' pre-crash conversation

https://www.theregister.com/science/2026/05/23/feds-unwittingly-leak-pilots-pre-crash-conversatio...
1•Bender•39m ago•0 comments

Kagi Search API is now in public preview

https://kagi.com/changelog#10622
2•mroche•40m ago•0 comments

A Visual Tour of Classical Electromagnetism (1960)

https://web.mit.edu/8.02t/www/802TEAL3D/visualizations/guidedtour/Tour.htm#_Toc27302365
2•nill0•40m ago•0 comments

My Hermes and Obsidian Setup and Use Cases

https://metedata.substack.com/p/013-my-hermes-and-obsidian-set-up
1•thunderbong•42m ago•0 comments

New rule requires most green-card applicants to apply from outside U.S.

https://www.washingtonpost.com/immigration/2026/05/22/new-rule-requires-most-green-card-applicant...
6•michaelsbradley•45m ago•0 comments

Shocker: Docker implemented in ~300 lines of bash

https://github.com/traceypooh/shocker
2•traceypooh•48m ago•0 comments

Any positive sides of LLM there?

2•artturibyte•49m ago•1 comments

WebFinder for Tailscale

https://zeulewan.github.io/web-finder/index.html
1•zeulewan•52m ago•0 comments

The Web Is About to Get a Second Door

https://medium.com/@vektormemory/the-web-is-about-to-get-a-second-door-5f9fa0fd0d0f
1•vektormemory•56m ago•0 comments

ngn-k tutorial

https://razetime.github.io/ngn-k-tutorial/
1•1vuio0pswjnm7•1h ago•1 comments

The commencement speech that shook the world

https://idiallo.com/blog/the-commencement-speech-that-shook-the-world
1•shaunpud•1h ago•0 comments

Family Abundance | Why Childcare is So Expensive in Silicon Valley

https://proliberal.substack.com/p/family-abundance
2•mtsteiner•1h ago•0 comments

Trying to preserve other peoples code

https://github.com/Essenceia/CRC_generator/tree/main
3•random__duck•1h ago•0 comments

Why Russian Propaganda Works – and How to Stop Falling for It

https://economicsofpower.substack.com/p/why-russian-propaganda-works-and
7•mariuz•1h ago•1 comments

Ask HN: Has anyone solved Amazon's animated GIF captcha programmatically?

3•jrejaud•1h ago•0 comments

Let me AI that for you

https://let-me-ai.com/
2•NordStreamYacht•1h ago•2 comments