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: Durable Agent Sessions API (Preview)

https://opencomputer.durableagents.dev/
2•igorzij•9m ago•0 comments

OpenAI DayBreak – GPT-5.5-Cyber

https://openai.com/index/daybreak-securing-the-world/
2•AaronO•10m ago•0 comments

SpaceX sheds $400B in market value as debut rally hits reverse

https://www.ft.com/content/c11d08ed-6668-4678-b829-1d50acbd12d4
3•simonpure•10m ago•0 comments

Full typing for Nix based on TypeScript

https://github.com/ryanrasti/typenix
2•LelouBil•11m ago•0 comments

Matt's Script Archive: The Scripts That Reshaped the Web

https://tedium.co/2026/06/22/matts-script-archive-retrospective/
3•1317•15m ago•0 comments

AFUN: Towards an Affordance Foundation Model for Functionality Understanding

https://www.zhaoningwang.com/AFUN/
3•ilreb•23m ago•0 comments

Home Assistant OS 18.0

https://github.com/home-assistant/operating-system/releases/tag/18.0
2•ilreb•25m ago•0 comments

AWS introduces Lambda MicroVMs: isolated sandboxes with full lifecycle control

https://aws.amazon.com/blogs/aws/run-isolated-sandboxes-with-full-lifecycle-control-aws-lambda-in...
3•joeyhage•25m ago•0 comments

In Praise of Memcached

https://jchri.st/blog/in-praise-of-memcached/
3•j03b•31m ago•0 comments

Universal basic income, the utopian idea resurging in Silicon Valley

https://www.lemonde.fr/en/opinion/article/2026/06/14/universal-basic-income-the-utopian-idea-resu...
3•nreece•31m ago•0 comments

Every Choice Changes Everything: The Show

https://blog.codinghorror.com/every-choice-changes-everything-the-show/
2•doppp•33m ago•0 comments

Death by a Thousand Comments

https://royalicing.com/2026/death-by-a-thousand-comments
4•burntcaramel•35m ago•0 comments

69 Ways to Mess Up Your Deploy

https://kellyshortridge.com/blog/posts/69-ways-to-mess-up-your-deploy/
3•rzk•38m ago•0 comments

Shall We Play a Coordination Game?

https://kellyshortridge.com/blog/posts/shall-we-play-a-coordination-game/
3•rzk•40m ago•0 comments

Hackers Publish Knicks and Madison Square Garden Data Online

https://itnerd.blog/2026/06/18/hackers-publish-knicks-and-madison-square-garden-data-online/
2•mooreds•41m ago•0 comments

Palmier Pro: macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
2•maxloh•42m ago•0 comments

AI's Brokenomics

https://www.wheresyoured.at/brokenomics/
6•Anon84•45m ago•1 comments

Elescend Marketing

https://www.elescendmarketing.com
2•jemswilliams•50m ago•0 comments

The biggest problem I see with people trying to sell to Pharma

2•rshadow117•51m ago•0 comments

Eyewitness at the Triangle (1911)

http://trianglefire.ilr.cornell.edu/index.html
2•NaOH•52m ago•0 comments

Polymarket's viral videos showed people winning big, but the bets were fake

https://arstechnica.com/tech-policy/2026/06/polymarkets-viral-videos-showed-people-winning-big-bu...
67•pseudolus•58m ago•22 comments

Gee-haw whimmy diddle toy [video]

https://www.youtube.com/watch?v=miznyTxjT3k
2•1970-01-01•1h ago•0 comments

Facial recognition on public buses sparks debate over security and privacy

https://apnews.com/article/kansas-city-facial-recognition-ai-cameras-privacy-87847f57c94b6c2a9e22...
8•devonnull•1h ago•1 comments

Ando

https://www.ando.so/
3•handfuloflight•1h ago•0 comments

Graphviz MCP Provider

https://graphviz-provider.rodmena.app/
4•rodmena•1h ago•0 comments

Show HN: DELN – An interactive atlas of AI training datasets

https://deln.ai/atlas
2•yshunnar•1h ago•0 comments

AI is changing biological and nuclear risks; governance must change accordingly

https://thebulletin.org/2026/06/ai-is-changing-biological-and-nuclear-risks-governance-must-chang...
3•pseudolus•1h ago•0 comments

The future of oil prices may depend on China

https://www.cnn.com/2026/06/22/energy/oil-price-china-dependence-iran-war-intl-hnk
2•toomuchtodo•1h ago•1 comments

California police are using drones to disarm people, make arrests

https://www.sfgate.com/bayarea/article/california-police-drone-responders-22315437.php
4•pseudolus•1h ago•1 comments

We built the fastest API for GLM-5.2 (280 TPS)

https://www.baseten.co/blog/how-we-built-the-worlds-fastest-api-for-glm-52/
6•philipkiely•1h ago•0 comments