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

The inventor hoping to fix your washing machine to stop microplastics

https://www.theguardian.com/environment/2026/may/13/you-have-to-be-where-the-pollution-is-the-inv...
2•thunderbong•7m ago•0 comments

China moves to regulate digital humans - Reuters

https://www.reuters.com/world/china/china-moves-regulate-digital-humans-bans-addictive-services-c...
2•Baljhin•8m ago•1 comments

Dungeons & Desktops: Building a Roguelike with GitHub Copilot CLI

https://github.blog/ai-and-ml/github-copilot/dungeons-desktops-building-a-procedurally-generated-...
1•lee337•11m ago•0 comments

Dungeons & Desktops: 10 open source roguelikes that never die

https://github.blog/open-source/gaming/dungeons-desktops-10-roguelikes-that-never-die-because-the...
1•lee337•13m ago•0 comments

Dmitry.gr: Projects

https://dmitry.gr/
1•gurjeet•16m ago•0 comments

delta time

https://www.deltatime.life/
1•mxfh•20m ago•0 comments

Vibe, A single-header lock-free networking library for Linux

https://github.com/xtellect/vibe
2•enduku•22m ago•0 comments

Avoiding and reducing microplastic false positives from dry glove contact

https://pubs.rsc.org/en/content/articlelanding/2026/ay/d5ay01801c
2•efavdb•23m ago•0 comments

Show HN: We rebuilt the archived Kubernetes Dashboard in React 19 and Go

https://kubernetes-dashboard.com/
1•isms-core-adm•23m ago•0 comments

The Original 1965 Gatorade Recipe

https://eatshistory.com/the-original-1965-gatorade-recipe-we-made-the-drink-that-started-a-billio...
1•cratermoon•25m ago•1 comments

Automating FPGA-Based Network Switches with Protocol Adaptive Customization

https://arxiv.org/abs/2604.21881
1•PaulHoule•28m ago•0 comments

SQLite Code of Ethics

https://sqlite.org/codeofethics.html
2•zdgeier•29m ago•0 comments

Project Wycheproof tests crypto libraries against known attacks

https://github.com/C2SP/wycheproof
2•PaulHoule•34m ago•0 comments

Show HN: AirScore – Daily air-quality emails tailored to household conditions

https://getairscore.com
1•JHARDIMAN•34m ago•1 comments

Show HN: Claude-pee: use Claude -p without the programmatic usage credit pool

https://github.com/sbhattap/claude-pee/tree/main
3•subarnab•38m ago•0 comments

Microbial Dark Matter and the Search for Life on Earth

https://mceglowski.substack.com/p/microbial-dark-matter-and-the-search
1•idlewords•39m ago•0 comments

Mystery Microsoft bug leaker keeps the zero-days coming

https://www.theregister.com/security/2026/05/13/disgruntled-researcher-releases-two-more-microsof...
6•e12e•41m ago•0 comments

Show HN: Grabbit: Search secondhand marketplaces in one place

https://grabbit.app
1•RedMustard•43m ago•0 comments

Short-Term Dietary Intervention Alters Physiological Profiles Relevant to Ageing

https://onlinelibrary.wiley.com/doi/10.1111/acel.70507
3•bookofjoe•45m ago•0 comments

Claude -p headless mode cannot use Max limits, will fall under API plan

5•forgingahead•46m ago•2 comments

Israeli Tech Exposes Users of Musk's Starlink Satellite-Based Internet

https://www.haaretz.com/israel-news/security-aviation/2026-05-12/ty-article-magazine/.premium/sta...
4•bhouston•48m ago•1 comments

Show HN: Abliteration – made-to-order training data for classifiers and evals

https://abliteration.ai/use-cases/synthetic-data
1•thomadev0•48m ago•1 comments

I spent months fighting VS Code webviews, so I built a universal protocol

https://oxp.sh/
1•aldgar•53m ago•0 comments

Scorched Earth 2000 is back

http://www.scorch2000.com/web/
10•meshko•54m ago•6 comments

PSF Welcomes Hudson River Trading (HRT) as a Visionary Sponsor

https://pyfound.blogspot.com/2026/05/psf-welcomes-hudson-river-trading-hrt.html
1•lumpa•55m ago•0 comments

126 Chrome extensions collected WhatsApp data through undisclosed servers

https://malext.io/reports/WaSteal/
1•p_stuart82•57m ago•0 comments

Trump's Disappearing China Hawks

https://www.politico.com/news/2026/05/13/trump-disappearing-china-hawks-00919051
2•petethomas•57m ago•0 comments

Taking Control of the SQLite WAL

https://philipotoole.com/taking-control-of-the-sqlite-wal/
1•otoolep•58m ago•0 comments

What Is Code?

https://martinfowler.com/articles/what-is-code.html
2•nahimn•1h ago•0 comments

Toyota built a $10B private utopia–what's going on in there?

https://arstechnica.com/cars/2026/05/inside-toyotas-10b-private-utopia-big-ideas-few-people-camer...
1•PaulHoule•1h ago•0 comments