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

Nocturne Is the Latest Music Player for Gnome to Hit v1.0

https://www.phoronix.com/news/Nocturne-1.0-GNOME-Music
1•Bender•49s ago•0 comments

Canvas Breach Disrupts Schools and Colleges Nationwide

https://krebsonsecurity.com/2026/05/canvas-breach-disrupts-schools-colleges-nationwide/
1•Bender•2m ago•0 comments

Build native desktop and mobile apps with web UI and Zig

https://github.com/vercel-labs/zero-native
1•kindkang2024•5m ago•0 comments

The Las Vegas Sphere Looked Like a Disaster. It's Become a Huge Hit Instead.

https://www.wsj.com/business/media/sphere-vegas-dolan-disaster-hit-fa0e6b17
1•bookofjoe•5m ago•1 comments

Ask HN: Before Open Source took over the server, what was the discourse like?

1•mbgerring•6m ago•0 comments

Trump reportedly plans to fire FDA Commissioner Marty Makary

https://arstechnica.com/health/2026/05/trump-reportedly-plans-to-fire-fda-commissioner-marty-makary/
1•Bender•7m ago•0 comments

Show HN: Countries where you can leave your MacBook at a random coffee shop

https://vouchatlas.com
1•canergl•7m ago•0 comments

Koide Formula for the Down Quarks

https://doi.org/10.1016/j.physletb.2026.140510
1•arivero•10m ago•1 comments

I built an AI to stress-test my thinking

https://mindmilker.com
1•afxuh•16m ago•0 comments

Ryan Cohen, the rebel CEO who disdains corporate America

https://www.ft.com/content/c0023a3e-08ec-44e8-80a6-f9abb343c52e
1•petethomas•19m ago•0 comments

Data center drains 30M gals of water — until residents complained of pressure

https://www.politico.com/news/2026/05/08/georgia-data-centers-water-00909988
3•thehoff•21m ago•2 comments

Hasan Piker Media Tracker

https://hasanabi.m44.cl/
1•abdelhousni•23m ago•1 comments

ToolOps: One Decorator Away from Production-Ready AI Agents

https://github.com/hedimanai-pro/toolops
2•hedimanai•27m ago•1 comments

Instagram DMs Lose End-to-End Encryption Starting Today

https://www.macrumors.com/2026/05/08/instagram-end-to-end-encryption/
3•0in•28m ago•1 comments

After USDA request, Indiana plant biologist locked out of lab by school

https://www.science.org/content/article/after-usda-request-indiana-plant-biologist-locked-out-lab...
2•petethomas•34m ago•0 comments

macOS 26 adoption rate lower than prior macOS versions

https://forums.macrumors.com/threads/tahoe-adoption-rate.2474641/page-2
2•seam_carver•35m ago•0 comments

Schliemann found Troy by destroying it

https://storica.club/blog/troy-was-real/
1•cemsakarya•37m ago•0 comments

McDonald's is taking away your fountain machine. Burger King not so much.

https://finance.yahoo.com/markets/article/mcdonalds-is-taking-away-your-fountain-machine-burger-k...
2•phyzix5761•39m ago•2 comments

Revival of Blackberry nostalgia and keyboard fuels smartphone startups

https://www.cnbc.com/2026/05/09/blackberry-nostalgia-keyboard-smartphone-comeback-startups-intent...
1•0in•42m ago•0 comments

User just tricked Grok and Bankrbot to send tokens with Morse code

https://www.cryptopolitan.com/user-tricked-grok-bankrbot-to-send-tokens/
4•wglb•47m ago•0 comments

Stale Gov.uk pages are feeding AI overviews old data and Brits are believing it

https://www.theregister.com/software/2026/04/23/govuk-says-ai-gaslighting-brits-with-stale-govuk-...
1•gnabgib•50m ago•0 comments

Upending assumptions about learning, inspired by an AI phenomenon

https://www.santafe.edu/news-center/news/upending-assumptions-about-learning-inspired-by-an-ai-ph...
1•hhs•51m ago•0 comments

Ask HN: Is Claude Code web down?

1•etamponi•52m ago•2 comments

423.7 and 426.5 TB/S GMI Bi-Directional HCF Transmission

https://arxiv.org/abs/2605.04924
1•rbanffy•54m ago•0 comments

Apple, Google and aligned incentives (2020)

https://chameth.com/apple-google-aligned-incentives/
1•juniperplant•56m ago•1 comments

Scientists calculate more precise estimate of how fast the universe is expanding

https://www.wsj.com/science/how-fast-universe-expanding-047cefae
1•hhs•57m ago•0 comments

Investment Optimization for iOS

https://apps.apple.com/us/app/investment-optimization/id6760441967
1•joseph_foster•1h ago•0 comments

Rethinking how our brains use categories to make sense of the world

https://news.mit.edu/2026/rethinking-how-our-brains-use-categories-0507
1•hhs•1h ago•1 comments

Putin says he thinks Russia-Ukraine war is coming to an end

https://www.reuters.com/world/europe/putin-says-he-thinks-ukraine-conflict-is-coming-an-end-2026-...
3•MilnerRoute•1h ago•3 comments

Mario Kart World patented shader technique to enlarge distant objects

https://twitter.com/MarioBrothBlog/status/2053179791495356420
2•bpierre•1h ago•0 comments