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

Training-free asynchronous agents playing DOOM

https://dvmazur.github.io/async_llm/
1•dvmazur•17s ago•0 comments

The Assumption That Changes the AI Debate [video]

https://www.youtube.com/watch?v=ZUzfGELUOUo
1•mooreds•42s ago•0 comments

Beware: Real risks of using AI as a software dev team

https://brettcodes.com/beware/
1•ahlCVA•57s ago•0 comments

Oxford Street to be pedestrianised from October

https://www.bbc.co.uk/news/articles/c80460xzq5zyo
1•denysonique•1m ago•0 comments

Poll on government budget balancing priorities

https://yougov.com/en-gb/daily-results/20260908-6212f-1
1•mooreds•1m ago•0 comments

Whole-exome sequencing OCD&chronic tic disorder IDs 36 large-effect risk genes

https://www.nature.com/articles/s41593-026-02419-5
1•bookofjoe•1m ago•0 comments

I, Rubikcubist: 30 Twisted Works of Rubik's Cube Art

https://weburbanist.com/2010/06/27/i-rubikcubist-30-twisted-works-of-rubiks-cube-art/
1•vhawk19•3m ago•0 comments

Trump is will announce a $200B investment in the U.S. by South Korea today

https://seekingalpha.com/news/4648288-trump-set-to-unveil-200b-south-korean-u-s-investment-plan
1•haebom•3m ago•0 comments

Cloudflare Monetization Gateway Beta

https://blog.cloudflare.com/monetization-gateway-beta/
1•ENOMEM•3m ago•0 comments

LocalThings: SmartThings devices in HomeAssistant without a cloud connection

https://github.com/mbillow/localthings
1•dwennemar•4m ago•0 comments

My hyper-productivity morning routine

https://devz.cl/posts/my-hyper-productivity-routine/
1•DanielVZ•4m ago•0 comments

Chinese Cars Are Now Achieving 5-Star Safety Ratings

https://www.core77.com/posts/145347
2•surprisetalk•4m ago•1 comments

Sub-two-second LLM-driven NPC behavior in a 3D action game

https://emcom.ai/2026/09/26/the-quest-for-real-time/
1•emcom•5m ago•0 comments

List of disasters in the United States by death toll

https://en.wikipedia.org/wiki/List_of_disasters_in_the_United_States_by_death_toll
1•tech-historian•6m ago•0 comments

As a general rule, calling product support while drunk is not recommended

https://devblogs.microsoft.com/oldnewthing/20260929-00/?p=112740/
2•ibobev•7m ago•0 comments

C++26: The New Debugging Header

https://www.sandordargo.com/blog/2026/09/30/cpp26-debugging
1•ibobev•7m ago•0 comments

Intel patent outlines embedding MicroLEDs directly into CPU package

https://www.tomshardware.com/pc-components/cpus/intel-patent-outlines-embedding-microleds-directl...
1•rbanffy•9m ago•0 comments

DreamZero: World Action Models Are Zero-Shot Policies

https://dreamzero0.github.io/
1•ronfriedhaber•9m ago•0 comments

Show HN: My notes on Personal AI and why chat-based agents don't work

https://sj.substack.com/p/rebuilding-seek-around-personal-ai
1•sdrth•9m ago•0 comments

Drive-By Proving

https://ericdaimler.substack.com/p/drive-by-proving
1•emil-lp•10m ago•0 comments

Texas Electric Utility Only Considered Gas to Power $10B Meta Data Center

https://insideclimatenews.org/news/24092026/el-paso-electric-only-considered-gas-to-power-meta-da...
1•paimapi•15m ago•0 comments

What Would John Maynard Keynes Say About A.I.? The Keynes Bot Told Us

https://www.nytimes.com/2026/09/30/opinion/john-maynard-keynes-ai-economist.html
1•joshhart•17m ago•0 comments

Joe vs. Elan: The terrifying mechanics of a automated, student-run prison system

https://elan.school/chapter-1-5/
1•bingowasthename•17m ago•0 comments

How do you deal with people who strongly disagree with your views?

https://lemire.me/blog/2026/09/30/how-do-you-deal-with-people-who-strongly-disagree-with-your-views/
1•ibobev•20m ago•0 comments

Every list on GitHub, searchable, scored and kept fresh

https://awesomelist.link/
2•pathwaysdigital•20m ago•1 comments

Apple's Reference Image tech that "sets a new standard for verifiable" photos

https://www.dpreview.com/opinion/breaking-down-apples-reference-image-tech-that-it-says-sets-a-ne...
1•sohkamyung•20m ago•0 comments

Boeing "incredibly excited" to serve as nation's only astronaut transportation

https://arstechnica.com/space/2026/09/boeing-incredibly-excited-to-serve-as-nations-only-astronau...
2•rbanffy•21m ago•0 comments

Singapore launches matchmaking service for government workers

https://www.bbc.com/news/articles/cqzjzr893yv4o
1•doppp•21m ago•0 comments

Show HN: AtLeast – an Apple Watch timer that goes silent when you're done

https://apps.apple.com/us/app/atleast-silent-timer/id6759622997
1•leogdion•22m ago•0 comments

Griffin's Landmark Gift Will Shape the Future of Higher Education

https://www.cmu.edu/news/stories/archives/2026/september/griffins-landmark-gift-will-shape-the-fu...
1•doppp•22m ago•0 comments