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

Sudo Report – a Drudge Report for builder/startup/AI news

https://www.sudoreport.com
1•ataturkle•2m ago•0 comments

IDF troops fire at vehicle killing Palestinian baby and wounding his parents

https://www.timesofisrael.com/liveblog-june-05-2026/
2•root-parent•2m ago•0 comments

Fake Gears, Real Fun: A Pro Driver Makes the Case for EV Gimmicks

https://www.thedrive.com/news/fake-gears-real-fun-a-pro-driver-makes-the-case-for-ev-gimmicks
1•PaulHoule•7m ago•0 comments

The birthday paradox explains why there's too much to do

https://maximumreverie.substack.com/p/why-theres-too-much-to-do
2•kadavy•9m ago•0 comments

Shortcat: Universal command palette for your Mac

https://shortcat.app/
1•gurjeet•10m ago•0 comments

Mysterious Next-Gen Aircraft Allegedly Spotted Near Area 51

https://theaviationist.com/2026/06/04/mysterious-next-gen-aircraft-allegedly-spotted-near-area-51/
5•jawiggins•11m ago•0 comments

One attribute to rule them all

https://www.mapbox.com/blog/one-attribute-to-rule-them-all
1•onesvenus•13m ago•0 comments

Trying to fill up "that one (lonely) moment"

https://mindfuse.io
1•Joeribon•14m ago•0 comments

Connecting the Pieces: AI, Data Centers, and the Environment

https://hitikadalwadi.substack.com/p/connecting-the-pieces-ai-data-centers
1•HitikaDalwadi•16m ago•0 comments

Economic efficiency often undermines sociopolitical autonomy

https://www.mindthefuture.info/p/economic-efficiency-often-undermines
2•paulpauper•16m ago•0 comments

A proposal for an experiment on Scott Alexander's book review contest

https://philosophybear.substack.com/p/what-if-self-promotion-didnt-matter
1•paulpauper•17m ago•0 comments

Choose Book Review Finalists 2026

https://www.astralcodexten.com/p/choose-book-review-finalists-2026
1•paulpauper•17m ago•0 comments

Microsoft Compromised Again. Shuts Down Azure Function GitHub Actions

https://opensourcemalware.com/blog/miasma-reaches-azure
2•6mile•18m ago•1 comments

FeckBills – Find the money you're leaking in the cloud

https://feckbills.com/
1•SteveChurch•18m ago•0 comments

KubeTable – your Kubernetes databases, one click away

https://github.com/kubetable/kubetable
1•emmaera•31m ago•1 comments

AI is fueling Reddit's spam problem

https://mashable.com/tech/ai-fueling-reddit-spam-problem
6•mmarian•33m ago•0 comments

Tribute to Jiro Yamada, Automotive Artist (1960-2025) [video]

https://www.youtube.com/watch?v=rJ2gQ5Md60U
3•NaOH•34m ago•0 comments

Before You Add an MCP Server to Your IDE, Read the Config

https://medium.com/open-ai/before-you-add-an-mcp-server-to-your-ide-read-the-config-like-it-can-e...
2•sukhpinder0804•36m ago•0 comments

Donald Trump says US may take equity stakes in AI companies

https://www.ft.com/content/b1ab6106-77e6-4218-9eb4-e44bd56ca400
16•root-parent•43m ago•5 comments

AI Agents Now Generate More Web Traffic Than Humans

https://www.cnet.com/tech/services-and-software/its-official-agentic-bots-surf-the-web-more-than-...
3•Fake4d•45m ago•1 comments

OpenAI wrote a guide on how to use /goal mode. I made that guide into a skill

https://github.com/Infinite-Labs-OS/infinite-skills
1•RiverXR•45m ago•0 comments

OpenAI Codex Tech Lead Does AI-Assisted Engineering

https://newsletter.eng-leadership.com/p/how-openai-codex-tech-lead-does-ai
1•gregorojstersek•47m ago•0 comments

Voyd Programming Language v0.2.0 – Effect typing improvements, trailing closures

https://voyd.dev/docs/?p=releases
1•drew-y•48m ago•0 comments

P/E Tells You the Price. Reality Gap Tells You the Delusion

https://hstre.github.io/Reality-Gap/
3•hstrex•48m ago•0 comments

Morgan Stanley Sees SpaceX's Revenue Reaching $3.4T in 2040

https://www.wsj.com/finance/banking/morgan-stanley-sees-spacexs-revenue-reaching-3-4-trillion-in-...
3•logicalfails•48m ago•4 comments

Hacker News, Sans AI

https://elijahpotter.dev/articles/hacker-news-sans-AI
19•chilipepperhott•48m ago•4 comments

We built an AI sales agent so you don't have to give every demo of your product

https://salescloser.ai/hybrid-chat-va/
1•jrda•48m ago•4 comments

Saylor's Strategy Sells Bitcoin for First Time Since 2022

https://www.wsj.com/finance/currencies/saylors-strategy-sells-bitcoin-for-first-time-since-2022-0...
1•JumpCrisscross•49m ago•0 comments

Playwright for Godot

https://github.com/mrf/godot-stagehand
1•markferree•50m ago•1 comments

Meta backs off tracking workers' keystrokes after they revolt

https://boingboing.net/2026/06/03/meta-backs-off-tracking-workers-keystrokes-after-they-revolt.html
6•DropDead•50m ago•3 comments