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

Better-PaaS – A Lightweight Self-Hosted PaaS in Go, Nixpacks, and Caddy

https://github.com/sumon-ohid/better-paas
1•sumonoahid•42s ago•0 comments

Netgear Nighthawk RS700S: Red Team Level1Diagnostic

https://forum.level1techs.com/t/netgear-nighthawk-rs700s-red-team-level1diagnostic/250614
1•ogurechny•1m ago•0 comments

SpaceX IPO: Nice Try Though [video]

https://www.youtube.com/watch?v=IHD8BDFYyGI
1•magnetised•4m ago•0 comments

How Safari search engine extensions work

https://lapcatsoftware.com/articles/2025/2/2.html
1•microflash•5m ago•0 comments

Marks and Spencer chief's pay slashed by £3M after cyberattack turmoil

https://www.cityam.com/ms-pay-slashed-after-cyberattack-turmoil/
2•speckx•5m ago•0 comments

Data Engineering Concepts: 101 Concepts Every Data Engineer Should Know

https://www.ssp.sh/brain/data-engineering-concepts/
1•zazuke•6m ago•0 comments

Good Enough to Ship

https://givedirection.com/blog/01-good-enough-to-ship.html
1•AndrewKemendo•6m ago•0 comments

PineForge – PineScript v6 to C++, trade-for-trade with TradingView

https://github.com/pineforge-4pass/pineforge-engine
1•luisleo526•8m ago•0 comments

Reduce Claude costs by changing Effort/Thinking parameters

1•ai_tokencost•8m ago•0 comments

Monako: Linux-Powered 48g Smart Glasses with Display

https://www.monako.ai/
1•EvanZhouDev•10m ago•0 comments

Uber list of strangest lost-and-found items: Dentures, butterflies, dishwasher

https://abcnews.com/US/uber-releases-list-strangest-lost-found-items-dentures/story?id=133532267
1•speckx•11m ago•0 comments

Pocket Symphonies

https://www.the-hinternet.com/p/pocket-symphonies
1•paulpauper•11m ago•0 comments

The method for counting 52,019 puffins

https://www.welshwildlife.org/news/another-record-breaking-year-skomer-what-it-takes-count-52019-...
1•paulpauper•12m ago•0 comments

L402: A Universal HTTP-Based Payment Flow for Agents

https://www.l402.org
1•Hakeemmidan•14m ago•1 comments

Fontastic Space – Find Mathematically Optimal Font Pairings

https://fontastic.space/
1•speckx•15m ago•0 comments

Boston's Great Molasses Flood of 1919

https://www.popularmechanics.com/science/a71455129/boston-molasses-flood/
1•gbourne1•18m ago•0 comments

Leaving the tracking pixel machine to learn C

https://paolobietolini.com/pensieri/leaving-the-tracking-pixel-machine/
1•H501•19m ago•1 comments

Using Cash as a Payment Method

https://help.uber.com/riders/article/using-cash-as-a-payment-method?nodeId=6aa4d7c2-ebb8-4b5e-b09...
2•866-RON-0-FEZ•20m ago•0 comments

Show HN: Moxie Docs – Automatic codebase documentation and MCP

https://moxiedocs.com
1•ghosts_•20m ago•0 comments

Europe Wants to Be Less Reliant on American Tech. Here's Its Plan

https://www.nytimes.com/2026/06/03/technology/european-union-tech-sovereignty.html
2•Teever•23m ago•1 comments

Stop freeloading off open source

https://falconer.com/notes/stop-freeloading-open-source/
3•iamgioh•24m ago•0 comments

Attestation Is All You Need

https://jperla.com/blog/attestation-is-all-you-need?q=32
2•ljlolel•24m ago•0 comments

Show HN: CTP Room – a shared chat room where your AI coding agents coordinate

1•vukasinrancic•25m ago•0 comments

Parsing 1B Rows in Java: Insane Speed Test by Roy van Rijn

https://www.youtube.com/watch?v=pHZF-zJ3Bpg&list=PLEx5khR4g7PINwOsYrkwz3lTTJUYoXC53
1•birdculture•25m ago•0 comments

Hugging Face: Storage

https://huggingface.co/storage
1•tosh•25m ago•0 comments

Pavona: Open-source silicon ecosystem [IEEE spectrum]

https://spectrum.ieee.org/pavona-open-source-hardware
1•random__duck•26m ago•0 comments

Tuta has joined Euro-Office and will now contribute to its codebase

https://www.neowin.net/news/tuta-has-joined-euro-office-and-will-now-contribute-to-its-codebase/
2•bundie•28m ago•0 comments

Commoditized intelligence is the labs' moat, not their problem

https://implexa.ai/blog/commoditized-intelligence-labs-moat
1•implexa_founder•29m ago•0 comments

Ceres' Surface Is Much More Complex Than Previously Thought

https://www.universetoday.com/articles/ceres-surface-is-much-more-complex-than-previously-thought
3•bookofjoe•30m ago•0 comments

A Functional Taxonomy of World Models – Fei Fei Li

https://drfeifei.substack.com/p/a-functional-taxonomy-of-world-models
2•aanet•31m ago•0 comments