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

Rivian allows you to disable all internet connectivity

https://rivian.com/support/article/can-i-disable-all-data-collection-from-my-vehicle
2•Cider9986•1m ago•0 comments

Ask HN: I'm building a toy language. At what point should it become self-hosted?

1•jdw64•2m ago•0 comments

The Science of 'Needle-Free Botox': A Complete Guide to Peptide Skincare (2026)

1•maxqur•3m ago•0 comments

US Senators introduce bipartisan bill to ban Chinese vehicles and auto parts

https://www.nbcnews.com/politics/congress/senators-moreno-slotkin-bill-banning-chinese-vehicles-a...
2•anigbrowl•5m ago•0 comments

Outcome Rewards Do Not Guarantee Verifiable or Causally Important Reasoning

https://arxiv.org/abs/2604.22074
1•krackers•5m ago•1 comments

Adding week-long deferrals to a pipeline that handles alerts

https://rootly.com/blog/replay-dont-rebuild-adding-week-long-deferrals-to-a-pipeline-that-handles...
1•sylvainkalache•8m ago•0 comments

We Need to Talk About the IPv8 Draft

https://substack.com/home/post/p-194315405
1•speckx•8m ago•0 comments

The Secret Weapon Against AI Dominance

https://www.theatlantic.com/ideas/2026/04/creative-labor-ai-copyright/687000/
1•maxutility•9m ago•0 comments

Live Updates from Elon Musk and Sam Altman's Court Battle over OpenAI

https://www.theverge.com/tech/917225/sam-altman-elon-musk-openai-lawsuit
2•SamoyedFurFluff•10m ago•0 comments

FramePin – Annotate and freeze screen recordings inside Chrome, no uploads

https://framepin.com/
3•ipselon•11m ago•0 comments

Why friendly AI chatbots might be less trustworthy

https://www.bbc.com/news/articles/cd9pdjgvxj8o
2•Brajeshwar•11m ago•0 comments

Chinese EVs Can Now Project Movies from Their Headlights

https://insideevs.com/news/794295/chinese-ev-headlight-movie-projectors/
3•mooreds•12m ago•0 comments

AI-Generated Code Has No Author

https://ossature.dev/blog/ai-generated-code-has-no-author/
2•beshrkayali•14m ago•0 comments

Does ClickHouse Support UPDATEs? A 2026 PR-by-PR Analysis

https://dataanalyticsguide.substack.com/p/clickhouse-update-support
2•manveerc•14m ago•0 comments

Learn Algorithms for Interviews, Forget Them for Work

https://fagnerbrack.com/learn-algorithms-for-interviews-forget-them-for-work-c7dc5fe6cd3b
2•birdculture•15m ago•0 comments

Roblox to Combine Video World Models with Game Engine

https://about.roblox.com/newsroom/2026/04/roblox-reality-hybrid-architecture-democratizing-photor...
2•moneil971•17m ago•0 comments

Researchers try to cut the genetic code from 20 to 19 amino acids

https://arstechnica.com/science/2026/04/researchers-try-to-cut-the-genetic-code-from-20-to-19-ami...
2•furcyd•17m ago•0 comments

Show HN: Free Apple Shortcut that scans receipts to a Google Sheet

https://www.expensebot.ai/blog/apple-shortcuts-receipt-scanner
2•balahura•18m ago•0 comments

What do the fundamental constants of physics tell us about life?

https://arxiv.org/abs/2509.09892
2•sebg•20m ago•0 comments

Qwen 3.6 27B SAE

https://huggingface.co/caiovicentino1/qwen36-27b-sae-papergrade
2•caiovicentino•21m ago•0 comments

Higher racial diversity in business, law schools linked to higher grad salaries

https://www.nature.com/articles/d41586-026-01273-6
2•laurex•22m ago•1 comments

Light phone launches a developer program for LightOS

https://www.lightphonethings.com
2•laurencemd•24m ago•0 comments

Show HN: Sprogeny – mashup public Spotify playlists

https://sprogeny.com/
3•ogou•24m ago•0 comments

Show HN: Free no-signup site auditor – secrets, subdomain takeover, CVEs

https://theionproject.com/ionprobe/
3•TheIOn-Project•24m ago•0 comments

Do You Know Indiegogo?

https://www.indiegogo.com/en/projects/instantsite/instantsite
2•emanuilv•24m ago•0 comments

Proxies All the Way Down

https://dadrian.io/blog/posts/exe-github/
2•bryanmikaelian•25m ago•0 comments

The upsell game – Vercel upselling tactics revealed

https://theupsellgame.com/
4•bartoindahouse•26m ago•0 comments

NASA's X-59 Shows Off Early Flight Test Maneuvers

https://www.nasa.gov/blogs/quesst/2026/04/30/x-59-update-043026/
3•big_toast•26m ago•2 comments

Evaluative AI and Semantic Topology

https://gsnv.substack.com/p/evaluative-ai-and-semantic-topology
2•laurex•27m ago•0 comments

The Current Impact of AI on Engineering Velocity: What 400 Companies Are Seeing [video]

https://www.youtube.com/watch?v=37K6M-DIdF0
2•champagnepapi•28m ago•0 comments