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

Beyond 80/20: High-Entropy Minority Tokens Drive Effective RL for LLM Reasoning

https://arxiv.org/abs/2506.01939
1•mdp2021•1m ago•0 comments

It is just too much of everything

https://www.respan.ai/market-map
1•sminchev•2m ago•1 comments

A Brief, Incomplete, and Mostly Wrong History of Programming Languages (2009)

http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html
2•downbad_•9m ago•1 comments

The Elephant in the Room

https://www.joshwcomeau.com/email/wham-launch-005-elephant-2-p/
1•ameybhavsar•10m ago•0 comments

OpenAI Technical Goals (2016)

https://openai.com/index/openai-technical-goals/
1•chistev•12m ago•1 comments

US orders chip equipment companies to halt some shipments to China #2 chipmaker

https://www.reuters.com/world/china/us-orders-chip-equipment-companies-halt-some-shipments-hua-ho...
1•giuliomagnifico•14m ago•0 comments

The box-tickers shall inherit the Earth

https://spectator.com/article/the-box-tickers-shall-inherit-the-earth/
1•calpaterson•15m ago•0 comments

VS Code now enables Git AI co-authoring by default

https://code.visualstudio.com/updates/v1_118#_copilot-added-as-a-git-coauthor-by-default
1•nh43215rgb•16m ago•0 comments

Inspired

https://daniel.haxx.se/blog/2026/04/30/inspired/
1•TangerineDream•16m ago•0 comments

Near Future of Programming Languages (2017) [pdf]

https://web.archive.org/web/20220325175116/http://dev.stephendiehl.com/nearfuture.pdf
1•tosh•19m ago•0 comments

Why are the Artemis II photos on Flickr?

https://www.anildash.com/2026/04/30/artemis-photos-flickr/
2•Tomte•20m ago•0 comments

AI Slopocalypse 2027

https://www.stephendiehl.com/posts/ai_slop_2027/
1•andsoitis•21m ago•0 comments

Ask HN: Anyone using AI agents for active learning sprints? Here's my setup

1•bhagyeshsp•21m ago•0 comments

Free N8N Workflow Cost Calculator: Cloud vs. Make.com vs. Self-Hosted

https://triumphoid.com/n8n-workflow-cost-calculator/
2•ElizabethSramek•21m ago•0 comments

Renewables and batteries drive down fossil fuel use despite record demand

https://www.abc.net.au/news/2026-04-30/renewables-batteries-drive-down-fossil-fuel-use-/106622772
2•xbmcuser•22m ago•0 comments

The Download: storing nuclear waste and orchestrating agents

https://www.technologyreview.com/2026/04/29/1136666/the-download-nuclear-waste-orchestrated-ai-ag...
1•joozio•22m ago•0 comments

The Kardashev-Marx Scale

https://www.stephendiehl.com/posts/kardeschev/
1•andsoitis•24m ago•0 comments

Why skill match is not enough

https://gudok.xyz/smine/
1•signa11•24m ago•0 comments

Share.google delivers wrong TLS certificate in some regions, breaking shortlinks

https://semonto.com/tools/https-checker
1•micw•25m ago•1 comments

A Field Guide to Bugs

https://www.stephendiehl.com/posts/field_guide_to_bugs/
1•andsoitis•25m ago•0 comments

Ask HN: Why are people leaving GitHub now?

2•l1am0•28m ago•4 comments

Ts-rest – what happens when a 3.3k star OSS project goes dormant

1•e7h4nz•33m ago•0 comments

OWASP PTK 9.9.0 / 9.9.1 is out

1•DenisPodgurskii•42m ago•0 comments

Show HN: RSME:A Reactive Stability Mutation Encryption

https://zenodo.org/records/19712564
1•RanggaS•43m ago•0 comments

A Comparative Security Analysis of Three Cloud-Based Password Managers

https://eprint.iacr.org/2026/058
1•agadius•44m ago•0 comments

Prompt Guidance – GPT-5.5

https://developers.openai.com/api/docs/guides/prompt-guidance
1•amunozo•44m ago•0 comments

RNet: Users pay for their own AI usage instead of apps covering token costs

1•rNetAi•46m ago•0 comments

A Gopher Meets a Crab

https://miren.dev/blog/gopher-meets-crab
1•radimm•54m ago•0 comments

Scott Aaronson on quantum: "Will you heed my warnings NOW?"

https://scottaaronson.blog/?p=9718
18•bwesterb•54m ago•6 comments

I took an algorithm to court in Sweden. The algorithm won

https://www.theguardian.com/commentisfree/2026/apr/30/i-took-an-algorithm-to-court-in-sweden-the-...
5•nickcotter•54m ago•0 comments