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

The GitHub Platform Era Is Over

https://julien.danjou.info/blog/the-github-platform-era-is-over/
1•yruzin•20s ago•0 comments

The Prevention Paradox: Why Successful Resilience Work Becomes Its Own Enemy

https://newsletter.resiliumlabs.com/p/the-prevention-paradox
1•gpi•2m ago•0 comments

Cloudflare removes top open coding models from free tier

https://developers.cloudflare.com/changelog/post/2026-07-28-models-require-workers-paid/
1•ankushKun•4m ago•0 comments

Kimi K3 for local use (1.56TB –> 594GB) compressed by Unsloth

https://huggingface.co/unsloth/Kimi-K3-GGUF
2•pavelai•4m ago•1 comments

Can You Survive the Kobayashi Maru?

https://moai.studio/blog/posts/rewrite-the-simulator.html
1•ionwake•5m ago•0 comments

Why are databases so hard?

http://gtowey.blogspot.com/2026/07/why-are-databases-so-hard.html
1•gtowey•6m ago•0 comments

Personal Instagram Clone: WordPress and ActivityPub

https://fotos.kaffeeringe.de/
1•kaffeeringe•6m ago•1 comments

China starts production of home-grown immersion DUV chipmaking tools

https://www.reuters.com/world/china/china-starts-production-home-grown-immersion-duv-chipmaking-t...
1•dariosalvi78•7m ago•0 comments

Mathematicians Reveal Why Humans Keep Becoming Cannibals

https://www.sciencealert.com/mathematics-reveals-why-human-cannibalism-keeps-reappearing
1•wjSgoWPm5bWAhXB•7m ago•0 comments

Claude Is Down

https://status.claude.com/incidents/q2kg8n613kr3
22•gregsadetsky•8m ago•6 comments

Show HN: Cedric's Quest – A Dragon Quest–Style RPG in Rust and Bevy

https://store.steampowered.com/app/4569680/Cedrics_Quest__The_Waning_Ward/
1•coolwulf•9m ago•0 comments

Its operating system demo (from Computerphile)

https://www.youtube.com/watch?v=hISbyatih44
1•ozymandiax•9m ago•1 comments

Transitioning to the Verification Economy

https://www.unite.ai/transitioning-to-the-verification-economy/
1•Hard_Space•10m ago•0 comments

Built a household organizer in Flutter – what would you improve?

https://apps.apple.com/us/app/roomli-shared-home-organizer/id6761788107
1•mladenConcept•11m ago•0 comments

Unison – Watch YouTube Together, Perfectly in Sync

https://unison.video/
2•r1z4•12m ago•1 comments

Peppa Pig owners win copyright battle against 'impostor' Wolfoo

https://www.bbc.com/news/articles/clyx8lreydno
1•tartoran•12m ago•0 comments

Show HN: Nurb – Agentic CAD for 3D printing

https://github.com/Shpigford/nurb
1•Shpigford•12m ago•0 comments

Why so many Americans moved to the middle of nowhere

https://thehustle.co/newsletters/24-06-2026
1•paulpauper•13m ago•0 comments

Why Kids Can't Quit Roblox

https://www.theatlantic.com/family/2026/07/roblox-kids-gaming-mechanics-gambling/688095/
1•paulpauper•13m ago•0 comments

FAA Approves DoorDash Delivery Drones

https://www.bloomberg.com/news/articles/2026-07-29/faa-approves-doordash-delivery-drones-humans-w...
1•elsewhen•13m ago•1 comments

China Closes the Satellite Gap in Space Race with the U.S.

https://www.wsj.com/world/china/china-closes-the-satellite-gap-in-space-race-with-the-u-s-12b432b0
2•JumpCrisscross•14m ago•0 comments

M64 – ModRetro

https://modretro.com/products/m64?srsltid=AfmBOoqvHORpvx1ASiI3jAS8kaJvJE517iRb81-QB2QWlT9H3UMn9Tu-
2•Tomte•14m ago•1 comments

Frontier Lab Employee Open Letter Calls for Being Able to Pace the Frontier

https://thezvi.substack.com/p/frontier-lab-employee-open-letter
1•paulpauper•15m ago•0 comments

Show HN: Ahoy.navy – A daily sea battle puzzle

https://ahoy.navy/
1•geooff_•16m ago•0 comments

What Is an AI Employee?

https://construct.computer/blog/what-is-an-ai-employee/
1•ankushKun•16m ago•1 comments

The US government just banned Roombas

https://www.theverge.com/policy/972312/us-robot-ban-sweep-up-chinese-vacuums
7•leumon•18m ago•3 comments

Show HN: Turns your GitHub footprint into a map

https://gitcharta.vercel.app/
1•ThierryRkt•19m ago•0 comments

Show HN: Hunch – A local MCP that lets your LLM use your Mac in the background

https://github.com/PrithviSeran/hunch-mcp
1•prithviseran•19m ago•0 comments

Lilian Weng joins OpenAI after saying Thinking Machine's pace hurt her health

https://www.businessinsider.com/lilian-weng-returns-to-openai-after-leaving-thinking-machines-lab...
3•elo2000•19m ago•0 comments

Model Behavior: Taylor Lorenz

https://on.substack.com/p/model-behavior-taylor-lorenz
1•raybb•22m ago•0 comments