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

My I3-Emacs Integration

https://khz.ac/software/i3-integration.html
1•nosolace•38s ago•0 comments

Experimental Drug Retatrutide Yields Dramatic Weight Loss

https://www.nytimes.com/2026/05/21/science/retatrutide-weight-loss-drug.html
1•bookofjoe•1m ago•1 comments

Why T. Rex had tiny arms

https://nautil.us/we-finally-have-the-answer-for-t-rexs-tiny-arms-1280997
2•marojejian•10m ago•0 comments

Earliest Uses of Various Mathematical Symbols

https://mathshistory.st-andrews.ac.uk/Miller/mathsym/
3•layer8•15m ago•0 comments

Bun.Image

https://bun.com/docs/runtime/image
4•chakintosh•16m ago•0 comments

AI Governance 2026: I Almost Quit over This Shit (and Why You Might Too)

https://medium.com/open-ai/ai-governance-2026-i-almost-quit-over-this-shit-and-why-you-might-too-...
3•sukhpinder0804•21m ago•1 comments

Show HN: Fruitsy, a slot machine game

https://fruitsy.surge.sh
3•stagas•21m ago•0 comments

Jira Is Turing-Complete

https://seriot.ch/computation/jira.html
4•MrFinch•23m ago•0 comments

Codex is flagged as malware on macOS

https://github.com/openai/codex/issues/23195
3•vldszn•23m ago•3 comments

Wildlife is watching us, too – and changing their behavior in response

https://news.yale.edu/2026/05/21/wildlife-watching-us-too-and-changing-their-behavior-response
3•hhs•28m ago•1 comments

BFI Online Video Collection

https://replay.bfi.org.uk/collection/458
2•philo23•28m ago•1 comments

World Machines

https://worldmachines.org/resources
3•jerlendds•29m ago•0 comments

Curious cases of financial engineering in biotech

https://www.owlposting.com/p/curious-cases-of-financial-engineering
2•abhishaike•30m ago•0 comments

Birds can see into the UV spectrum, picking up signals that the human eye cannot

https://www.binghamton.edu/news/story/6207/beyond-black-research-explores-the-feather-color-of-am...
3•hhs•31m ago•0 comments

ParsOS NEXT, Learn how does a GUI works

https://github.com/amirali1390-bit/ParsOS-NEXT
2•amirali901•33m ago•1 comments

Hi-res microscopes give biologists petabytes of data

https://news.berkeley.edu/2026/05/22/hi-res-microscopes-give-biologists-petabytes-of-data-scienti...
3•hhs•34m ago•1 comments

Guinea worm disease nears worldwide elimination, with only 10 cases in 2025

https://www.cidrap.umn.edu/dracunculiasis/guinea-worm-disease-nears-worldwide-elimination-only-10...
3•randycupertino•44m ago•1 comments

Alberta will vote on whether to remain part of Canada. What now?

https://www.bbc.com/news/articles/c809jg1gj9yo
4•tartoran•44m ago•2 comments

Polsia raised $30M; source map: fake ARR, dead users, god-mode over your company

https://zero-arr.vercel.app
25•not-chatgpt•48m ago•11 comments

Don't Roll Your Own

https://susam.net/do-not-roll-your-own.html
18•adunk•49m ago•6 comments

Memdeklaro: Open-source self-sovereign identity

https://memdeklaro.org
4•anonymous123•50m ago•0 comments

Customizing an LLM for Enterprise Software Engineering

https://arxiv.org/abs/2605.16517
4•daureg•51m ago•0 comments

Byrne's Euclid

https://www.c82.net/euclid/
4•layer8•54m ago•1 comments

SpaceX files to go public, and the math requires a little faith

https://techcrunch.com/video/spacex-files-to-go-public-and-the-math-requires-a-little-faith/
3•Timofeibu•59m ago•0 comments

Dirty Frag, Copy Fail, Fragnesia: A Worrisome Linux Security Trend

https://www.theregister.com/security/2026/05/23/dirty-frag-copy-fail-fragnesia-the-start-of-a-wor...
5•Timofeibu•59m ago•0 comments

Inside an N64 Cartridge: How the Hardware Actually Works [video]

https://www.youtube.com/watch?v=4Yix4NzRv9s
3•skibz•1h ago•0 comments

The Crypto Coin was the tell – thoughts on GSD, and it's crypto rugpull

https://vexjoy.com/posts/the-crypto-coin-was-the-tell/
2•AndyNemmity•1h ago•0 comments

The Appreciation Constituency: Land, Credit and the Politics of Protected Assets

https://americanaffairsjournal.org/2026/05/the-appreciation-constituency-land-credit-and-the-poli...
2•robocat•1h ago•0 comments

The Polyglot Protocol – senior-engineer guardrails for AI coding agents

https://github.com/sabir-gbs/the-polyglot-protocol
2•sabirsemerkant•1h ago•0 comments

GLP-1s Linked to Lower Risk of Cancer Spread in Four Tumor Types

https://www.medpagetoday.com/meetingcoverage/asco/121397
3•randycupertino•1h ago•0 comments