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

Ferrari's First Electric Car Runs into Backlash in Italy and Beyond

https://www.nytimes.com/2026/05/27/business/ferrari-luce-electric-ev-backlash.html
1•garyrob•1m ago•0 comments

Inside Xi Jinping’s Strategy to Export Ideas on State Control

https://www.nytimes.com/2026/05/27/world/asia/china-solomons-pacific-security-threats.html
1•Cider9986•4m ago•1 comments

The Sludge on the Wall

https://grox.io/blog/28-the-sludge-on-the-wall/
1•iroddis•5m ago•0 comments

DNS over HTTPS, DNS over TLS, DNS over QUIC: Encrypted DNS Protocol Comparison

https://www.copahost.com/blog/encrypted-dns/
1•ggallas•5m ago•0 comments

Prosody IM 13.0.6 released – An XMPP/Jabber server written in Lua

https://blog.prosody.im/prosody-13.0.6-released/
1•neustradamus•5m ago•0 comments

Delta Steered Around Airline Industry Chaos

https://www.nytimes.com/2026/05/26/business/delta-airlines-ed-bastian.html
1•Cider9986•6m ago•0 comments

Writing Is Fundamental to How We Think

https://www.nytimes.com/2026/05/27/opinion/writing-creativity-ai.html
1•Cider9986•6m ago•0 comments

Paper from 1967 explaining origins of life was initially rejected 15 times

https://spacedaily.com/n-the-paper-that-explained-why-every-living-thing-on-earth-exists-was-reje...
1•Jimmc414•7m ago•1 comments

Is Peter Thiel the Target of Pope Leo's Gandalf Quote? An Investigation

https://arstechnica.com/tech-policy/2026/05/is-peter-thiel-the-target-of-pope-leos-gandalf-quote-...
1•vintagedave•7m ago•0 comments

Create Business DNA

https://labs.google.com/pomelli/
1•modinfo•12m ago•0 comments

Hilbert Transform as an Infinite Matrix

https://www.johndcook.com/blog/2026/05/23/hilbert-transform-as-an-infinite-matrix/
1•ibobev•13m ago•0 comments

Expected IQ Spread on a Jury

https://www.johndcook.com/blog/2026/05/26/expected-iq-spread-on-a-jury/
3•ibobev•13m ago•0 comments

Show HN: Epstein Index – Stock returns of Epstein-linked companies since 2008

https://epstein-index-six.vercel.app/
2•milanmuriithi•13m ago•0 comments

Hacker Just Revealed Tucker's Social Security Live on the Podcast [video][9 Min]

https://www.youtube.com/watch?v=5HfHvuuAmCQ
1•Bender•13m ago•0 comments

Fast Robot Kinematics and Dynamics in Jax

https://github.com/StanfordASL/frax
1•aanet•13m ago•1 comments

Workshop: Launch sandboxed development environments with a single command

https://ubuntu.com/blog/introducing-workshop-sandboxed-development-environments
1•dgavrilov•14m ago•0 comments

Calculating the expected range of normal samples

https://www.johndcook.com/blog/2026/05/26/calculating-expected-normal-range/
1•ibobev•14m ago•0 comments

Why Good Engineers Become Worse with AI

https://nidhish.dev/writing/good-engineers-worse-with-ai/
1•sneruz•19m ago•0 comments

Ask HN: How should universities teach coding now that every student uses AI?

1•devanshranjan•22m ago•1 comments

The Score: How to Stop Playing Someone Else's Game

https://www.lrb.co.uk/the-paper/v48/n10/david-runciman/trivial-pursuits
1•mitchbob•22m ago•1 comments

OpenAI Foundation commits $250M to help navigate AI disruption

https://www.reuters.com/business/openai-foundation-commits-250-million-help-workers-economies-nav...
1•geox•23m ago•1 comments

The fastest way to say each number

https://thegraycuber.com/fast_numbers/
1•marvinborner•23m ago•0 comments

I turned a 3-hour CSV data entry nightmare into a 10-second QuickBooks import

https://www.indiehackers.com/post/how-i-turned-a-3-hour-csv-data-entry-nightmare-into-a-10-second...
1•finconvertly•24m ago•0 comments

Why recessions are usually just bad luck

https://worksinprogress.co/issue/review-recession-the-real-reasons-economies-shrink-and-what-to-d...
2•paulpauper•24m ago•0 comments

Why AI Pipeline Needs Kafka and How Zilla Makes Kafka AI-Ready

https://www.aklivity.io/post/why-ai-pipeline-needs-kafka-how-zilla-makes-kafka-ai-ready
1•luk212•25m ago•0 comments

Cloudflare on Fire

https://medium.com/@kilian.houpeurt/moley-a-free-open-source-ngrok-alternative-using-cloudflare-f...
1•xonery•25m ago•0 comments

The State of AI and Automation Tools in 2026

https://deepresearch.ninja/2026/05/The-State-of-AI-and-Automation-Tools-in-2026/
2•jackalxyz•26m ago•0 comments

Flatpak Next: Dropping Systemd and X11? [video]

https://www.youtube.com/watch?v=Ys44BKMd7i8
1•LelouBil•29m ago•1 comments

What Does a Marine Sniper Think About War in Iran? [video][19 Mins][Language]

https://www.youtube.com/watch?v=TAT-f1iFxaU
1•Bender•29m ago•0 comments

Meta launches Instagram, Facebook and WhatsApp subscriptions including AI plans

https://techcrunch.com/2026/05/27/meta-officially-launches-instagram-facebook-and-whatsapp-subscr...
4•mfiguiere•30m ago•1 comments