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

Why pubs are closing: meet the new Gen Z social scene

https://www.cnn.com/2026/07/25/travel/uk-pubs-closing-genz-running-scli-intl
1•andrewstetsenko•1m ago•0 comments

Why you keep buying books you don't read – and why it feels good

https://www.rte.ie/brainstorm/2026/0731/1585316-books-reading-tsundoku-dopamine-psychology/
1•austinallegro•1m ago•0 comments

Prompt Caching in Agents

https://earendil.com/posts/prompt-caching/
1•gmays•3m ago•0 comments

Kioxia CM10 Is Its First PCIe 6.0 Enterprise SSD, Aimed at Nvidia CMX KV Cache

https://www.storagereview.com/news/kioxia-cm10-is-its-first-pcie-6-0-enterprise-ssd-aimed-at-nvid...
1•rbanffy•5m ago•0 comments

Domains by the Numbers

https://www.dotcom.press/archive/domains-by-the-numbers
1•samwho•6m ago•0 comments

Colorado River Water Plan Postpones Reckoning with a Drier Future

https://www.bloomberg.com/news/articles/2026-07-31/colorado-river-water-plan-postpones-reckoning-...
2•toomuchtodo•7m ago•1 comments

Cursor Is Down

https://status.cursor.com
2•Spunkie•8m ago•2 comments

Politics and Emotion at Local-First Conf

https://adamwiggins.com/posts/politics-and-emotion-at-local-first-conf/
1•tobr•10m ago•0 comments

Duff's Device – The C Speed Hack From 1983

https://en.wikipedia.org/wiki/Duff%27s_device
1•bananamogul•10m ago•0 comments

Show HN: Offline Flock Navigation

https://trames.karazajac.io
1•arkwin•12m ago•0 comments

Inequality, Interest Rates, Aging, and the Role of Central Banks (2021)

https://theovershoot.co/p/inequality-interest-rates-aging-and
1•downbad_•13m ago•0 comments

What "Applicable" Means on Windows

https://tridentstack.com/blog/what-applicable-really-means-on-windows
1•Ad3t0•15m ago•0 comments

Don't stop early: Case-folding source code at memory speed

https://github.blog/engineering/architecture-optimization/dont-stop-early-case-folding-source-cod...
1•sbulaev•16m ago•0 comments

Show HN: Vinv – IDE plug-in that finds and fixes bugs, dead code and perf issues

https://github.com/VinvAI/VinvAI
1•sohamac•16m ago•0 comments

AMD splits Zen 7 into three EPYC families for 2028

https://www.tomshardware.com/pc-components/cpus/amd-splits-zen-7-into-three-epyc-families-for-202...
2•rbanffy•16m ago•0 comments

Why your AI startup dies at customer six (and the three-layer fix)

https://github.com/teal-sea/why-your-ai-startup-dies-at-customer-six
2•tlince•18m ago•1 comments

Google withdraws new Earth AI tool after warnings over misinformation risks

https://www.bbc.com/news/articles/c9349yx2ydvo
5•dabinat•19m ago•3 comments

'Everywhere there were pitifully injured people':how a newly unearthed memoir '

https://www.theguardian.com/world/2026/jul/25/hiroshima-memoir-kiyoshi-tanimoto-day-atomic-bomb-f...
1•stevenwoo•19m ago•1 comments

MSCI acquires First Street to expand physical climate risk modeling

https://www.esgdive.com/news/msci-acquires-first-street-expand-physical-climate-risk-modeling/823...
1•toomuchtodo•21m ago•1 comments

Can we see AI's contributions directly in the economy yet? and by how much

https://www.echohive.ai/ai-economy-hidden-productivity
1•echohive42•22m ago•1 comments

The more you buy, the more you lose

https://www.wheresyoured.at/the-more-you-buy-the-more-you-lose/
1•lelanthran•22m ago•0 comments

Technology Radar: An opinionated guide to today's technology landscape

https://www.thoughtworks.com/radar
1•hakkikonu•24m ago•0 comments

Growing a language by Guy Steele [video]

https://www.youtube.com/watch?v=_ahvzDzKdB0
2•azhenley•25m ago•0 comments

Task Manager on the Mac

https://twitter.com/davepl1968/status/2082189145871679587
1•janandonly•26m ago•1 comments

Kafka-UI – Open-Source Web UI for Managing Apache Kafka Clusters

https://github.com/kafbat/kafka-ui
1•hakkikonu•27m ago•0 comments

Predictive Speculative KV Replication for Bursty LLM Inference

https://jwlabs.vercel.app/post/biting-the-bullet
1•shreybirmiwal•27m ago•0 comments

Specializing Speculative Decoding to increase drafter accuracy

https://jwlabs.vercel.app/post/specialization-is-all-speculation-needs
1•shreybirmiwal•28m ago•0 comments

Pygame Tutorial for Beginners: Game Loop, Screen Window, & FPS Explained – No AI

https://www.youtube.com/watch?v=P0IjXbKQfNc
1•shriekdj•28m ago•0 comments

Sqlite.ai Pricing

https://www.sqlite.ai/pricing
1•peter_d_sherman•31m ago•1 comments

Show HN: Claude MIDI Twister – An agent visualizer for a DJ MIDI controller

https://www.dylanfisher.com/claude-midi-twister/
1•dylanfisher•31m ago•0 comments