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

Finding zombies in our systems: A real-world story of CPU bottlenecks

https://medium.com/pinterest-engineering/finding-zombies-in-our-systems-a-real-world-story-of-cpu...
2•birdculture•6m ago•0 comments

France doubles down on restricting access to Polymarketre

https://www.engadget.com/2218130/france-doubles-down-on-restricting-access-to-polymarket/
2•01-_-•14m ago•0 comments

Apple probably won't add Jony Ive to OpenAI trade secret theft suit

https://appleinsider.com/articles/26/07/19/apple-probably-wont-add-jony-ive-to-openai-trade-secre...
2•01-_-•16m ago•0 comments

AI Data Center Power Constraints Are the Real 2026 Bottleneck

https://www.spheron.network/blog/ai-data-center-power-constraints-2026/
2•DaWe01•16m ago•1 comments

Effective Patterns for Advanced MCP Usage

https://www.pulsemcp.com/posts/effective-patterns-for-advanced-mcp-usage
1•mfbx9da4•17m ago•0 comments

Congress Trades: Which US politician is trading now

https://apify.com/russet_flea/congress-trades-api
1•Kavon2992•24m ago•0 comments

Free GPT 5.6 Terra and Luna (2.5M/day) & 250k Sol – free experiments

https://platform.openai.com/settings/organization/data-controls/sharing
1•radio879•26m ago•1 comments

Podcast Feed from NotebookLM Summaries

https://shivamrana.me/2026/07/class-of-one/
1•tminima•26m ago•0 comments

Kimi K3 Why Washington Is Watching

https://www.bargo.ai/research/kimi-k3-frontend-code-arena-benchmark-policy
2•Kavon2992•26m ago•0 comments

Exploit brokers pay $500k for WordPress RCEs. I found one with GPT5.6 and $25

https://slcyber.io/research-center/exploit-brokers-pay-500000-for-a-wordpress-rce-i-found-one-wit...
6•infosecau•29m ago•0 comments

Show HN: Growth-Ratio Energy Function as Leading Indicator of Agent Task Failure

https://github.com/vishal-dehurdle/state-harness
1•visha1v•31m ago•0 comments

The Search for Another Earth-Like Planet Just Took a Big Step Forward

https://www.wired.com/story/search-for-earth-like-planet-step-forward/
2•beardyw•31m ago•1 comments

Topological Control of LLMs: A Route to Trustworthy AI

https://cacm.acm.org/blogcacm/topological-control-of-llms-a-route-to-trustworthy-ai/
1•visha1v•33m ago•0 comments

The Dawn of AI Change-Control

https://cacm.acm.org/news/the-dawn-of-ai-change-control/
1•visha1v•33m ago•0 comments

Amsterdam activists throw acid at Microsoft datacenter project

https://www.theregister.com/ai-and-ml/2026/07/16/amsterdam-activists-throw-acid-at-microsoft-data...
2•vrganj•36m ago•0 comments

Show HN: Run all your sites SEO on autopilot (boldpilot.club)

https://boldpilot.club
1•Utopyasz•36m ago•0 comments

Show HN: A pi extension that adds a /for prompt-loop with $each insertion

https://pi.dev/packages/pi-for-each
1•jejay•36m ago•0 comments

MSE-GLM – A Deterministic Zero-Weight Graph Language Model

https://github.com/fodokidza/mse_glm
1•clifffodokidza•36m ago•0 comments

Obsidian stores notes privately on your device

https://obsidian.md/
1•doener•40m ago•0 comments

Show HN: The Hanoi Tree

https://avl-games.com/
1•berardino•40m ago•2 comments

Trump pushes UN 'free speech' declaration in veiled attack on EU tech regulation

https://www.politico.eu/article/trump-administration-will-push-un-free-speech-declaration-that-ta...
3•thm•43m ago•0 comments

Make every row and column a group of three

https://sixfold.pwheslop.com
1•michaelbrooks•46m ago•1 comments

Java was a three-day hotfix away from dying horribly on stage

https://www.theregister.com/devops/2026/07/18/java-was-a-three-day-hotfix-away-from-dying-horribl...
1•beardyw•47m ago•0 comments

Write with Maximum Effort

https://petegleeson.com/blog/write-with-maximum-effort/
2•petegleeson•54m ago•0 comments

GEMM Performance Measurement Methodology Guidelines

https://docs.nvidia.com/cutlass/latest/media/docs/cpp/gemm_performance_measurement_methodology_gu...
1•matt_d•58m ago•0 comments

Faster Algorithms for Structured Matrix Multiplication via Flip Graph Search

https://dl.acm.org/doi/10.1145/3815436.3815455
1•matt_d•59m ago•0 comments

International Math Olympiad 2026 Results

https://www.imo2026.com/Results/Individual_Results.htm
2•pykello•1h ago•0 comments

I'm Done with Mullvad

https://moonwriting.blog/i-m-done-with-mullvad
24•lylo•1h ago•33 comments

Vibecoded Scheme Implementation

https://kaappi-lang.org/
1•baijum•1h ago•0 comments

Nolan's Odyssey – A technical analysis by a nitpicky Classics student

https://earlrambles.pagecord.com/nolans-odyssey-a-very-technical-analysis-by-a-very-nitpicky-clas...
3•lylo•1h ago•0 comments