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

Minnesota Becomes First State to Ban Prediction Markets

https://www.nytimes.com/2026/05/19/us/minnesota-prediction-market-ban.html
1•paulpauper•41s ago•0 comments

Show HN: Coherence – drift detector for AI-driven repos

https://github.com/fireharp/coherence
1•fireharp•58s ago•0 comments

Show HN: Online Jigsaw Puzzle: drag&drop an image or use a provided sample

https://abionic.itch.io/jigsaw-puzzler
1•abionic•1m ago•0 comments

Bitcoin Value Overflow Incident (CVE-2010-5139)

https://www.learnbitcoin.com/rabbit-hole/inflation-bug-postmortem
1•granya•3m ago•0 comments

The AI has come for my code

https://boston.conman.org/2026/05/19.1
1•speckx•4m ago•0 comments

Karpathy's autoresearch, 50 DPO experiments, 300 human judges

https://huggingface.co/blog/ProlificAI/autoresearch-hitl-experiment
1•bradfeh•4m ago•0 comments

AVX 512 will be the future (2022)

https://www.realworldtech.com/forum/?threadid=209249&curpostid=209596
1•tosh•6m ago•0 comments

Securing Your Gemini and Google API Keys

https://cloud.google.com/blog/topics/developers-practitioners/api-keys-are-open-secrets
1•minherz•6m ago•0 comments

Eli Lilly's New Weight-Loss Treatment Shows Promising Results

https://www.wsj.com/health/pharma/eli-lillys-new-weight-loss-treatment-shows-promising-results-ca...
1•brandonb•7m ago•0 comments

Web Serial Support in Firefox

https://hacks.mozilla.org/2026/05/web-serial-support-in-firefox/
2•tech234a•8m ago•1 comments

World Genesis: Autonomous Agent Civilization Simulator

https://github.com/GeoLambdaAI/world-genesis
1•Gtombri•9m ago•0 comments

Show HN: Synrix: hardware-verified memory routing for edge AI agents

https://github.com/AstronomikalOne/synrix-demo
1•Ryan_Synrix•9m ago•0 comments

Starbucks scraps AI inventory tool across North America

https://www.reuters.com/business/starbucks-scraps-ai-inventory-tool-across-north-america-2026-05-21/
4•louiereederson•11m ago•0 comments

Discover Meko: The Data Infrastructure for Agents That Work and Learn Together

https://www.yugabyte.com/blog/meko-data-infrastructure-for-agents-that-work-and-learn-together/
1•mooreds•12m ago•0 comments

Could Universal GLP-1 Drugs End the Obesity Epidemic?

https://www.cremieux.xyz/p/could-universal-glp-1-drugs-end-the
1•brandonb•12m ago•0 comments

SpaceX IPO filing lays bare losses and Musk control as it stakes future on AI

https://www.reuters.com/legal/transactional/bound-mars-elon-musks-spacex-unveils-filing-blockbust...
3•1vuio0pswjnm7•13m ago•0 comments

Pope Leo launches an AI commission days before he releases a papal letter

https://fortune.com/2026/05/18/pope-leo-ai-commission-papal-letter-anthropic-co-founder-christoph...
2•1vuio0pswjnm7•15m ago•0 comments

22% Layoff at ClickUp

https://twitter.com/dj_curfew/status/2057522382315929802
2•jscheel•15m ago•1 comments

The International Space Station is leaking again

https://arstechnica.com/space/2026/05/uh-oh-the-international-space-station-is-leaking-again/
1•LorenDB•19m ago•0 comments

Blog ran on Ubuntu 16.04 for 10 years. I migrated it to FreeBSD

https://crocidb.com/post/this-blog-ran-on-ubuntu-16-04-for-10-years-i-migrated-it-to-freebsd/
3•speckx•19m ago•0 comments

Movesia – Control the Unity Editor with Plain English Commands

https://movesia.com
1•DexOmg•22m ago•0 comments

Distribution Fine Tuning: A post-training step to make models write better

https://dft.rosmine.ai/
1•sgt•22m ago•0 comments

Volo: Flight tracker built for group travel, delays, gates, and real connections

https://apps.apple.com/us/app/volo-flight-tracking/id6756634383
1•darpanypatel1•23m ago•0 comments

Built a subscription tracker that uses email forwarding instead of bank linking

https://www.subalert.org
1•momolii•24m ago•1 comments

Show HN: AI readiness toolkit: AI two-minute CODE maturity check

https://github.com/bjcoombs/ai-native-toolkit
1•ben30•25m ago•0 comments

Schlitz beer ending production after 177 years

https://www.boston25news.com/news/trending/schlitz-beer-ending-production-after-177-years/ABPDGCI...
2•1vuio0pswjnm7•26m ago•0 comments

JEP Draft: Enhanced Local Variable Declarations (Preview)

https://openjdk.org/jeps/8357464
1•theanonymousone•28m ago•0 comments

The XGO Programming Language

https://github.com/goplus/xgo
1•quux0r•29m ago•0 comments

The Founder Mental Health Survey

https://www.foundermental.health/
3•jasonshen•32m ago•0 comments

Event-Sourced Domain Modeling

https://www.esdm.io/
4•goloroden•33m ago•0 comments