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

Show HN: Onboard-CLI–a fast developer tool built in Go uses AST and LLM

https://onboard-cli.vercel.app/
1•yr_animesh•27s ago•0 comments

The Terrorist in the Brain

https://www.skeptic.com/disabled_js/
1•NaOH•1m ago•0 comments

Agents' Last Exam: AI Agent Benchmark for Real-World Professional Workflows

https://agents-last-exam.org
1•gurjeet•2m ago•0 comments

The Elements of User Experience

https://designexplained.substack.com/p/the-elements-of-user-experience
1•kaizenb•3m ago•0 comments

How Steve Hilton's Wife, Rachel Whetstone, Conquered California

https://sfstandard.com/2026/07/06/rachel-whetstone-steve-hilton-wife-california-governor/
1•petethomas•3m ago•0 comments

"Blade" type guitar pickups don't pick up horizontal vibration (2015)

https://alexkenis.wordpress.com/2015/10/22/guitar-pickup-theory-1-blade-vs-pole-pieces/
1•kazinator•5m ago•0 comments

Show HN: Finterm.ai Finance CLI for Claude Code and Codex

1•cheeseblubber•5m ago•0 comments

Oh My Pi

https://github.com/can1357/oh-my-pi
1•_superposition_•7m ago•0 comments

MCP for Royalty-Free Music and Sound Effects

https://github.com/tunetank/tunetank-mcp
1•tunetank•8m ago•0 comments

Truecaller clashes with India's telecom regulator over anti-spam rules

https://techcrunch.com/2026/07/08/truecaller-clashes-with-indias-telecom-regulator-over-anti-spam...
1•Brajeshwar•10m ago•0 comments

Help Web Attackers Self Report

https://nochan.net/b/Internet-Crap/20260524-Help-Attackers-Self-Report/
1•Bender•11m ago•0 comments

The Decline of Sumptuousness in Cinema

https://yakimenko.substack.com/p/on-the-decline-of-sumptuousness-in
1•idleplant•12m ago•0 comments

Who Operates Operators?

https://mohamedkadri.substack.com/p/who-operates-the-operators
1•theanonymousone•12m ago•0 comments

Dev productivity metrics suck. Ops reviews are key for AI-accelerated eng orgs

https://www.cortex.io/drive
7•gsdatta•13m ago•1 comments

GLM 5.2 is nearly as accurate as a human book keeper

https://toot-books.pages.dev/blog/glm-5-2-vat-benchmark
2•adamkurkiewicz•14m ago•0 comments

Rage-Inducing Problems in Tech

https://www.theringer.com/2026/05/28/tech/pope-leo-xiv-ai-encyclical-tech-industry-problems
1•Tomte•15m ago•0 comments

Many economists believe that AI will lead to more inflation. Why?

https://www.marketplace.org/story/2026/06/22/why-ai-may-lead-to-more-inflation
2•mapping365•15m ago•0 comments

Who has been caught out by this anti-pattern from Google?

1•Monotoko•15m ago•0 comments

Fed's Williams says AI is now his main inflation concern

https://fortune.com/2026/07/09/federal-reserve-john-williams-says-ai-is-now-his-main-inflation-co...
2•mapping365•15m ago•0 comments

A no-brainer for protecting your brain

https://www.economist.com/leaders/2026/07/09/a-no-brainer-for-protecting-your-brain
2•aloukissas•16m ago•1 comments

The government wants to scare Americans out of sharing the news

https://freedom.press/issues/the-government-wants-to-scare-americans-out-of-sharing-the-news/
2•littlexsparkee•17m ago•0 comments

How to Start a Ruby Meetup

https://guides.rubyevents.org/meetups/
1•mooreds•17m ago•0 comments

Build or buy an agent developer workspace?

https://www.monaco.com/blog/agent-developer-workspaces
1•nutellalover•18m ago•0 comments

Karmic Predicament

https://www.guidavid.com/writing/karmic-predicament
1•gdss•19m ago•0 comments

Anthropic appoints former Fed Chair Ben Bernanke to its independent trust

https://www.cnbc.com/2026/07/09/anthropic-fed-chair-bernanke-independent-trust.html
1•cramer4next•19m ago•0 comments

CEO reveals how he used AI 2 build 1 person company þats $1.3B in debt- Þe Onion [video]

https://www.youtube.com/shorts/YERfTT4McsU
1•notthemessiah•19m ago•0 comments

Show HN: Codex Explorer, a local session manager for Codex CLI

https://github.com/Tobiadefami/codex-explorer
2•tobiadefami•21m ago•0 comments

Head to Head: Muse Spark 1.1 vs. Anthropic: Claude Opus 4.8

https://runtimewire.com/article/head-to-head-muse-spark-1-1-vs-anthropic-claude-opus-4-8
1•ryanmerket•21m ago•0 comments

Nicotine pouches, tobacco's latest ploy

https://med.stanford.edu/news/insights/2026/06/nicotine-pouches-addiction-tobacco-industry-latest...
1•car•24m ago•0 comments

Too Old for Silicon Valley? Think Again. AI Is Changing the Math

https://www.kqed.org/news/12090173/too-old-for-silicon-valley-think-again-ai-is-changing-the-math
1•littlexsparkee•24m ago•0 comments