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

Aside – Meeting notes as Markdown and local dictation for macOS

https://heyaside.com/
1•dominikmartn•1m ago•0 comments

The US is talking about space weapons now

https://breakingdefense.com/2026/09/why-the-us-is-talking-about-space-weapons-now/
1•KinetiNode•2m ago•0 comments

Carnot the most efficient, multi-fuel engine

https://carnotengines.com/technology/
1•thelastgallon•3m ago•0 comments

Hologram: Building Local-First Apps in Pure Elixir

https://www.youtube.com/watch?v=jdg_UrLp0bU
2•jamauro•4m ago•1 comments

LMAX Disruptor – High Performance Inter-Thread Messaging Library

https://lmax-exchange.github.io/disruptor/
1•Bluestein•4m ago•0 comments

How to process incoming call audio on Android / iOS?

1•vivzkestrel•6m ago•0 comments

Show HN: Lume – an open-source terminal you can drive from your phone

https://uselume.dev/
2•hugomyb•11m ago•0 comments

AI is breaking our proxies for expertise

https://www.seangoedecke.com/ai-is-breaking-our-proxies-for-expertise/
2•jbkcc•12m ago•0 comments

AI 'kill switch' may need to be mandatory, Anthropic co-founder tells BBC

https://www.bbc.com/news/articles/cqgk5e2j0gg8o
3•Betelbuddy•13m ago•0 comments

Show HN: Bulkgrid – Search websites and GitHub repositories from your AI agent

https://bulkgrid.com
2•ceglh•13m ago•0 comments

More than honey: bee myths

https://luckyinstar.neocities.org/blog/beemyths
2•speckx•14m ago•0 comments

PostgreSQL Migrator 1.0: Moving Fast from Oracle and MySQL to PostgreSQL

https://blog.dalibo.com/2026/09/07/postgresql-migrator-1-en.html
4•bersace•15m ago•0 comments

Anthropic's over-alignment turned creative fiction into a bug report [humor]

https://medium.com/@raffaele_mangialardi/is-ai-going-to-kill-us-all-by-2030-72b894bba7d5
2•rm30•17m ago•0 comments

Show HN: A live Git diff view cli to stay on top of what agents are doing

https://github.com/stagas/livediff
3•stagas•17m ago•0 comments

How the New York Times Framed the War Between Israel and Hamas

https://www.tandfonline.com/doi/full/10.1080/1057610X.2026.2707956#abstract
9•mhb•18m ago•1 comments

Show HN: Infinite Shaders

https://shaderfrog.com/infinite
2•andrewray•19m ago•0 comments

Prompts Aren't Real

https://evaluation.club
2•mcfunley•21m ago•0 comments

I asked Claude to build an OS from scratch. A few days later it runs on a laptop

https://www.reddit.com/r/ClaudeAI/comments/1wfpydl/i_asked_claude_to_build_an_operating_system_from/
4•giancarlostoro•21m ago•1 comments

Show HN: Capsule – Single-file web apps that save their data into SQLite

https://withcapsule.app/
2•bashtian•22m ago•0 comments

Show HN: Ordewell – turn one goal into an ordered plan of coding-agent tasks

https://github.com/ordewell/ordewell
2•ac-ciano•22m ago•0 comments

Unitree launches upgraded G1 humanoid robot with six major upgrades

https://technode.com/2026/09/15/unitree-g1-plus-humanoid-robot/
2•thelastgallon•24m ago•0 comments

Show HN: I built a tiny camera that knows where it is

https://mightycamera.com/story
1•asadm•24m ago•0 comments

Hackathons in the vibe coding era: our token economics experiment

https://quesma.com/blog/our-first-hackathon/
2•jakozaur•26m ago•0 comments

Why EAV Sucks

http://esmout.blogspot.com/2012/09/why-eav-sucks.html
1•b-man•26m ago•1 comments

GoJS is now free for personal, non-commercial use

https://gojs.net/latest/
1•simonsarris•27m ago•0 comments

Don't Be Fooled by Anthropic's Doom Troll [video]

https://www.youtube.com/watch?v=vOOHd2cHYEg
2•smukherjee19•27m ago•0 comments

Give your guard two minutes to fail

https://dev.yuv.run/writing/claims-and-locks/
1•alkisyuv•28m ago•0 comments

Built-In Tools vs. Custom Tools in LLM Agents

https://www.vincentschmalbach.com/built-in-tools-vs-custom-tools-llm-agents/
1•vincent_s•28m ago•0 comments

Australia 'on the same page' as Canada as it seeks deeper EU alliance

https://www.reddit.com/r/worldnews/comments/1wgqken/australia_on_the_same_page_as_canada_as_it_se...
13•vrganj•28m ago•2 comments

How Big Are Factorials?

https://eli.thegreenplace.net/2026/how-big-are-factorials/
1•ibobev•28m ago•0 comments