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

All you never wanted to know about corporate bond market issuance

https://www.ft.com/content/47a66129-548e-45c6-8855-0691616e92da
1•JumpCrisscross•4m ago•0 comments

Package Management as Org Chart

https://nesbitt.io/2026/07/10/package-management-as-org-chart.html
1•zaik•4m ago•0 comments

AI developers are buying up old books in Germany in large numbers

https://logos-pres.md/en/news/ai-developers-are-buying-up-old-books-in-germany-in-large-numbers/
1•koeploade•4m ago•0 comments

iPod: No wireless. Less space than a nomad. Lame. (2001)

https://slashdot.org/story/01/10/23/1816257/apple-releases-ipod
1•simonebrunozzi•5m ago•0 comments

Show HN: Spacemap.co – A 3D, real-time, real-scale map of the solar system

https://spacemap.co/b/399/Earth
1•juliie•6m ago•0 comments

I think I was part of a model distillation attack

https://sebastianmarines.com/post/i-think-i-was-part-of-a-model-distillation-attack/
1•marinesebastian•7m ago•0 comments

Is OpenRouter miss pricing GPT 5.6 models?

https://openrouter.ai/models
1•tmaly•9m ago•2 comments

Announcing Linkwarden 2.15

https://linkwarden.app/blog/releases/2.15
1•daniel31x13•13m ago•0 comments

Welcome back, cable? Netflix could be getting live TV

https://www.neowin.net/news/welcome-back-cable-netflix-could-be-getting-live-tv/
1•bundie•13m ago•0 comments

Tempolocus looks at time-series activity patterns to infer a location

https://github.com/ail-project/tempolocus
1•adulau•16m ago•0 comments

The Game Disc May Be Dying and I Think I'm Okay with It

https://www.zenofdesign.com/the-game-disc-may-be-dying-and-i-think-im-okay-with-it/
3•speckx•17m ago•0 comments

Karmic Predicament

https://www.guidavid.com/writing/karmic-predicament
1•gdss•17m ago•0 comments

GPT-5.6 Sol Wrote a 50k-Word Novella in 8 Hours

https://gamecult.org/Blog/gpt-5-6-sol-wrote-a-50000-word-novella-in-8-hours
1•pixelbro•18m ago•1 comments

Don't discontinue Gemini 2.5 Flash

https://discuss.ai.google.dev/t/please-dont-discontinue-gemini-2-5-flash/174246
2•NickDob•22m ago•0 comments

Streaming Taylor Swift on Mac OS 9 via Gopher

https://debene.dev/posts/casquinha-macos9/
2•fdebene•23m ago•0 comments

Show HN: Cactus v2 – On-device AI with cloud fallback

1•rshemet•25m ago•0 comments

Book Summaries

https://brettfisher.dev/posts/book-summaries/
1•fisher-brett•27m ago•0 comments

Superfile: Terminal File Manager

https://superfile.dev/
1•thunderbong•30m ago•0 comments

The oceans are full of heat, and it's coming ashore

https://grist.org/climate/heatwaves-oceans-record-temperatures-el-nino/
1•speckx•30m ago•0 comments

Show HN: chwire – Native-Format ClickHouse JavaScript Client over HTTP/TCP

https://github.com/maxjustus/chwire
1•maxjustus•31m ago•0 comments

Guy is banned by OpenAI for cyber abuse, his AI appeals, another AI approves it

https://twitter.com/endpointarena/status/2075245286339846145
3•binyu•32m ago•2 comments

An OpenAI model crushed top human programmers at a world coding competition

https://www.understandingai.org/p/an-openai-model-crushed-top-human
1•speckx•37m ago•1 comments

Do Smart Glasses Have a Surveillance Problem?

https://www.vogue.com/article/do-smart-glasses-have-a-surveillance-problem
2•cdrnsf•40m ago•0 comments

Casual Viewing: Why Netflix looks like that (2025)

https://www.nplusonemag.com/issue-49/essays/casual-viewing/
1•zem•41m ago•0 comments

An Update on the scraper situation

https://lwn.net/SubscriberLink/1080822/990a8a5e2d379085/
5•chmaynard•44m ago•1 comments

MAGA's attack on science is worse than it looks

https://www.noahpinion.blog/p/magas-attack-on-science-is-even-worse
7•gumby•45m ago•0 comments

Ask HN: Experiences of Working in Big Data

1•theginger•46m ago•0 comments

Capitalism Gone Wrong

https://kasperjunge.com/blog/capitalism-gone-wrong/
19•juunge•46m ago•23 comments

Earthkit v1.0 – Open-source tools for seamless earth science workflows

https://earthkit.ecmwf.int
1•giuliomagnifico•46m ago•0 comments

Shooting Starlink: The "no limits" partnership between Russia and China

https://theins.press/en/inv/294635
4•uxhacker•49m ago•2 comments