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

America is experiencing a productivity miracle

https://www.economist.com/finance-and-economics/2026/05/11/america-is-experiencing-a-productivity...
1•mackmcconnell•1m ago•0 comments

Turritopsis Dohrnii

https://en.wikipedia.org/wiki/Turritopsis_dohrnii
1•thelastgallon•3m ago•0 comments

Loading/running every LLM with 4M ctx in 3 clicks

https://old.reddit.com/r/Hugston/comments/1tbgrbb/4_million_ctx_for_every_ai_llm_model/
1•trilogic•3m ago•0 comments

DuckDB Quack Announcement [video]

https://www.youtube.com/watch?v=RQBhuL9Ve8g
1•fredguth•6m ago•0 comments

The Unmet Needs Index

https://www.convoke.bio/blog/introducing-the-unmet-needs-index
3•ray__•9m ago•0 comments

How AI Is Making Us All Dumber [video]

https://www.youtube.com/watch?v=eSABedBwZjQ
2•mooreds•10m ago•0 comments

All the demons hiding in your AIs

https://drtompollak.substack.com/p/all-the-demons-hiding-in-your-ais
1•gmays•10m ago•0 comments

Companies start getting tariff refunds after Supreme Court decision

https://www.cnbc.com/2026/05/12/trump-tariff-refunds.html
2•tcp_handshaker•11m ago•0 comments

Apple will soon start using AI-generated presenters on its Sales Coach app

https://9to5mac.com/2026/05/12/apple-will-soon-start-using-ai-generated-presenters-on-its-sales-c...
1•cdrnsf•12m ago•0 comments

Twin brothers wipe 96 government databases minutes after being fired

https://arstechnica.com/tech-policy/2026/05/drop-database-what-not-to-do-after-losing-an-it-job/
1•jnord•13m ago•0 comments

The revolt against I-Ready: Private equity-backed education software faces fury

https://www.nbcnews.com/news/education/iready-school-software-faces-parent-teacher-student-fury-r...
1•Umofomia•14m ago•0 comments

I Bought a "Junk" PSP from Japan: Here's How It Went

https://gardinerbryant.com/i-bought-a-junk-psp-from-japan-heres-how-it-went/
1•Kate0CoolLibby•14m ago•0 comments

Subvert: The music platform owned by its community

https://www.subvert.fm/
1•vectordust•15m ago•0 comments

Preview bill is now available

https://copilot-billing-preview.github.com/
1•predkambrij•17m ago•0 comments

Empathy as Principal Computation Substrate

1•mimoos•23m ago•0 comments

Two Thousand Line educational operating system released by Cornell University

https://github.com/yhzhang0128/egos-2000
3•argosopentech•28m ago•1 comments

DeepSeek V4's indexer dies at 65K. We got it to 1M on 6GB

https://arxiv.org/abs/2605.02568
4•OsamaJaber•28m ago•0 comments

Mm-ctx – fast, multimodal context for agents

https://huggingface.co/posts/spillai/891696740911772
2•visioninmyblood•32m ago•1 comments

Open Source Claude Code Offer to Help

1•diavelguru•35m ago•0 comments

Idle Musings on 201

https://www.solipsys.co.uk/ZimExpt/IdleMusingsOn201.html
1•ColinWright•38m ago•0 comments

Fossier – GitHub spam prevention for open source repositories

https://github.com/PThorpe92/fossier
1•pabs3•38m ago•0 comments

Ask HN: Does anyone know what a monad is?

3•etrvic•38m ago•2 comments

Canvas's owner strikes deal with hackers who disrupted schools

https://www.washingtonpost.com/education/2026/05/12/canvass-owner-strikes-deal-with-hackers-who-d...
1•TruffleLabs•40m ago•2 comments

Jho Low, Fugitive Behind 1MDB Scandal, Seeks Pardon from Trump

https://www.wsj.com/finance/jho-low-fugitive-behind-1mdb-scandal-seeks-pardon-from-trump-2ce04db1
3•impish9208•41m ago•1 comments

Why This Is Not a Newsletter

https://nathanschneider.info/2026/05/why-this-is-not-a-newsletter/
1•ntnsndr•42m ago•0 comments

I built a free PII scanner for LLM prompts. No signup needed

https://aisecuritygateway.ai/ai-leak-checker
2•binugeorge•42m ago•0 comments

The Cults of TDD and GenAI

https://drewdevault.com/blog/Cult-of-TDD-and-LLMs/
3•pabs3•43m ago•0 comments

AOHell

https://www.fastcompany.com/91356468/how-aohell-presaged-the-age-of-computer-insecurity
2•ada1981•45m ago•0 comments

Restore full BambuNetwork support for Bambu Lab printers

https://github.com/FULU-Foundation/OrcaSlicer-bambulab
3•Murfalo•45m ago•1 comments

DogVida A navigation system for your dog's health

https://www.dogvida.net
1•neeerah•46m ago•0 comments