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•12mo ago

Comments

panstromek•12mo 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•12mo 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•12mo 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_•12mo 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_•12mo 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•12mo 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•12mo 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

Fruit Box

https://en.gamesaien.com/game/fruit_box/
1•downboots•1m ago•0 comments

Reviving Koken

https://www.bradleyboy.com/writings/reviving-koken/
1•bradleyboy•1m ago•0 comments

Discord Sleuths Gained Unauthorized Access to Anthropic's Mythos

https://www.wired.com/story/security-news-this-week-discord-sleuths-gained-unauthorized-access-to...
1•wyldfire•2m ago•0 comments

Starting with "Yes"

https://www.darthealth.com/blog/starting-with-yes
1•mooreds•2m ago•0 comments

The AI Compute Crunch Is Here (and It's Affecting the Economy)

https://www.404media.co/the-ai-compute-crunch-is-here-and-its-affecting-the-entire-economy/
2•gasull•8m ago•0 comments

Ukraine marks 40th anniversary of Chornobyl disaster under cloud of war

https://www.reuters.com/world/europe/ukraine-marks-40th-anniversary-chornobyl-disaster-under-clou...
1•onemoresoop•9m ago•0 comments

Harvard students call grading reform 'racist' in petition

https://www.campusreform.org/article/harvard-students-call-grading-reform-racist-petition/29761
2•ivewonyoung•16m ago•3 comments

LLMs Corrupt Your Documents When You Delegate

https://arxiv.org/abs/2604.15597
3•achrono•18m ago•1 comments

Reviving BrowserID in 2026

https://wakamoleguy.com/p/reviving-browserid-in-2026
1•wakamoleguy•26m ago•0 comments

Show HN: deterministic oracle for hardware designs with replayable proofs

https://suprastructure.net
1•suprastructure•27m ago•0 comments

Show HN: Draw Together Online

https://vidzert.com/draw-together
3•vidzert•28m ago•0 comments

Donald Trump is giving psychedelic medicines a welcome boost

https://www.economist.com/business/2026/04/23/donald-trump-is-giving-psychedelic-medicines-a-welc...
1•andsoitis•30m ago•0 comments

Claude Cowork Now Runs Any LLM. Test It Free

https://www.productcompass.pm/p/cowork-on-3p-any-llm
1•obilgic•32m ago•0 comments

Multi-Agent AI Systems Are Eating Single Agents

https://aistackinsights.ai/blog/multi-agent-ai-systems-langgraph-crewai-production-guide
2•aistackinsights•43m ago•0 comments

A Guide to CubeSat Mission and Bus Design

https://pressbooks-dev.oer.hawaii.edu/epet302/
1•o4c•49m ago•0 comments

I have officially retired from Emacs

https://nullprogram.com/blog/2026/04/26/
3•Fudgel•52m ago•0 comments

Reading Vault – free vocab tool that scores comprehension, not memory

https://www.readingvault.app
1•HimaghnaS•1h ago•0 comments

Modelling a Balanced Pencil(2014)

https://thatsmaths.com/2014/06/26/balancing-a-pencil/
1•o4c•1h ago•0 comments

Ask HN: What file sharing apps do you guys use?

3•samarthv•1h ago•2 comments

Can Frontier AI Labs make money?

https://janosmeny.com/blog/can-frontier-ai-labs-make-money/index.html
1•janos95•1h ago•0 comments

Trump evacuated from White House Correspondents' Dinner after shots fired

https://www.abc.net.au/news/2026-04-26/trump-evacuated-white-house-correspondents-dinner-shots-fi...
10•rport•1h ago•7 comments

Does Internet Advertising Work?

https://freakonomics.com/podcast/does-advertising-actually-work-part-2-digital-ep-441/
3•hackthemack•1h ago•3 comments

The American Kill Line

https://jbrr.dev/the-american-kill-line/
6•jbrr•1h ago•0 comments

Open-Source Inference is growing 10% week over week this year

2•luew•1h ago•0 comments

Culina – an OS for multi-location restaurant operations

https://app.getculina.app/login
1•SendjiLabs•1h ago•1 comments

Mechanical forces from the beating heart may help prevent cancer cell growth

https://medicalxpress.com/news/2026-04-mechanical-heart-cancer-cell-growth.html
1•bookmtn•1h ago•0 comments

Evolution Strategies at the Hyperscale [pdf]

https://eshyperscale.github.io/imgs/paper.pdf
1•Anon84•1h ago•0 comments

Aruana – Detects scams and blocks PII before it reaches AI chatbots (100% local)

https://aruana.maiaware.com/
1•rolsite•1h ago•0 comments

When the cheap one is the cool one

https://arun.is/blog/cheap-cool/
1•ddrmaxgt37•1h ago•0 comments

Why Volcanoes Sometimes Shoot Out Lightning

https://nautil.us/why-volcanoes-sometimes-shoot-out-lightning-1280235
1•Brajeshwar•1h ago•0 comments