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

GLM-5.2's Code Reviews Are Only as Good as Your Prompt

https://blog.kilo.ai/p/glm-52s-code-reviews-are-only-as
1•justiceforsaas•3m ago•0 comments

Why averaging LLM benchmark scores is fundamentally broken

https://arxiv.org/abs/2605.11205
1•testofschool•5m ago•0 comments

Perseverance Finds Complex Organic Matter on Mars

https://www.sci.news/space/perseverance-complex-organic-matter-mars-14882.html
1•wasting_time•6m ago•0 comments

Ditching Claude for OpenCode and OpenRouter

https://www.ianwootten.co.uk/2026/07/01/ditching-claude-for-opencode-and-openrouter/
3•jandeboevrie•6m ago•0 comments

Show HN: Bol.ai – Extract structured data from Bills of Lading

https://bol.ai/
1•dutchcode•6m ago•0 comments

Show HN: Pokayoke – turn repo conventions into deterministic checks for agents

https://pokayoke.codes
1•sarreph•9m ago•0 comments

How can we make Twitter friendlier

3•RoastSlop•17m ago•1 comments

Dynamo Draughts. 10x10 game for DOS, open source

https://orac81.itch.io/dynamo-draughts
2•orac81•18m ago•0 comments

Show HN: Petabyte-scale storage for AI agent sandboxes

https://twitter.com/aniketmaurya/status/2072249879573754225
2•theaniketmaurya•20m ago•1 comments

Solar Panels: AC vs. DC (2008)

https://rimstar.org/renewnrg/solarpwr.htm
1•tetris11•21m ago•0 comments

Google Gemini Claims to be "structurally protective" of Donald Trump

https://www.thatprivacyguy.com/blog/google-ai-guardrails-protect-trump/
2•AlexanderHanff•23m ago•1 comments

Single Dose of Frog-Derived Gut Bacterium Eradicates 100% of Tumors in Mice

https://www.thefocalpoints.com/p/new-study-frog-derived-gut-bacterium
2•mpweiher•24m ago•0 comments

Vast Majority support clampdown on social media to protect children

https://www.ippr.org/media-office/vast-majority-support-clampdown-on-social-media-to-protect-chil...
1•vrganj•29m ago•0 comments

I'm Building an App to make $10k/month and I'm Recording the whole thing

https://twitter.com/jomatech/status/2071774976173355221
1•rzk•31m ago•0 comments

Show HN: Fail2ban-Dashboard

https://github.com/webishdev/fail2ban-dashboard
1•musicmatze•32m ago•0 comments

The evolution of window and class extra bytes in Windows

https://devblogs.microsoft.com/oldnewthing/20260629-00/?p=112484
1•Stratoscope•32m ago•0 comments

Building AI for Production Requires More Engineering Than AI

https://geekyants.com/blog/the-hidden-cost-of-delaying-ai-product-modernization-in-enterprise-bus...
2•Max536752•32m ago•0 comments

Bloomberg: Spain Built Too Much Solar. Investors Want Out

https://www.bloomberg.com/news/articles/2026-06-29/spain-s-solar-and-wind-power-boom-is-an-invest...
3•vblanco•35m ago•2 comments

Scientists say most people need more protein than current guidelines suggest

https://www.sciencedaily.com/releases/2026/06/260622091429.htm
2•bushwart•36m ago•2 comments

What If a City Ran on UTC for Two Weeks?

https://zulu.sekor.eu.org/
1•modinfo•40m ago•0 comments

Getty Images Plans to End Shutterstock Deal After U.K. Imposes Conditions

https://www.wsj.com/business/getty-images-plans-to-end-shutterstock-deal-after-u-k-imposes-condit...
1•thm•40m ago•0 comments

Thoughts on the Near Future

https://xcancel.com/i/article/2072056960430789032
1•alecco•41m ago•1 comments

Anthropic launches Claude Science, Google and OpenAI racing to compete

https://techfundingnews.com/anthropic-launches-claude-science-and-google-and-openai-are-already-r...
2•enlightpixel•42m ago•0 comments

34,266 repos were scanned: 1 in 4 orgs showed gaps in AI agent config files

https://blog.codacy.com/we-scanned-34266-repos.-1-in-4-orgs-showed-gaps-in-ai-agent-config-files
1•claudiacsf•43m ago•0 comments

Turning Supacode into a Full, Agent First IDE

https://corti.com/turning-supacode-into-a-full-ide-flexible-panes-for-agents-editor-file-manageme...
1•TechPreacher•44m ago•0 comments

Ente Is Open

https://ente.com/open/
4•shaunpud•49m ago•0 comments

Open-source Claude/Codex/Cursor limits tracker for Mac

https://github.com/aalksii/creditwatcher
1•aalksii•50m ago•0 comments

Ocean surface temperatures hit a record high for June

https://www.theguardian.com/environment/2026/jul/01/ocean-surface-temperatures-hit-a-record-high-...
1•montalbano•51m ago•0 comments

Getty's Shutterstock merger falls apart

https://www.theverge.com/tech/960047/getty-shutterstock-merger-agreement-termination
1•rarisma•54m ago•0 comments

Free online tools in one place

https://www.quelloai.com
1•gusdestro•55m ago•1 comments