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

Are.na – On Our API

https://www.are.na/editorial/on-our-api
1•colinprince•17s ago•0 comments

Classrooms lean into analog learning in the AI era

https://www.axios.com/2026/05/30/no-screen-school-technology-parents-ai
1•1vuio0pswjnm7•33s ago•0 comments

Unveiling Maxint 2.23: The Modular Financial OS for Founders, Freelancers

https://maxint.com/blog/maxint-2-23-release
1•pcvetkovski•6m ago•0 comments

A visual mental model of how weights and tokens connect

https://github.com/behnia137/ai-for-beginners-visual
2•Beni137•16m ago•1 comments

HHS Unveils Plan to Combat Lyme Disease and Advance Treatment

https://www.hhs.gov/press-room/hhs-unveils-plan-to-combat-lyme-disease.html
2•ki4jgt•16m ago•0 comments

VC Summer Student Bootcamp

https://fff-hub.com/startup-bootcamp
1•danielaromerooo•16m ago•0 comments

Five facts about smell (2014)

https://alicebartlett.co.uk/blog/five-facts-about-smell
2•downbad_•17m ago•0 comments

Robotaxis Are Spreading Across the U.S.–and So Is the Backlash

https://www.wsj.com/business/autos/robotaxis-are-spreading-across-the-u-s-and-so-is-the-backlash-...
2•voxadam•18m ago•0 comments

Mechanical Pencin: A website about the hidden engineering in everyday objects

https://mechanical-pencil.com/
2•Muhammad523•22m ago•1 comments

AI grifters are creating fake Black people to sell Shein junk

https://www.theverge.com/ai-artificial-intelligence/938844/ai-tiktok-shop-blackface-shein-dropshi...
3•1vuio0pswjnm7•23m ago•0 comments

Movie geologists have an over 30% mortality rate

https://onlinelibrary.wiley.com/doi/10.1111/gto.70014
4•signorovitch•24m ago•0 comments

Blue Origin and Amazon Had Momentum. Then Came the Fireball

https://www.nytimes.com/2026/05/29/technology/blue-origin-amazon-rocket-explosion.html
2•1vuio0pswjnm7•29m ago•0 comments

Ozempic may be reshaping the brain, scientists say

https://www.washingtonpost.com/health/2026/05/28/ozempic-may-be-reshaping-brain-scientists-say/
2•breve•33m ago•0 comments

OpenRidingController – DIY horse riding controller for the PC

https://github.com/Squalius-cephalus/OpenRidingController
2•zdw•40m ago•1 comments

What the Community Is Running

https://huggingface.co/hardware
3•kristianpaul•40m ago•0 comments

CIFSwitch: A non-universal Linux local root vulnerability

https://heyitsas.im/posts/cifswitch/
2•campuscodi•45m ago•0 comments

Why I'm still building a SaaS company in 2026

https://www.vincentchan.vc/why-im-building-a-saas-company-during-the-saaspocalypse
1•cvince•51m ago•0 comments

Dell, Snowflake, and Ford show how the AI boom is spreading: Alpha Check

https://finance.yahoo.com/markets/article/dell-snowflake-and-ford-show-how-the-ai-boom-is-spreadi...
2•wslh•51m ago•0 comments

Show HN: Lite-Harness – Self-Hosted Cursor Agents (Use Claude Code/OpenCode)

https://github.com/LiteLLM-Labs/lite-harness
3•detente18•56m ago•0 comments

OpenRouter more than doubles valuation to $1.3B in a year

https://techcrunch.com/2026/05/26/openrouter-more-than-doubles-valuation-to-1-3b-in-a-year/
1•gmays•56m ago•0 comments

Keep AI Weird

https://www.economist.com/by-invitation/2026/04/01/the-it-department-where-ai-goes-to-die
1•sanj•1h ago•0 comments

Algebra of Contexts

https://suign.github.io/
1•suiGn•1h ago•0 comments

Exotic prime numbers could be hiding inside black holes

https://www.scientificamerican.com/article/are-prime-numbers-hiding-inside-black-holes/
6•ah27182•1h ago•1 comments

US Military personnel are being targeted using location data

https://www.reuters.com/business/media-telecom/pentagon-says-us-military-personnel-are-reportedly...
2•black6•1h ago•0 comments

Robots are redefining the war in Ukraine – and forcing Russia onto the back foot

https://www.cnn.com/2026/05/30/europe/ukraine-robots-drones-russia-war-intl
3•lexandstuff•1h ago•0 comments

The Kingdom of Rui Reis

https://forbetterscience.com/2026/05/19/the-kingdom-of-rui-reis/
1•luckys•1h ago•0 comments

Autonomous Retail Experiment 2

https://shish.substack.com/p/from-photo-to-figurine-an-autonomous
1•5h15h•1h ago•0 comments

A case for an Autonomy Kernel

https://autonomykernel.org/
1•offbeatport•1h ago•1 comments

Microsoft degrades functionality of perpetually-licensed offline products

https://consumerrights.wiki/w/Microsoft_Office_2019_and_2021_for_Mac_view-only_conversion_(2026)
178•antipurist•1h ago•65 comments

The Case for California's Billionaire Wealth Tax

https://www.nytimes.com/interactive/2026/05/26/opinion/wealth-tax-california-billionaire.html
5•JumpCrisscross•1h ago•1 comments