frontpage.
newsnewestaskshowjobs

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

Ask HN: What's the best hands-on path to learn ML inference infrastructure?

1•censor5•41s ago•0 comments

AI is set to drive surging electricity demand from data centres (2025)

https://www.iea.org/news/ai-is-set-to-drive-surging-electricity-demand-from-data-centres-while-of...
1•dredmorbius•2m ago•0 comments

Making a cache cluster more effective

https://basta.substack.com/p/making-a-cache-cluster-more-effective
1•tyre•5m ago•0 comments

Gary Stevenson to quit YouTube channel, citing health concerns

https://www.theguardian.com/business/2026/jul/26/gary-stevenson-to-quit-youtube-channel-garys-eco...
1•jimnotgym•8m ago•0 comments

CuNi v01

https://cuni-studio.fly.dev/
1•agentrider•9m ago•0 comments

Why Everyone Got Spain's Blackout Wrong [video]

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

An Open-Source Static AI Capability and Risk Analyzer – First Week Report

https://github.com/ikaruscareer/SafeAI
1•ikaruscareer•15m ago•0 comments

1877–1878 El Niño event

https://en.wikipedia.org/wiki/1877%E2%80%931878_El_Ni%C3%B1o_event
2•simonebrunozzi•16m ago•0 comments

Doom for PC-FX [video]

https://www.youtube.com/watch?v=wUd5IGMbe48
1•cedel2k1•17m ago•0 comments

Buying a Home Has Gotten Harder for Young Adults in Most U.S. Metro Areas

https://www.pewresearch.org/short-reads/2026/06/24/buying-a-home-has-gotten-harder-for-young-adul...
1•karakoram•17m ago•0 comments

PGSimCity – an explorable 3D model that shows how Postgres works

https://github.com/NikolayS/pgsimcity
1•samokhvalov•17m ago•0 comments

Big Tech accused of stonewalling European social media researchers

https://www.wired.com/story/european-researchers-want-to-study-social-medias-harms-but-cant-get-t...
1•logickkk1•21m ago•0 comments

Wright's Law Edges Out Moore's Law in Predicting Technology Development (2012)

https://spectrum.ieee.org/wrights-law-edges-out-moores-law-in-predicting-technology-development
1•simonpure•26m ago•0 comments

Coding Has Agents. Trading Has One

https://henryzhang.substack.com/p/coding-has-agents-trading-finally
1•henryzhangpku•26m ago•0 comments

Simulate cassette tape audio profiles using FFmpeg

https://github.com/AARomanov1985/Audio-Cassette-Simulation
2•xterminal•26m ago•0 comments

Show HN: Infinite Jigsaw Game

https://infinitejigsaw.com
2•impostervt•27m ago•0 comments

The Sustained Performance Gap: Why Laptop Specs Don't Tell the Whole Story

https://psyll.com/articles/technology/tech-gadgets/thermal-throttling-why-laptops-lie-about-speed
1•lucasfletcher•27m ago•0 comments

The Lego Problem, Revisited

https://seths.blog/2026/07/the-lego-problem/
1•herbertl•29m ago•0 comments

Most Americans Say Financial Milestones Are Harder for Today's Young Adults

https://www.pewresearch.org/short-reads/2026/07/17/majorities-of-americans-say-key-financial-mile...
3•karakoram•32m ago•0 comments

The American E.V. Has Been Crushed. Will It Take the U.S. Auto Industry with It?

https://www.nytimes.com/2026/07/15/magazine/electric-cars-american-evs.html
2•bookofjoe•33m ago•1 comments

Vulnerabilities in CJSON

https://joshua.hu/cjson-json-parser-cve-vulnerabilities
2•ingve•36m ago•0 comments

Automate 7 Projects Marketing with AI for $40

https://apsquared.co/posts/marketing-automation-claude-codex
1•apsquared•36m ago•0 comments

What does GitHub's security team even do?

https://orchidfiles.com/github-security-team/
24•theorchid•37m ago•2 comments

We built phone-only laser tag with computer vision and sensor fusion

https://lightwarsar.com/engineering/targeting-system/
1•mrr7337•39m ago•0 comments

When Compilers Disagree About UTF‑8

https://nemanjatrifunovic.substack.com/p/when-compilers-disagree-about-utf8
2•ingve•42m ago•0 comments

Two AI Futures to Choose From

https://www.rameznaam.com/p/two-ai-futures-to-choose-from
2•simonpure•43m ago•0 comments

against “it’s not that deep”. actually, it is

https://velvetnoise.substack.com/p/against-its-not-that-deep-actually
2•jger15•45m ago•0 comments

Show HN: Free Bible study that explains every chapter you read

https://learnofchrist.com
9•not_wowinter14•48m ago•2 comments

Nushell

https://www.nushell.sh/
3•handfuloflight•49m ago•0 comments

$550M in Medical Debt Only Cost $5.5M [video]

https://www.youtube.com/watch?v=Cimg-Xg043Y
3•foxfired•50m ago•0 comments