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

Turned ArXiv into an AI-Agent-Friendly Interface (No Browser Vision Needed)

https://mediause.dev/skills/arxiv
1•yooibox•3m ago•0 comments

Temporal Primer – Building Long-Running Systems

https://arpitbhayani.me/blogs/temporal-primer/
1•BugsBunnyCodes•5m ago•0 comments

The Database Zoo: Exotic Data Storage Engines

https://blog.gaborkoos.com/posts/2025-09-19-The-Database-Zoo-Exotic-Data-Storage-Engines/
1•theanonymousone•7m ago•0 comments

Please stop talking about Gen Z in the office

https://www.ft.com/content/ff49b595-b5ed-4be9-8cb1-1522b7086b28
1•rustoo•11m ago•0 comments

Documenting my immigrant founder's journey in the Bay Area

https://iamandrespalacios.substack.com/p/series-eh-a-founders-journey
1•andres-palacios•13m ago•0 comments

Elon Musk is going all-in on an unproven technology

https://economist.com/briefing/2026/05/21/elon-musk-is-going-all-in-on-an-unproven-technology
2•andsoitis•16m ago•0 comments

Delivery Hero confirms takeover offer from Uber

https://www.reuters.com/business/delivery-hero-confirms-takeover-offer-uber-2026-05-23/
3•thm•38m ago•0 comments

Seeking a Language in Mathematics 1523-1571

https://tyndale.org/journals/reformj01/bmarsden.html
2•jruohonen•40m ago•1 comments

Show HN: Logo Fonts

https://logofonts.surge.sh/
2•stagas•47m ago•0 comments

Why Every IKEA Product Has a Weird Name [video]

https://www.youtube.com/watch?v=c89T2snPvNo
3•vinhnx•53m ago•0 comments

Meta's Claudeonomics leaderboard

https://www.indiatoday.in/technology/news/story/meta-shuts-down-internal-claudeonomics-ai-tool-af...
3•phront•57m ago•0 comments

I tracked down the thief who stole $200k of Lego [video]

https://www.youtube.com/watch?v=wscQpkcwgNU
2•pinkmuffinere•1h ago•1 comments

Limerick

https://www.worldwidewords.org/surprise.html
3•jruohonen•1h ago•0 comments

We Were Wrong About Fasting Study Finds

https://www.sciencealert.com/we-were-wrong-about-fasting-massive-study-finds
3•mikhael•1h ago•0 comments

C Constructs That Still Don't Work in C++ – and a Few That Changed

https://lospino.so/blog/c-constructs-that-still-dont-work-in-cpp/
2•jandeboevrie•1h ago•0 comments

A Data Mining Adventure into the World of Lichess Puzzle Database

https://lichess.org/@/heroku/blog/how-many-different-backrank-mates-are-there/gSUlcRkl
3•heroku•1h ago•0 comments

The Verification Problem (On OpenAI's Erdős Disproof)

https://korbonits.com/blog/2026-05-23-the-verification-problem/
2•korbonits•1h ago•0 comments

AI Can Do Anything

https://clawdcursor.com
3•AmDab•1h ago•0 comments

Does bulk memmove speed up std:remove_if? (No.)

https://quuxplusone.github.io/blog/2026/05/23/chunked-remove/
2•jandeboevrie•1h ago•0 comments

European Data Centers Reuse Waste Heat to Heat Homes

https://letsdatascience.com/news/european-data-centers-reuse-waste-heat-to-heat-homes-48086eeb
1•GeorgeWoff25•1h ago•0 comments

How to Call an API from an Email

https://redo.com/eng-blog/how-to-call-an-api-from-an-email/
3•crcastle•1h ago•0 comments

"Long-Term Support" doesn't mean what you think

https://pointieststick.com/2026/05/23/long-term-support-doesnt-mean-what-you-think/
3•jandeboevrie•1h ago•0 comments

2of3: Enter a secret. Get 3 cards

https://2of3.ente.com
3•anandbaburajan•1h ago•0 comments

SpaceX, OpenAI and Anthropic IPOs set to test limits of AI boom

https://www.ft.com/content/ae9bb47d-bd1d-473c-b4c5-abae0420cc12
1•1vuio0pswjnm7•1h ago•1 comments

Dark trades' risk destroying London's stock markets

https://www.thetimes.com/business/companies-markets/article/dark-trades-risk-destroying-stock-mar...
3•petethomas•1h ago•0 comments

BNoise – The Easiest Music Maker

https://bnoise.pages.dev/
3•telui•1h ago•1 comments

Hacker Typer – Hacker Screen

https://startuplaunchpage.com/hacker-typer
2•vnyarongi•1h ago•0 comments

Reddit stock drops almost 6%, Meta launches standalone app for online forums

https://www.cnbc.com/2026/05/22/reddit-stock-drops-after-meta-launches-forum-app.html
10•1vuio0pswjnm7•1h ago•1 comments

Cleaning Station

https://en.wikipedia.org/wiki/Cleaning_station
3•pvillano•1h ago•1 comments

The phrase "taste is the differentiator" is not beneficial

https://hazn.com/please-stop-repeating-is-the-differentiator
2•hazn•1h ago•0 comments