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

Show HN: I replaced $500/mo in freelance tools with 20 ChatGPT prompts

https://medium.com/@promptalex53/1c857c6f424a
1•promptalex53•1m ago•0 comments

WordStar: A Writer's Word Processor (1996)

https://www.sfwriter.com/wordstar.htm
1•droidjj•2m ago•0 comments

Meta asks California lawmakers for shield from child harm penalties

https://www.politico.com/news/2026/06/26/exclusive-meta-asks-california-lawmakers-for-shield-from...
1•donsupreme•5m ago•0 comments

Smugglers Create Fake Google Maps Car, US Border Patrol Catches

https://www.autoevolution.com/news/smugglers-create-fake-google-maps-car-border-patrol-agents-act...
1•gnabgib•10m ago•0 comments

Ask HN: MacBook vs. Dedicated GPU for LLM

2•mzubairtahir•14m ago•0 comments

OpenData – Open-Source and Object Store Native Databases

https://www.opendata.dev/
1•apurvamehta•18m ago•0 comments

Love Conquers Fear: Humanity, AI, and the Age of Abundance for All

https://www.amazon.com/Love-Conquers-Fear-Humanity-Abundance-ebook/dp/B0GX32NPX5
1•ilreb•23m ago•0 comments

Boeing 777 makes dangerous ~25ft low pass over Horseshoe Bay Resort Jet Center

https://twitter.com/EBaviation/status/2069953669710110852
2•leetrout•28m ago•0 comments

Threats to US payment rails helped trigger Bessent's AI worries

https://www.semafor.com/article/06/26/2026/bessent-engaged-on-ai-following-warnings-about-fed-pay...
1•tiahura•30m ago•0 comments

Kohana, a prediction market where you write the question

https://kohana.xyz/
1•melan13•35m ago•0 comments

Rheinmetall gambled on Germany's doomed warship project – and lost

https://www.ft.com/content/e3fa2351-72bd-40e1-97e0-5a6ae0a63a2b
2•JumpCrisscross•43m ago•1 comments

Where production policy belongs: building Eliya in public

https://foojay.io/today/where-production-policy-belongs-building-eliya-in-public/
2•fahimfarookme•45m ago•3 comments

Anatomy of a Failed (Nation-State?) Attack

https://grack.com/blog/2026/06/25/dissecting-a-failed-nation-state-attack/
2•signa11•50m ago•0 comments

Ornith-1.0: Self-Scaffolding LLMs for Agentic Coding

https://deep-reinforce.com/ornith_1_0.html
3•modinfo•52m ago•0 comments

Ukrainian Attacks Spur State of Emergency Declaration in Crimea

https://www.nytimes.com/2026/06/26/world/europe/crimea-ukraine-state-emergency.html
4•JumpCrisscross•52m ago•0 comments

Codex-maxxing for long-running work

https://openai.com/index/codex-maxxing-long-running-work/
1•gmays•58m ago•0 comments

Software Is Becoming Marketing

https://www.terezatizkova.com/writing/software-abundance
2•tylerdane•1h ago•0 comments

Cybersecurity firms targeted by fraudulent OpenAI organization invites

https://www.bleepingcomputer.com/news/security/cybersecurity-firms-targeted-by-fraudulent-openai-...
1•Timofeibu•1h ago•0 comments

For Peter

https://lucybellwood.com/for-peter/
3•wonger_•1h ago•1 comments

How China Is Gutting Western Automakers (2025)

https://newsletter.dunneinsights.com/p/how-china-is-gutting-western-automakers
1•toomuchtodo•1h ago•0 comments

A man who did nothing, brilliantly

https://theidlegazette.beehiiv.com/p/the-man-who-did-nothing-brilliantly-5
1•vinhnx•1h ago•0 comments

Accidental Anonymity

https://macwright.com/2026/06/24/accidental-anonymity
1•herbertl•1h ago•0 comments

National College Entrance Examination Collection - Math – China

https://github.com/deekur/gaokaomath
1•pm2222•1h ago•0 comments

Daytona is going closed source. Here's why

https://www.daytona.io/dotfiles/updates/daytona-is-going-closed-source
4•david_shi•1h ago•1 comments

Thermodynamic gravity explains cosmic acceleration without dark energy

https://phys.org/news/2026-06-thermodynamic-approach-gravity-cosmic-dark.html
3•stevenjgarner•1h ago•1 comments

Study on the effects of listening to podcasts on headphones vs. speakers

https://www.sciencedirect.com/science/article/abs/pii/S0749597822000176
2•Curiositry•1h ago•0 comments

Being a Dad

https://www.derekthompson.org/p/three-reasons-to-be-a-parent
2•Curiositry•1h ago•1 comments

AI Erodes a Legacy of Reading

https://molochinations.substack.com/p/ai-erodes-a-legacy-of-reading
8•domhudson•1h ago•4 comments

The Permission Slip

https://www.cringely.com/2026/05/28/the-permission-slip/
2•B1FF_PSUVM•2h ago•1 comments

Iterating Faster with TypeScript 7

https://code.visualstudio.com/blogs/2026/06/26/iterating-faster-with-ts-7
4•soheilpro•2h ago•2 comments