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

How to build a circular LCD clock

https://blinry.org/lcd-clock/
1•zdw•1m ago•0 comments

We taught our platform to learn its own pricing decisions

https://avriz.io/eng/paper
1•rezat•3m ago•0 comments

LLMs and Shaders

https://amitp.blogspot.com/2026/07/llms-and-shaders.html
1•bobbiechen•7m ago•0 comments

SK Hynix CEO sees worst memory shortage in 2027, with high demand beyond 2030

https://www.reuters.com/world/asia-pacific/sk-hynix-ceo-sees-worst-ever-memory-supply-shortage-20...
1•jnord•8m ago•0 comments

A Speed Limit for Computers

https://caolan.uk/notes/2026-07-02_a_speed_limit_for_computers.cm
2•zdw•13m ago•0 comments

Show HN: Collaborative context-sharing memory platform for agents and teams

https://xysq.ai/
1•ximihoque•14m ago•0 comments

A Technology for Free Will

https://ziyzhu.com/a-technology-for-free-will
1•ziyzhu•14m ago•0 comments

You can now create and chat with an AI Mommy on Chatbrat

https://chatbrat.ai/bratlog/chat-with-ai-mommy-free
1•henrypissler•16m ago•0 comments

Show HN: Codebase Posters – turn any Git repo into generative poster art

https://github.com/unable12/codebase-posters
1•unable0•16m ago•0 comments

What is Property Based Testing? (2016)

https://hypothesis.works/articles/what-is-property-based-testing/
1•downbad_•20m ago•0 comments

Bacteria turning uranium into stable compound

https://scitechdaily.com/bacteria-turn-toxic-uranium-into-a-surprisingly-stable-compound/
1•Gaishan•23m ago•0 comments

Ask HN: How do you use LLMs for private discussions?

2•emerongi•25m ago•2 comments

Europe's productivity keeps outpacing the US

https://sethackerman.substack.com/p/europes-productivity-keeps-outpacing
1•ZeljkoS•26m ago•0 comments

Advice to New Managers: Don't Joke About Firing People (2020)

https://staysaasy.com/engineering/2020/06/09/Don%27t-Joke.html
1•downbad_•29m ago•0 comments

Where did my segfault go?

https://rmpr.xyz/Where-did-my-segfault-go/
2•birdculture•30m ago•0 comments

Good for business or profit at any cost: Private equity's controversial side

https://www.theguardian.com/business/ng-interactive/2026/jun/29/private-equity-visual-explainer-u...
3•gmays•30m ago•0 comments

Show HN: Bananarr – Peel Back the Tech Stack of Any Website

https://bananarr.com/
1•ernsheong•31m ago•0 comments

Show HN: Sleep external displays connected to a MacBook after closing lid

https://github.com/KristijanKocev/lidwatch
1•justAnotherHero•31m ago•0 comments

The Trouble with Effortless Code

https://codeplusconduct.substack.com/p/the-trouble-with-effortless-code
1•mooreds•36m ago•0 comments

A top Russian oligarch breaks the silence

https://www.economist.com/1843/2026/07/09/a-top-russian-oligarch-breaks-the-silence
2•mooreds•38m ago•1 comments

Show HN: Personal Biohacking Lab

https://selfassay.com
1•ainthusiast•42m ago•0 comments

I trained a 113M-parameter earthquake LLM from absolute scratch

https://github.com/jiazhe868/nanogpt-seis
2•jzsfg•44m ago•0 comments

"A Clockwork Orange" Nadsat Dictionary

https://www.mattiavaccari.net/mis/nadsat.html
2•yubblegum•45m ago•0 comments

I built a community ranking platform for everything – would love brutal feedback

https://peakd.io
1•GroguMaster•47m ago•0 comments

Believe the Hype About Teen Takeovers

https://www.theatlantic.com/ideas/2026/07/teen-takeovers-violence-dc/687866/
4•paulpauper•49m ago•0 comments

American Loneliness

https://www.theatlantic.com/ideas/2026/07/america-birthday-250-roadtrip/687877/
2•paulpauper•50m ago•1 comments

UI Degrades over Time

https://grumpy.website/1723
2•petilon•50m ago•1 comments

AI is the new Printing Press (another trite take)

https://idan.substack.com/p/ai-is-the-new-printing-press
1•idanb•53m ago•0 comments

Profiling the "Abundance" housing bottleneck with real data

https://laxmena.com/same-capacity-less-throughput
2•laxmena•57m ago•0 comments

Show HN: Almanac – A self-updating wiki from your files

https://usealmanac.com
1•reveriedev•57m ago•0 comments