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

Teaching an LLM to Speak Vestaboard Note: Building Vestaboard AI

https://corti.com/teaching-an-llm-to-speak-vestaboard-note-building-vestaboard-ai/
1•TechPreacher•3m ago•0 comments

kivo: A lightweight desktop teleprompter

https://github.com/rajtilakjee/kivo
1•ilreb•3m ago•0 comments

Extracting sound effects from a Switch game

https://blog.alexbeals.com/posts/extracting-sound-effects-from-a-switch-game
1•dado3212•4m ago•0 comments

Herdr: Agent multiplexer that lives in your terminal

https://github.com/ogulcancelik/herdr
1•mzehrer•4m ago•0 comments

Thai family mourns teen girl found dead in suitcase as Australian arrested

https://www.reuters.com/world/asia-pacific/thai-family-mourns-teen-girl-found-dead-suitcase-austr...
1•petethomas•5m ago•0 comments

Optimizing LLVM's Bump Allocator

https://maskray.me/blog/2026-06-28-optimizing-llvm-bump-allocator
1•jandeboevrie•7m ago•0 comments

Basecoat 1.0

https://github.com/hunvreus/basecoat/releases/tag/1.0.0
1•dabinat•7m ago•0 comments

Trillion-Dollar Borrowing Binge Lifting the Stock Market to Risky Heights

https://www.wsj.com/finance/stocks/the-trillion-dollar-borrowing-binge-lifting-the-stock-market-t...
1•petethomas•12m ago•0 comments

Australia investigating five social media giants for not enforcing ban on kids

https://www.theregister.com/public-sector/2026/06/29/australia-investigating-five-social-media-gi...
2•defrost•16m ago•0 comments

Amazon seller reveals shadow bribery market within Amazon

https://www.mercurynews.com/2026/06/24/amazon-seller-reveals-rare-glimpse-of-shadow-bribery-market/
1•Gaishan•16m ago•0 comments

'Superallowed' alpha decay seen for the first time

https://physicsworld.com/a/superallowed-alpha-decay-seen-for-the-first-time/
2•visha1v•18m ago•0 comments

New model of ocean waves sheds light on the spread of microplastic pollution

https://physicsworld.com/a/new-model-of-ocean-waves-sheds-fresh-light-on-the-spread-of-microplast...
2•visha1v•19m ago•0 comments

PCB-QA: Evaluating LLMs over the First PCB Design Question-Answer Dataset

https://arxiv.org/abs/2606.23704
2•teleforce•27m ago•0 comments

The 1000-mile handshake from Aden to Mangalore

https://drbhaskardasgupta1.substack.com/p/the-1000-mile-handshake
2•trojanalert•27m ago•0 comments

From Prompts to Loops: Building Autonomous Coding Agents

https://animeshgaitonde.medium.com/from-prompts-to-loops-building-autonomous-coding-agents-6135bf...
2•animesh371g•32m ago•0 comments

"Warming Hole" Heat Content Variations Are Caused by Ocean Heat Transport

https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2025GL118383
5•baxtr•39m ago•0 comments

392-Year-Old Bonsai Tree That Survived the Hiroshima Atomic Blast (2024)

https://www.openculture.com/2024/05/this-392-year-old-bonsai-tree-survived-the-hiroshima-atomic-b...
4•vednig•43m ago•0 comments

'Down from Londoners' Are Transforming England's Seaside Towns

https://www.bloomberg.com/news/articles/2026-06-26/londoners-escape-to-england-s-seaside-raises-h...
2•petethomas•46m ago•0 comments

We Built Osmium for Scale

https://osmium.chat/blog/how-we-built-osmium-for-scale/
2•ateesdalejr•46m ago•0 comments

Remember SCANTRON? How did that work? [video]

https://www.youtube.com/watch?v=x2RvPFvR-CI
4•fortran77•48m ago•0 comments

My New Life with the Palantir Chore Coat

https://www.theatlantic.com/technology/2026/06/palantir-chore-coat/687686/
3•colinprince•48m ago•0 comments

PCB-Bench: Benchmarking LLMs for PCB Placement and Routing (ICLR 2026)

https://github.com/digailab/PCB-Bench
3•teleforce•49m ago•0 comments

Age verification is just a precursor to automated attribution of speech

https://nonogra.ph/age-verification-is-just-a-precursor-to-attribution-of-speech-06-29-2026
106•arkhiver•50m ago•19 comments

MFM: PINN based Motion Foundation Model

https://huggingface.co/JuSeongvin/pinn
2•urgentINC•54m ago•0 comments

Breaking the Tokenizer Barrier: On-Policy Distillation Across Model Families

https://arxiv.org/abs/2606.09456
2•Jimmc414•54m ago•0 comments

What Should We Optimize Away?

https://www.autodidacts.io/holistic-optimization/
3•Tomte•55m ago•0 comments

Collider: A meson package manager – A hash proves the bytes, not the source

https://collider.ee/blog/2026-06-28-1500_a_hash_proves_the_bytes_not_the_source/#a-hash-proves-th...
2•mog_dev•58m ago•0 comments

An Open Letter to Pete Buttigieg

https://richprocida.substack.com/p/an-open-letter-to-pete-buttigieg
2•RichProcida•1h ago•0 comments

SpaceX just landed in 401(k)s due to key index rule changes

https://moneywise.com/news/top-stories/spacex-401k-anthropic-openai-ipo-index-fund-rules
4•voxadam•1h ago•0 comments

GraphQL MCP Server and GraphiQL Plugins

https://graphql-mcp.com/
3•robjampar•1h ago•1 comments