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

Meta faces higher borrowing costs in latest $12B data centre financing

https://www.ft.com/content/822628c5-4f9c-47db-bd27-f3ad7f841700
1•mapping365•1m ago•1 comments

How Russia's nuclear-powered 'Skyfall' missile works

https://www.npr.org/2026/06/18/nx-s1-5843252/russia-nuclear-powered-missile-burevestnik
1•rbanffy•2m ago•0 comments

Strix: Autonomous Security Platform

https://www.strix.ai/
1•handfuloflight•5m ago•0 comments

Using Gemini to Manage a Farm

https://blog.google/innovation-and-ai/models-and-research/gemini-models/using-gemini-to-manage-farm/
2•simonpure•9m ago•0 comments

Robot Dogs Are a Security Nightmare [video]

https://www.youtube.com/watch?v=lA8WuXDXfcI
1•Bender•15m ago•0 comments

Couple Stalked by eBay Settle for $56M

https://www.nytimes.com/2026/07/28/technology/ebay-settles-stalking-case.html
4•xnx•17m ago•1 comments

The Cipher Behind QSYRUPWD: Reconstructing IBM i Password Hashes

https://blog.silentsignal.eu/2026/07/28/the-cipher-behind-qsyrupwd-reconstructing-ibm-i-password-...
1•kencausey•17m ago•1 comments

FileGRC: Git and file-based SoC 2

https://github.com/Sunpeak-AI/FileGRC
1•handfuloflight•17m ago•0 comments

Pixar's Layoffs Came Days After Receiving a $26M Tax Credit

https://amidamidi.substack.com/p/pixars-layoffs-came-days-after-receiving
2•ani_obsessive•18m ago•0 comments

Show HN: MKPM – GNU Make Package Manager

https://github.com/fe18m/mkpm
1•f18m•18m ago•1 comments

Show HN: list55.com: Transcribe a list into plain text

https://list55.enzom.dev/
1•emadda•19m ago•0 comments

Show HN: Hamza Mask secrets and PII before Claude Code or Codex sends them

https://github.com/softcane/hamza
1•pradeep1177•19m ago•0 comments

Advantages and disadvantages of Windows NT 3.1

https://dfarq.homeip.net/advantages-and-disadvantages-of-windows-nt-3-1/
1•birdculture•19m ago•0 comments

Running Kimi K3 on a M1 Mac

https://github.com/gavamedia/deltafin
8•tito•20m ago•0 comments

A Vine in the Wind

https://blog.sao.dev/vine-in-the-wind/
1•stuartaxelowen•20m ago•0 comments

Distilling the Moat

https://blog.dshr.org/2026/07/distilling-moat.html
1•gmays•22m ago•0 comments

Wordfence Prism AI Vulnerability Detector Finds Backdoored WordPress Plugin

https://www.wordfence.com/blog/2026/07/wordfence-prism-detected-backdoored-wordpress-plugin-withi...
2•leecoursey•26m ago•0 comments

LLMs Will Benefit from Scratch Workspaces

https://win-vector.com/2026/07/28/llms-will-benefit-from-scratch-workspaces/
3•jmount•26m ago•0 comments

Show HN: CogniKernel; AI Coding with cross session and cross platform memory

https://github.com/KanishkNoir/cognikernel
2•KanishkNoir•26m ago•0 comments

My Personal Software Journey: Self-Hosting Agent-Built Apps on a Mac Mini

https://metedata.substack.com/p/016-my-personal-software-journey
2•young_mete•27m ago•0 comments

The word is not the food

https://thetraces.substack.com/p/the-word-is-not-the-food
3•feldrim•30m ago•0 comments

The consumable space data center

https://networkingnerd.net/2026/07/28/the-consumable-space-data-center/
2•tatersolid•30m ago•0 comments

The Forgetting Machine

https://thetraces.substack.com/p/the-forgetting-machine
2•feldrim•30m ago•0 comments

Visa time limits on foreign PhD students and postdocs will harm U.S. science

https://www.statnews.com/2026/07/28/dhs-visa-policy-change-international-students-scientific-rese...
4•Jimmc414•31m ago•0 comments

Wikimedia Won't Voluntarily Recognize Union a Supermajority of Its Workers Want

https://www.404media.co/wikimedia-waits-until-after-its-massive-conference-to-say-it-wont-volunta...
4•pizzaiolo•31m ago•0 comments

Point AI at a "Proven" Microkernel?

2•RantyDave•32m ago•0 comments

Anthropic publishes a practical key-recovery attack on HAWK-256

https://github.com/anthropics/cryptography-research-demo
8•bakigul•32m ago•0 comments

Farmers Are Getting Control of Their Equipment Back

https://www.eff.org/deeplinks/2026/07/farmers-are-getting-control-their-equipment-back
7•Jimmc414•33m ago•0 comments

Iran Has Figured Out How to Overwhelm U.S. Air Defenses

https://theintercept.com/2026/07/28/iran-missiles-drones-us-air-defenses/
10•Jimmc414•34m ago•3 comments

AI Shi(f)ts the Cost to the Reader

https://aloutfi.com/writing/ai-shifts-the-cost-to-the-reader
4•anloutfi•35m ago•1 comments