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 Cult of the Damned

https://zhenyi.gibber.blog/the-cult-of-the-damned
1•latexr•59s ago•0 comments

AI won't suppress legal rates

https://lexifina.com/blog/who-keeps-the-ai-efficiency
1•alansaber•1m ago•0 comments

Software developers are not okay

https://www.baldurbjarnason.com/2026/05-software-developers-are-not-okay/
1•AloysB•3m ago•0 comments

Feynman Explains What Is Electricity Made of According to Quantum Physics [video]

https://www.youtube.com/watch?v=Jt3lecwcpiE
1•binyu•3m ago•0 comments

ADM Lang

https://adm-lang.dev/
2•cthackers•10m ago•0 comments

Lichess Board Editor now supports importing board positions from images

https://bsky.app/profile/lichess.org/post/3mxc7gchuzd22
2•nmstoker•14m ago•0 comments

Chronophase: A fantastic UX to experiment with music and sound

https://chronophase.vercel.app/
1•sachaa•17m ago•0 comments

The Challenge of US Rural Development

https://conversableeconomist.com/2026/10/06/the-challenge-of-us-rural-development/
1•colinprince•19m ago•0 comments

PD's New Flock Policy Just Shows How Little It Was Doing Before the Blowback

https://www.techdirt.com/2026/10/07/pds-new-policy-for-flock-cameras-just-shows-how-little-it-was...
1•hn_acker•20m ago•1 comments

AI to Fight World Hunger

https://features.csis.org/ai-to-fight-world-hunger/
2•gmays•23m ago•0 comments

IBM Finds 400 Vulnerabilities

https://newsroom.ibm.com/2026-10-06-ibm-and-red-hat-remediate-more-than-400-previously-unknown-op...
2•____tom____•25m ago•1 comments

I'm in love with a German film star

https://heatherburns.tech/2026/10/01/im-in-love-with-a-german-film-star/
9•hn_acker•27m ago•0 comments

Apple Watch Series 12 / Ultra 4 Owners Report Skin Irritation

https://www.macrumors.com/2026/10/07/apple-watch-series-12-skin-irritation/
3•dabinat•28m ago•0 comments

Neural Network Diagram Compiler

https://lens-compiler.dk.workers.dev
1•measurablefunc•29m ago•0 comments

Meta's Copyright System Is Being Weaponized Against Albanian Protesters

https://www.wired.com/story/metas-copyright-system-is-being-weaponized-against-albanian-protesters/
2•hn_acker•34m ago•0 comments

Your Brain Might Be a Quantum Machine [video]

https://www.youtube.com/watch?v=VjlX7w_CjqQ
3•jonbaer•36m ago•0 comments

Claude Max and Teams plans now forced to API (Oct 7th update)

1•mattstarfield•38m ago•0 comments

Intelligence Is Not Expertise

https://www.sebastianmellen.com/post/2026/intelligence-is-not-expertise/
1•sebmellen•39m ago•0 comments

Show HN: Festival: A Vibe Engineering Framework

https://github.com/Obedience-Corp/festival
1•lancekrogers•42m ago•1 comments

The Strange Power of Coincidence

https://www.theatlantic.com/newsletters/2026/10/strange-power-of-coincidence/688880/
2•bookofjoe•42m ago•1 comments

Show HN: Reflex – a cold-start GGUF engine that runs Aleph Alpha's Kolibri-1

https://github.com/lateos-ai/reflex
1•leochong•45m ago•0 comments

IngeTrazo – Open-Source SketchUp Clone

https://github.com/ingelibre/ingetrazo
1•dmacedo•46m ago•0 comments

How I use Claude Code subagents to make my Claude Pro limits last longer

https://www.andreagrandi.it/posts/claude-code-subagents-to-save-usage/
1•andreagrandi•49m ago•0 comments

Building Harvey's MCP Policy Engine

https://www.harvey.ai/blog/building-harveys-mcp-policy-engine
1•suhacker256•52m ago•0 comments

Workers: Simulation Environments for Verifying Mission Critical Software

https://workers.io/
1•handfuloflight•56m ago•0 comments

The Oktoberfest Cartel

https://www.mondayeconomist.com/p/oktoberfest-cartel
1•NomNew•56m ago•0 comments

I Benchmarked Databricks Against My iPhone

https://www.fivetran.com/blog/i-benchmarked-databricks-against-my-iphone
1•georgewfraser•57m ago•0 comments

Top Forecasters on the Plague

https://www.astralcodexten.com/p/top-forecasters-on-the-plague
2•toomuchtodo•58m ago•0 comments

Show HN: Railcode – Secure cloud for internal software

https://railcode.dev/
2•yakkomajuri•58m ago•1 comments

You can just fix everything with a Nix overlay

https://ghuntley.com/nix/
1•domenkozar•59m ago•0 comments