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

US gov publishes guide on how to safely deploy AI agents

https://cyberscoop.com/cisa-nsa-five-eyes-guidance-secure-deployment-ai-agents/
1•lschueller•49s ago•0 comments

/peek is a new slash command to use subagents to check out your other sessions

https://github.com/sachio222/cc-peek
1•sachio222•1m ago•0 comments

Show HN: Rotato – Node.js proxy that rotates LLM API keys on 429 errors

https://github.com/p32929/rotato
1•heliskyr2•2m ago•0 comments

Show HN: I Built a Museum Exhibit

https://knhash.in/built-an-exhibit/
1•kn81198•4m ago•0 comments

Testing Vue Components in the Browser

https://jvns.ca/blog/2026/05/02/testing-vue-components-in-the-browser/
1•chmaynard•4m ago•0 comments

Lessons from Debugging GLM-5 at Scale

https://z.ai/blog/scaling-pain
1•pbowyer•7m ago•0 comments

Farewell to a Giant of Botany

https://nautil.us/farewell-to-a-giant-of-botany-1280409
3•Brajeshwar•7m ago•0 comments

Apple raises Mac Mini starting price $599 to $799, 256GB storage discontinued

https://www.macrumors.com/2026/05/01/mac-mini-now-starts-at-799/
1•pak•11m ago•0 comments

A GitHub for Maintainers

https://nesbitt.io/2026/05/02/a-github-for-maintainers.html
1•jamietanna•11m ago•0 comments

Disagreeing with Google, Postgres, Future Problems – Mike Stonebraker [video]

https://www.youtube.com/watch?v=YPObBOwIrHk
1•da02•13m ago•0 comments

Debian adds an SPF record to debian.org

https://lists.debian.org/debian-devel-announce/2026/04/msg00010.html
1•susam•17m ago•0 comments

Show HN: A marketplace for LLM-powered webapps earning on token margins

https://codeplusequalsai.com/dashboard
1•cryptoz•17m ago•0 comments

Elephant/Goldfish for Claude Code

https://github.com/vshvedov/elephant-goldfish
1•vladcodes•19m ago•1 comments

History of QR Code

https://www.qrcode.com/en/history/
1•helloworld•21m ago•0 comments

Aurora Systems relaunches, building and investing in ideas for 10%

https://aurorasystems.co.zw/services.html#startup-advisory
1•zayne_komichi•21m ago•1 comments

Hyperscalers are 4500 years old

https://av.codes/blog/hyperscalers-are-4500-years-old/
1•everlier•23m ago•0 comments

States rethink data center incentives amid costs and environmental concerns

https://www.politico.com/news/2026/05/02/data-centers-states-tax-incentives-00891184
1•WaitWaitWha•23m ago•0 comments

Automate Anything with Python and AI

https://codeonix.app/
1•hassananayi•25m ago•0 comments

This Month in Ladybird - April 2026

https://ladybird.org/newsletter/2026-04-30/
3•richardboegli•25m ago•0 comments

Seodata.dev – free search volume data to see search demand for your projects

https://www.seodata.dev/
2•alentodorov•27m ago•0 comments

Executive Order pushes fixed-price contracting but implementation questions loom

https://www.washingtontechnology.com/contracts/2026/05/trump-executive-order-pushes-fixed-price-c...
1•WaitWaitWha•28m ago•0 comments

Neanderthals ran 'fat factories' 125,000 years ago

https://www.universiteitleiden.nl/en/news/2025/07/neanderthals-ran-fat-factories-125000-years-ago
2•andsoitis•29m ago•0 comments

Great Writers "Tell" All the Time

https://freddiedeboer.substack.com/p/great-writers-tell-all-the-time
1•paulpauper•30m ago•0 comments

House Bill Cuts Federal Funds for Online Censorship

https://reclaimthenet.org/house-bill-cuts-federal-funds-for-online-censorship
3•anonymousiam•32m ago•0 comments

When People Say They Want to Send Their Kid to a Good School

https://freddiedeboer.substack.com/p/when-people-say-they-want-good-schools
2•paulpauper•32m ago•0 comments

If Nobody Builds It, Everybody Dies [pdf]

https://github.com/INBED/pub/releases/download/v1.1/I.N.B.E.D.pdf
3•Anon84•35m ago•1 comments

Why won't SQLite give back my disk space?

https://www.valiantlynx.com/blogs/why-wont-sqlite-give-back-my-disk-space
1•madshalden•40m ago•1 comments

Show HN: Clipmon is a macOS clipboard manager on steroids

https://github.com/c9-labs/clipmon
2•vednig•42m ago•0 comments

Narrow by Design: The Case for Composable AI Teams

https://substack.com/@ashconway/note/p-196059865
1•ashconway•43m ago•1 comments

Show HN: I built a dev workspace with AI as backbone

https://thekit.dev/
2•RaiyanYahya•51m ago•0 comments