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

DoC Announces LoIs With 7 Companies for $874M to Accelerate Semiconductor R&D

https://www.nist.gov/news-events/news/2026/07/department-commerce-announces-letters-intent-7-comp...
1•petethomas•1m ago•0 comments

Create your own startup in minutes

https://moneion.com
1•Developer_2•3m ago•0 comments

Why do OpenAI's GPT-2 weights beat mine? Part three: testing overtraining

https://www.gilesthomas.com/2026/07/why-do-openai-gpt2-weights-beat-mine-3-overtraining
1•gpjt•5m ago•0 comments

Decimen Optical Transfer: fountain-coded QR file transfer

https://github.com/bashalarmistalt/decimen-optical-transfer/
1•thunderbong•8m ago•0 comments

The Automation Mindset: Why AI Rewards Builders and Sidelines Everyone Else

https://digitalmagazines.online/articles/the-automation-mindset-why-ai-rewards-builders
1•FeelingCreative•8m ago•0 comments

What Every Programmer Should Know About Twists of Elliptic Curves

https://leetarxiv.substack.com/p/twists-of-elliptic-curves
1•birdculture•8m ago•0 comments

US cites 'unauthorized travel' to end DACA status for mother deported to Mexico

https://apnews.com/article/daca-immigration-texas-uscis-09071c1707e6e1d385ca503c9c75bc6f
2•petethomas•9m ago•0 comments

Economist Style Plugins for Claude Code

https://github.com/TAJD/economist-style-guide-plugin
1•handfuloflight•11m ago•0 comments

Judge Voices Doubt US Has Justified Its Ban on Anthropic AI

https://www.bloomberg.com/news/articles/2026-07-30/judge-voices-doubt-us-has-justified-its-ban-on...
3•sbulaev•15m ago•0 comments

Cursor Benchmark Partners

https://cursor.com/blog/benchmarkpartners
1•MehrdadKhnzd•19m ago•0 comments

Show HN: A VS Code extension buffers NPM updates to avoid supply chain attacks

https://marketplace.visualstudio.com/items?itemName=about14sheep.tinynpm
1•about14sheep•25m ago•0 comments

Anthropic AI Models Hacked Three Organizations During Tests

https://www.bloomberg.com/news/articles/2026-07-30/anthropic-s-ai-models-hacked-three-organizatio...
3•evo_9•28m ago•0 comments

Show HN: Great Spectations, the Spec Checker

https://greatspectations.com
1•RustyRussell•30m ago•1 comments

NeuronAI turns smart solutions into voice

https://neuronai.uz/en/
3•yutabek•35m ago•0 comments

We accidentally built an LLVM compiler for Jax

https://iza.ac/posts/2026/07/accidental-llvm-compiler-for-jax/
2•infinitewalk•36m ago•0 comments

ISS Mimic

https://iss-mimic.github.io/Mimic/dashboard.html
1•michaefe•38m ago•1 comments

The Religion of Speed

https://graybeard.ing/the-religion-of-speed/
2•MobiusHorizons•38m ago•2 comments

Premier league bans gambling sponsors

https://www.footyheadlines.com/2646571793/betting-ban-takes-effect-no-more-gambling-sponsors-in-t...
3•paoliniluis•41m ago•1 comments

Save and restore may be coming to GNOME

https://lwn.net/Articles/1083750/
1•signa11•42m ago•0 comments

Show HN: Play SNES, gba, in your terminal, even in tmux

https://github.com/jhickner/rom
1•jhickner•42m ago•0 comments

Specula: Scaling formal specs for autonomous model checking of system code

https://arxiv.org/abs/2607.25333
1•matt_d•43m ago•0 comments

Memory-level parallelism: AMD is the king

https://lemire.me/blog/2026/07/25/memory-level-parallelism-amd-is-the-king/
2•signa11•47m ago•0 comments

LLVM AI Tool Use Policy

https://llvm.org/docs/AIToolPolicy.html
1•compiler-guy•47m ago•0 comments

Inkling Small is the highest-scoring open-weight model evaluated by ARC Prize

https://twitter.com/arcprize/status/2082925303601459347
3•thebricklayr•49m ago•0 comments

Hugging Face Incident Initial Post-Mortem

https://cloudsecurityalliance.org/artifacts/hugging-face-ciso-post-mortem
1•hentrep•50m ago•0 comments

Gemini Robotics

https://deepmind.google/models/gemini-robotics/
2•jonbaer•51m ago•0 comments

DeepSeek Founder Liang Wenfeng in His Own Words

https://www.geopolitechs.org/p/deepseek-founder-liang-wenfeng-in
1•gmays•52m ago•0 comments

WTF per Minute – An Actual Measurement for Code Quality

https://muhammad-rahmatullah.medium.com/wtf-per-minute-an-actual-measurement-for-code-quality-780...
1•compiler-guy•52m ago•0 comments

NVIDIA-labs OO Agents: Native Python Object-Oriented Agents

https://github.com/NVIDIA-NeMo/labs-OO-Agents
2•matt_d•52m ago•0 comments

Anthropic AI Models Hacked Three Companies During Tests

https://www.wsj.com/tech/ai/anthropic-ai-models-hacked-three-companies-during-tests-bd752c86
12•bmulholland•57m ago•7 comments