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•6mo ago

Comments

panstromek•6mo 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•6mo 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•6mo 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_•6mo 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_•6mo 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•6mo 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•6mo 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

Up and Down the Ladder of Abstraction

https://worrydream.com/LadderOfAbstraction/
1•cat-whisperer•1m ago•0 comments

Most of What We Call Progress

https://yusufaytas.com/most-of-what-we-call-progress/
2•nkko•3m ago•0 comments

Exposed Source Code of Apps.apple.come

https://github.com/rxliuli/apps.apple.com/pulls
1•xlmnxp•5m ago•0 comments

Building Browser-Native Presentations with Scittle / ClojureScript

https://clojurecivitas.github.io/scittle/presentations/browser_native_slides.html
1•Borkdude•7m ago•0 comments

Don't Trust Smart People

https://mtmason.com/dont-trust-smart-people/
1•v9v•11m ago•0 comments

The Company Funneling Paywalled Articles to AI Developers

https://www.theatlantic.com/technology/2025/11/common-crawl-ai-training-data/684567/
3•CaptainZapp•15m ago•0 comments

Chaldean Language Resouce

https://learnchaldean.org/
1•marysminefnuf•17m ago•0 comments

OpenLoRa: Validating LoRa Implementations Through an Open-Sourced Framework

https://www.usenix.org/conference/nsdi23/presentation/mishra
1•teleforce•17m ago•0 comments

A Quote from Belligerentbarbies

https://simonwillison.net/2025/Nov/5/brenda/
2•isaacfrond•21m ago•0 comments

Japan dispatches troops to help combat deadly bear attacks

https://www.reuters.com/business/environment/japan-sends-troops-combat-deadly-wave-bear-attacks-2...
1•mkl•27m ago•0 comments

Show HN: X-Pilot – Focused on Engagement. Built for Twitter Growth

https://landing.x-pilot.social/
1•DylanLong•28m ago•0 comments

Largest panoramic image – 2 Terapixels

https://holmenkollen360.com/
1•cengen•30m ago•0 comments

Lessons from Implementing RAG in 2025

https://www.truestate.io/blog/lessons-from-rag
4•elliotto•31m ago•1 comments

Reluctant Philosopher Kings? Leadership in Academia

https://bastian.rieck.me/blog/2022/philosopher_king/
1•Pseudomanifold•31m ago•0 comments

Skills for the Future

https://bastian.rieck.me/blog/2025/skills/
1•Pseudomanifold•31m ago•0 comments

A Policy of Contradictions

http://contradict-.surge.sh/
1•freespirt•31m ago•1 comments

The dirty secret that makes speedrunning on 'SpongeBob' a lot faster

https://www.inverse.com/input/gaming/the-dirty-secret-that-makes-speedrunning-on-spongebob-a-lot-...
1•pncnmnp•31m ago•0 comments

WebTransport is almost here to allow UDP-like exchange in the browser

https://developer.mozilla.org/en-US/docs/Web/API/WebTransport_API
3•BinaryIgor•37m ago•0 comments

We built a internal tool that Claude refused to help us with

3•AZargaryan•38m ago•0 comments

Maurice Evans, Firework Collector

https://spitalfieldslife.com/2025/11/05/maurice-evans-firework-collector-iii/
3•navigate8310•39m ago•0 comments

Creating a Gridogram: Hiding a Sentence in a Compact Grid of Letters

https://www.gridogram.com/blah/creating
2•jap•46m ago•0 comments

A man in the middle attack compromised every device except mine

https://twitter.com/melissa/status/1985889161388441892
2•Michelangelo11•46m ago•1 comments

The Hackers Manifesto (The Conscience of a Hacker) (1986)

https://phrack.org/issues/7/3
4•OuterVale•47m ago•0 comments

Show HN: A new language for COBOL workloads, built on Go

https://github.com/CoreBankLang/CobGo_community
3•nsokra02•53m ago•0 comments

Danish authorities in rush to close security loophole in Chinese electric buses

https://www.theguardian.com/world/2025/nov/05/danish-authorities-in-rush-to-close-security-loopho...
5•disenchanted•55m ago•0 comments

Apple Prepares to Enter Low-Cost Laptop Market for First Time

https://www.bloomberg.com/news/articles/2025-11-04/apple-readies-a-low-cost-laptop-to-rival-chrom...
5•mgh2•1h ago•1 comments

The Mac now has 14.8% of the U.S. PC market and 17.1% of the global PC market

https://appleworld.today/2025/03/the-mac-now-has-14-8-of-the-u-s-pc-market-and-17-1-of-the-global...
5•mgh2•1h ago•0 comments

Trump turnabout sees him renominate amateur astronaut Jared Isaacman to run NASA

https://www.theregister.com/2025/11/05/jared_isaacman_nasa_administrator_again/
4•beardyw•1h ago•0 comments

Backing up my repositories to self-hosted Gitea

https://blog.kulman.sk/self-hosted-gitea-backup/
2•ig0r0•1h ago•0 comments

In a stunning comeback, Jared Isaacman is renominated to lead NASA

https://arstechnica.com/space/2025/11/in-a-stunning-comeback-jared-isaacman-is-renominated-to-lea...
4•enraged_camel•1h ago•0 comments