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

RIEMANN a Mathematical Field Guide

https://alexisdpc.github.io/riemann/technical.html
1•Bluestein•1m ago•0 comments

Show HN: Plinth – Publish HTML from any coding agent and choose who can see it

https://github.com/mr0b0t0/plinth
1•germanvoronin•1m ago•0 comments

Show HN: Just Dashboard, open-source Linux management dashboard

https://just-dashboard.com/
1•Wayy10•5m ago•0 comments

Are we over-optimizing AI SRE agents instead of solving the context problem?

https://www.elastic.co/observability-labs/blog/elastic-streams-telemetry-pipeline-s3
1•Devansh2920•7m ago•0 comments

The Riemann Hypothesis Proof as a Mediaeval Fantasy RPG Map

https://marioschlosser.org/riemann/
1•Guestmodinfo•8m ago•0 comments

Typographers Discuss the Euro (1996)

https://www.evertype.com/standards/euro/eurotypo.html
2•robin_reala•14m ago•0 comments

EU plans €50B tech fund to close gap with US and China

https://www.ft.com/content/53d4b629-7ae4-4d63-ac37-e773b1dd3af0
1•doener•14m ago•0 comments

Nvidia Seeded Pirated Books and Shared Them with Adobe, Authors Allege

https://torrentfreak.com/nvidia-seeded-pirated-books-and-shared-them-with-adobe-authors-allege/
2•HieronymusBosch•14m ago•0 comments

Show HN: ScarScript – A statically typed language that compiles to Go

https://github.com/ScarfazeCompany/scar-script
1•aimabaig•15m ago•0 comments

Show HN: SlayArcade – free browser arcade, daily puzzle, works offline

https://slayarcade.com
2•slayarcade•18m ago•0 comments

Show HN: Running a ESMC protein language model as a single C++ binary

https://github.com/AnanyaP-WDW/esmc.cpp
1•Ananya_Pathak•20m ago•0 comments

HTTP/Minimal: like Gemini protocol but standard

https://httpmini.com/
2•shdx•24m ago•0 comments

GitHub Lifelines – your repos drawn as lines from first day to last push

https://pravin.github.io/lifelines/
1•pravinp•25m ago•0 comments

Code review was never mostly about catching bugs

https://hrih.si/articles/who-teaches-the-reviewer/
1•DonAtimator•28m ago•0 comments

Beyond Linux: A Journey Through the Open Source Ecosystem

https://it-notes.dragas.net/2026/11/17/beyond-linux-a-journey-through-the-open-source-ecosystem/
1•birdculture•29m ago•0 comments

Incremental Queries in Triplox

https://triplox.xyz/blog/triplox-log-2-incremental-queries-in-triplox/
1•fiv0•31m ago•0 comments

Measuring and mitigating agent sandbox escape with Siren

https://safeguards.anthropic.com/2026/siren/
1•DonAtimator•33m ago•0 comments

P8 1.0 – PICO-8 Lua fantasy console on MiSTer FPGA bare-metal version [video]

https://www.youtube.com/watch?v=sutLdo-J3-k
1•retro_guy•34m ago•1 comments

How do you stop retries from restoring deleted agent memories?

https://x.com/AgentMemoryL
1•IreneAI•39m ago•0 comments

Show HN: Agent Debugger – local-first failure debugger for AI agents

https://github.com/woxlo1/agent-debugger
2•woxloi•40m ago•0 comments

Meatware (Human Labour Heritage Center) Browser Game

https://ribalba.github.io/meatware/
1•maikhoepfel•41m ago•1 comments

Parable of the Polygons

https://ncase.me/polygons/
1•hiohio•42m ago•1 comments

Show HN: Sweeflow – Stream your Mac apps to your Linux machine

https://sweeflow.app
2•herunan•42m ago•1 comments

Google Files Patent for a TV Channel of AI-Made Videos Built Around You

https://patentlyze.com/patent/google-ai-made-tv-channel-built-around-you/
2•DeepLogin•45m ago•0 comments

Companies that skip Black Friday

https://no-blackfriday.com/
3•rouuuge•46m ago•1 comments

Is "sort by impact" just vibes?

https://developer.microsoft.com/blog/is-sort-by-impact-just-vibes/
1•joshcsimmons•48m ago•0 comments

Is China behind a wave of AI fake videos targeting Taiwan?

https://www.bbc.com/news/articles/cv702rw7dzx5o
1•cisc•57m ago•0 comments

Theorem 1.1 (Cannon's conjecture) [pdf]

https://github.com/openai/math/blob/main/preprints/A-Modulus-Proof-of-Cannons-Conjecture-Septembe...
1•latent-9•57m ago•0 comments

She said YES, bow what?

https://nuptialprint.com/en/
1•lienmt•57m ago•0 comments

Todoist Security incident in November 2026

https://www.todoist.com/help/todoist/get-started/security-incident-in-november-2026-cG0EIACNU
2•soheilpro•58m ago•0 comments