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: Brume – Postgres pseudonymization that preserves FKs across tables

https://brumeorg.github.io/
1•Calgaryp•2m ago•0 comments

Sxediastes.gr

https://sxediastes.gr/
1•georgegenov•4m ago•0 comments

AI-powered car rental automation and fleet management software platform.

https://airentosoft.com
1•John_David•5m ago•0 comments

Social Media Recalibrates How the Brain Values Mental Effort

https://neurosciencenews.com/effort-recalibration-digital-media-cognition-30985/
1•w23j•5m ago•0 comments

Gun Mistakes in Fiction Writing: Handgun Edition

https://www.swiftsilentdeadly.com/blog/gun-mistakes-in-fiction-writing-handgun-edition
2•bushwart•13m ago•1 comments

Neural stem cells as potential mediators of epigenetic prenatal stress

https://www.cell.com/stem-cell-reports/fulltext/S2213-6711(26)00207-9?_returnURL=https%3A%2F%2Fli...
1•bookofjoe•14m ago•0 comments

"Existential threat" to optical astronomy: warning about satellite plans

https://www.heise.de/en/news/Existential-threat-to-optical-astronomy-warning-about-satellite-plan...
1•johnbarron•16m ago•0 comments

NASA launches robot to save Swift telescope falling to Earth

https://www.bbc.co.uk/news/articles/c0ry4xx7rk8o
1•ColinWright•20m ago•2 comments

Show HN: Turn boring flat screenshots into angled tilt-shift images

https://www.screenstab.com/
1•mikaelaast•22m ago•0 comments

The UK's generational tobacco ban might not work. I'm supporting it anyway

https://www.technologyreview.com/2026/07/03/1140036/uk-tobacco-ban-might-not-work-children-smoking/
1•joozio•23m ago•2 comments

Ed Zitron on CNBC: GenAI Doesn't Work, and Big Tech Is Out of Hypergrowth Ideas

https://www.youtube.com/watch?v=TtmPccUTDP8
4•johnbarron•24m ago•0 comments

Landscape Grid: Consciousness Categories and Theories

https://loc.closertotruth.com/consciousness-theories
2•weatherlight•26m ago•0 comments

CalyxOS Is Back

https://calyxos.org/news/2026/07/01/calyxos-official-release-is-back/
1•keithoffer•27m ago•1 comments

Show HN: Mtg-crucible, an NPM package to render custom Magic the Gathering cards

https://www.npmjs.com/package/mtg-crucible
2•CarlsJrMints•27m ago•1 comments

Bending Spoons just went public: Italy won the World Cup

https://www.theliquidfactory.com/news-detail/bending-spoons-just-went-public:-we-won-the-world-cup
1•ReDeiPirati•28m ago•0 comments

How the great wealth transfer is rattling Wall Street

https://www.ft.com/content/c914cbf5-4ede-4342-a4ac-9f1289c47dc9
3•bushwart•29m ago•1 comments

Ds.css: A CSS framework recreating the DS / DS Lite's UI

https://github.com/spiritov/ds.css
1•birdculture•33m ago•0 comments

Show HN: I make a human-edited, AI-assisted retro magazine reviewing YouTube

https://ctrl-watch.xyz/
1•deimos459•33m ago•0 comments

Show HN: MothRAG - Graph-free multi-hop RAG without the rebuild bill

https://github.com/juliangeymonat-jpg/mothrag
3•NYCHMPAI•35m ago•0 comments

Stock market boom runs on a 'large deficit model'

https://www.reuters.com/commentary/breakingviews/stock-market-boom-runs-large-deficit-model-2026-...
1•latentframe•35m ago•0 comments

Zero Blind Spots for Linux: Sovereign Automation Meets Identity Security

https://orcharhino.com/en/resources/event/webinars/sovereign-linux-zero-blind-spots/
1•LinuxGuard•35m ago•0 comments

Quantum Systems lands a €1B round, IQM becomes Europe’s first public quantum…

https://scalingeurope.substack.com/p/scaling-europe-daily-37
1•rbanffy•38m ago•0 comments

Internet latency in Venezuela is still higher after the earthquake

https://twitter.com/emot/status/2072992770789138529
1•emot•39m ago•0 comments

Show HN: Lips Up – Preview lip filler on your own face

https://lipsup.app/
1•debeast•40m ago•1 comments

Real-time speech-to-speech translation running locally on a MacBook

https://www.reddit.com/r/LocalLLM/s/mtqIOZHsZ2
1•issaneuphonic•42m ago•0 comments

US life expectancy on track to reach record high

https://www.cnn.com/2026/07/02/health/us-death-rate-record-low-cdc-report-longevity
1•baal80spam•43m ago•1 comments

MySat: Build Your Own Cube Satellite Kit – Your Personal CubeSat

https://www.mysatkit.com/
1•rbanffy•44m ago•0 comments

Stack Overflow Rebrand

https://koto.com/projects/stack-overflow
1•ricardobeat•48m ago•1 comments

The First Nuclear Powered Website

https://nuclearwebsite.com/
1•mpweiher•53m ago•0 comments

"We can't ask AI, it lies" vs. "Here is my superpower prompt"

https://alanbuxton.wordpress.com/2026/07/03/we-cant-ask-ai-it-lies-vs-here-is-my-superpower-prompt/
2•alanb99•1h ago•0 comments