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

El Niño projected to cause 450k deaths in next six months

https://www.theguardian.com/environment/2026/sep/23/el-nino-450000-extra-deaths-six-months
1•ljf•1m ago•0 comments

Mastering LLM Inference Optimization

https://machinelearningmastery.com/the-roadmap-to-mastering-llm-inference-optimization/
1•geoffbp•2m ago•0 comments

The Rio Grande's pecan problem (2025)

https://www.hcn.org/issues/57-9/the-rio-grandes-pecan-problem/
1•littlexsparkee•8m ago•0 comments

Show HN: Visually orchestrate Claude Code AI agents

https://github.com/rondoflow/rondoflow
1•bdearch•8m ago•0 comments

Benzi – Code Intelligence MCP/Harness beating Claude Code and CodeGraph

https://varianttech.net
1•tweedler290•10m ago•1 comments

A Summer of AI Optimization

https://lemire.me/blog/2026/09/22/a-summer-of-ai-optimization/
1•signa11•13m ago•0 comments

Serious editors are a commitment (at least for me)

https://utcc.utoronto.ca/~cks/space/blog/tech/EditorsAreACommitment
1•signa11•16m ago•1 comments

Empire of Grift

https://www.theatlantic.com/magazine/2026/10/maga-foreign-policy/688352/
1•rbanffy•17m ago•0 comments

CIC + EM ⊢ Con(ZF)

https://arxiv.org/abs/2609.23143
1•matt_d•18m ago•0 comments

Fifty Years of Open Source Software Supply Chain Security

https://queue.acm.org/doi/10.1145/3722542
2•signa11•18m ago•0 comments

One public idea you can take further

https://actwise.ai/home/intel
1•jay-wu•18m ago•1 comments

Three brain myths that need to die

https://nicholaraihani.substack.com/p/three-brain-myths-that-need-to-die
1•Pamar•19m ago•0 comments

Let's make billion dollar companies richer

1•rexma•23m ago•2 comments

Province of BC Sues OpenAI and Sam Altman over Tumbler Ridge School Shooting

https://www.theguardian.com/technology/2026/sep/22/british-columbia-sues-openai-sam-altman-tumble...
3•johnnyApplePRNG•29m ago•1 comments

Cat of War

https://medium.com/luminasticity/cat-of-war-a586bf425ebc
1•bryanrasmussen•30m ago•0 comments

Modern Mac Hosts-File editor «Hedit» now open source and free to use

https://github.com/valtlfelipe/hedit/releases
1•inex•31m ago•0 comments

How often do you think about the 1893 World's Fair?

https://www.thebirthofacapital.info/chicago-worlds-fair-tataria-ware-larsen/
2•bryanrasmussen•31m ago•0 comments

Dan Greenheck: "I think it's time to hang up my Three.js hat."

https://twitter.com/dangreenheck/status/2102137910921240807
2•thunderbong•31m ago•0 comments

Opus 5.5 turned Ozymandias into a cinematic browser animation

https://www.echohive.ai/ozymandias
1•echohive42•35m ago•0 comments

Who Wants Artificial?

https://blog.jim-nielsen.com/2026/who-wants-artificial/
1•Curiositry•41m ago•1 comments

Sandboxing with Minimal Effort

https://yorickpeterse.com/articles/sandboxing-with-minimal-effort/
1•thatslast•44m ago•0 comments

US Denmark agreement enhanced veto rights over Greenland econ and military

https://www.whitehouse.gov/briefings-statements/2026/09/agreement-between-the-government-of-the-u...
2•rzerowan•48m ago•1 comments

Making Linux prove a governed action before execution

https://github.com/KnowledgeeKZA3224/linux-coherence-gate
1•Knowledgee_KZA•54m ago•0 comments

Fpp – a utility to pick file paths out of command output

https://github.com/facebook/PathPicker
2•Curiositry•55m ago•0 comments

Pg_chdb, fast imports from object storage to Postgres using COPY

https://github.com/ClickHouse/pg_chdb
1•saisrirampur•56m ago•0 comments

Show HN: Is your repo giving coding agents two different answers?

https://www.zfinia.com/cursed
1•Aussie155•57m ago•0 comments

Google Found the Pages. ChatGPT Found the Entity

https://www.richresults.ai/same-entity-different-retrieval.html
2•spetschinka•1h ago•1 comments

Netflix is in the doldrums. A comeback is unlikely, Wells Fargo says

https://www.cnbc.com/2026/09/18/netflix-is-in-the-doldrums-a-comeback-is-unlikely-wells-fargo-say...
3•porridgeraisin•1h ago•0 comments

Irish data protection watchdog fines Google €403M over GDPR breaches

https://www.irishtimes.com/business/2026/09/21/irish-data-protection-watchdog-fines-google-403m-o...
3•1vuio0pswjnm7•1h ago•0 comments

TempleOS in 100 Seconds [video]

https://www.youtube.com/watch?v=h7gf5M04hdg
2•metadat•1h ago•0 comments