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•12mo ago

Comments

panstromek•12mo 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•12mo 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•12mo 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_•12mo 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_•12mo 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•12mo 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•12mo 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

Write SaaS apps where users control where their data is stored

https://linkedrecords.com/
1•WolfOliver•19s ago•0 comments

Free Textbook on Engineering Thermodynamics

https://thermodynamicsbook.com/
2•2DcAf•4m ago•1 comments

China surpasses U.S. in research spending

https://www.upi.com/Voices/2026/04/24/China-surpasses-United-States-in-research-spending/14317770...
1•Bondi_Blue•5m ago•0 comments

Show HN: ReadTube – Turn YouTube subscriptions into a personal Substack

https://www.read.tube/
1•tuliren•6m ago•0 comments

Ed Holding: A 'Barbaric' Problem in American Hospitals Is Only Getting Bigger

https://kffhealthnews.org/health-industry/emergency-room-ed-boarding-hospital-beds-long-waits-cri...
1•randycupertino•7m ago•0 comments

Utah data center will generate and consume more power than state, nears approval

https://www.sltrib.com/news/2026/04/25/hyperscale-data-center-may-be/
1•Jimmc414•7m ago•0 comments

Trump's Canada trade war hits Jack Daniel's/Jim Beam with devastating $143M loss

https://www.fastcompany.com/91531349/trumps-canada-trade-war-hits-jack-daniels-jim-beam-devastati...
2•dj_rock•8m ago•0 comments

Mathematically Optimized Typing

https://cadence.theory-a.com/
1•notShabu•9m ago•0 comments

Kevin Weil and Bill Peebles exit OpenAI as company continues to shed side quests

https://techcrunch.com/2026/04/17/kevin-weil-and-bill-peebles-exit-openai-as-company-continues-to...
1•gmays•9m ago•0 comments

Show HN: SRT-Adapter: 0.99 AUROC, perplexity win and 16.7× recall (0.19%)

https://huggingface.co/RiverRider/srt-adapter-v8a
1•spacebacon•12m ago•0 comments

Project Deal: Our Claude-Run Marketplace Experiment – Anthropic

https://www.anthropic.com/features/project-deal
1•ericol•15m ago•0 comments

Linux May Drop Old Network Drivers Due to Burden of AI-Driven Bug Reports

https://www.phoronix.com/news/Linux-Old-Network-AI
1•birdculture•15m ago•0 comments

Show HN: Semble – Fast code search for agents with near-transformer accuracy

https://github.com/MinishLab/semble
3•stephantul•21m ago•0 comments

TraceFree – unified Apt/Snap/Flatpak package manager with ghost file detection

https://github.com/somranimehdi/TraceFree
1•Somosranos•21m ago•0 comments

Lessons from Building Multiplayer Browsers

https://www.alejandro.pe/writing/sail-muddy-lessons
1•alejandrohacks•22m ago•1 comments

ASML: The Most Complex Machine

https://worksinprogress.co/issue/the-worlds-most-complex-machine/
1•dionysou•26m ago•0 comments

Scientists believe birds' skulls hold clues to inner lives of long-extinct dinos

https://www.theguardian.com/science/2026/apr/26/scientists-believe-birds-skulls-hold-clues-to-inn...
1•hkhn•27m ago•0 comments

Tell HN: Claude Code is unable to respond to this request

1•hmokiguess•29m ago•2 comments

What Is Dyslexia?

https://www.whatisdyslexia.org/
1•hkhn•29m ago•0 comments

Dyslexic thinking made me the scientist I am today. If we could harness its

https://www.theguardian.com/commentisfree/2026/apr/25/dyslexic-thinking-scientist-neurodiversity-...
2•hkhn•29m ago•0 comments

Show HN: Text Trace – Keynote-style SVG text trace animations for the web

https://github.com/Jannchie/text-trace
1•jannchie•30m ago•0 comments

List of personal sites that host Wander Console, a tool to explore the small web

https://susam.codeberg.page/wcn/
1•susam•30m ago•1 comments

Startups only remember backups after the crash

https://orchidfiles.com/backups-after-crash/
1•theorchid•32m ago•0 comments

GPT Image Generation Models Prompting Guide

https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide
1•gmays•37m ago•0 comments

Anthropic created a test marketplace for agent-on-agent commerce

https://techcrunch.com/2026/04/25/anthropic-created-a-test-marketplace-for-agent-on-agent-commerce/
1•Brajeshwar•37m ago•0 comments

Musk Touts Universal Income as Remedy to AI-Driven Unemployment

https://www.forbes.com/sites/siladityaray/2026/04/17/elon-musk-touts-universal-income-as-remedy-t...
1•geox•39m ago•1 comments

Pratt parsing is a black box

https://vinipsmaker.github.io/blog/blog/pratt-parsing-is-a-black-box/
1•vinipsmaker•43m ago•0 comments

A high-performance 2D graphics painter that use SDL3 GPU API

https://github.com/n67094/SDL_gp
1•n67094•45m ago•0 comments

Query neural network weights like a graph database

https://github.com/chrishayuk/larql
1•james_marks•52m ago•0 comments

Network File Systems on Macs

https://eclecticlight.co/2026/04/25/explainer-network-file-systems/
1•chmaynard•54m ago•0 comments