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

Important Update: Transitioning Bitnami Offerings on AWS

https://community.broadcom.com/tanzu/blogs/beltran-rueda-borrego/2026/05/20/important-update-tran...
1•zoptie•2m ago•1 comments

Ask HN: Have you seen Star Wars The Mandalorian and Grogu,nice CGI, no storyline

1•eagle10ne•5m ago•0 comments

China Launches Manned Spaceship on Mission Orbit Tiangong Space Station [video]

https://www.youtube.com/watch?v=Qk-IZODWUzM
1•Bender•8m ago•0 comments

D. Trump Jr. and Eric Trump Running Felony Fraud Scheme Prosecutable in New York

https://cmarmitage.substack.com/p/donald-trump-jr-and-eric-trump-are
3•JumpCrisscross•17m ago•0 comments

Geopolitical Technicals

1•almogodel•18m ago•0 comments

Global AI Diffusion: Q1 2026 Trends and Insights [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2026/05/Microsoft-AI-Diffusion-Report...
1•gmays•26m ago•0 comments

Ravens Don't Follow Wolves, They Predict Their Patterns

https://scitechdaily.com/ravens-dont-follow-wolves-they-predict-them/
1•Gaishan•44m ago•0 comments

NymphCast – Libre Multicast DNS Media Streaming to Any Device

https://github.com/MayaPosch/NymphCast
1•righthand•44m ago•1 comments

Freediving, Embodiment and Humanity – Joanna Rutkowska

https://tracesofhumanity.org/freediving-embodiment-and-humanity/
1•transpute•52m ago•0 comments

How Telescope Rancher Became the Hot New Job in Texas

https://www.youtube.com/watch?v=bN48vEqaQs8
1•colinbartlett•56m ago•0 comments

Ghost CMS SQL injection flaw exploited in large-scale ClickFix campaign

https://www.bleepingcomputer.com/news/security/ghost-cms-sql-injection-flaw-exploited-in-large-sc...
3•sbulaev•1h ago•0 comments

HN: Silau – AI detects employee burnout"

1•silau•1h ago•2 comments

Army runs secret wargames under central London

https://www.bbc.com/news/articles/c2e2vjl2ry8o
3•Vermin2000•1h ago•1 comments

The Morale of Tech Workers Is Plunging as Layoffs Mount

https://www.nytimes.com/2026/05/19/business/tech-layoffs-blind.html
6•bookofjoe•1h ago•4 comments

Cache – Meal plans from your local store's weekly sales

https://www.cache.fit/
2•blaughlin•1h ago•1 comments

A Unified Theory of Alignment in Layered Systems

https://a-unified-theory-of-alignment-in-layered-systems.tiiny.site/
1•CitizenOfEarth•1h ago•0 comments

The quiet grief of adult friendship

https://timesofindia.indiatimes.com/blogs/civil-irony/the-quiet-grief-of-adult-friendship/
2•crcastle•1h ago•1 comments

Show HN: SaveNeighbor – food delivery through your own personal network

https://www.saveneighbor.com
1•JJonesRatio•1h ago•2 comments

Canonical to shut Ubuntu Pastebin after 18 years of service

https://www.omgubuntu.co.uk/2026/05/canonical-ubuntu-pastebin-shutdown
2•colinprince•1h ago•1 comments

I built an online leather goods store focused on making gift buying less painful

https://www.vintageleather.com.au/
2•vickeycool•1h ago•2 comments

Tfdraw.dev – turn Terraform plan JSON into an editable architecture diagram

https://tfdraw.dev/demo
1•spoosh•1h ago•0 comments

Show HN: The first (free) podcast ad blocker

https://apps.apple.com/us/app/drea-podcast-ad-blocker/id6759070798
1•hamza_q_•1h ago•0 comments

Fatherhood Dramatically Rewires Your Brain

https://www.sciencealert.com/fatherhood-dramatically-rewires-your-brain-scans-reveal
4•Gaishan•1h ago•1 comments

How AI Talks People Out of Conspiracy Theories–and What We Can Learn from That

https://www.wsj.com/tech/ai/ai-debunks-conspiracy-theories-92eff2c5
3•MilnerRoute•1h ago•2 comments

Honopinion

https://honopinion.com
2•mroshani20•1h ago•0 comments

We Built Secure, Scalable Agent Sandbox Infrastructure

https://twitter.com/larsencc/status/2027225210412470668
2•gmays•1h ago•1 comments

Mvm – a fast virtual machine for Go

https://mvm.sh/
1•birdculture•1h ago•0 comments

Teaching Codex to Test a Voice-First Calendar App

https://www.elicited.blog/posts/teaching-codex-to-test-a-voice-first-calendar
1•justanotheratom•1h ago•1 comments

What were your favorite classic iPod games?

1•wompapumpum•2h ago•0 comments

'What Matters Most'–Google Is Changing Your Gmail Inbox

https://www.forbes.com/sites/zakdoffman/2026/05/23/what-matters-most-google-is-changing-your-gmai...
2•healsdata•2h ago•0 comments