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

Comments

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

Show HN: Making KCP as a LibUV Extension

https://github.com/InstantWebP2P/libuvpp
1•sequoiar68•29s ago•0 comments

Sentry Is Down

https://status.sentry.io
1•jrouah•2m ago•0 comments

Blimps lifting quantum data centers to the stratosphere?

https://newatlas.com/quantum-computing/blimp-quantum-computers/
1•stOneskull•3m ago•0 comments

How to Find High-Intent Prompts for AI Search

https://www.tryzenith.ai/blog/b2b-aeo-high-intent-prompts-ai-search
1•manveerc•6m ago•0 comments

VIPCalendar-Free printable calendars with holidays for over 100 countries

https://vipcalendar.me/
1•SinanW•7m ago•0 comments

Where Is the Good Terminal?

2•caliweed•8m ago•0 comments

Hello Europe, Joe Biden is gone

https://berthub.eu/articles/posts/hello-europe-joe-biden-is-gone/
2•TechTechTech•10m ago•0 comments

Leak confirms OpenAI is preparing ads on ChatGPT for public roll out

https://www.bleepingcomputer.com/news/artificial-intelligence/leak-confirms-openai-is-preparing-a...
3•fleahunter•18m ago•0 comments

Understanding Clustering for Technitium DNS Server

https://blog.technitium.com/2025/11/understanding-clustering-and-how-to.html
1•feldrim•22m ago•0 comments

Optimze It for My GPU

1•rncode•25m ago•0 comments

Vision Pro M5 review: It's time for Apple to make some tough choices

https://arstechnica.com/gadgets/2025/11/where-apples-vision-pro-stands-today-post-m5-refresh/
3•mpweiher•27m ago•0 comments

The Journey to the Edge of the Infinite Chess Board [video]

https://www.youtube.com/watch?v=AaBkZzy2t0Y
1•chii•31m ago•0 comments

Barack Obama and Anthony Bourdain Have Dinner [video]

https://www.youtube.com/watch?v=efG56KcQj0Q
3•haritha-j•38m ago•2 comments

Belgian Police exposed using botnets to manipulate EU data law impact assessment

https://old.reddit.com/r/europe/comments/1p9kxhm/belgian_federal_police_forgot_to_turn_their_vpn/
36•saubeidl•39m ago•2 comments

Iberia tells customers it was hit by a major security breach

https://www.techradar.com/pro/security/iberia-tells-customers-it-was-hit-by-a-major-security-breach
3•frereubu•39m ago•0 comments

UN panel says Israel operating 'de facto policy of torture'

https://www.bbc.com/news/articles/ckglrdg6kz7o
11•hebelehubele•50m ago•1 comments

High Air Pollution Could Diminish Exercise Benefits by 50%, Study Finds

https://scienceclock.com/exercise-may-protect-less-when-air-pollution-is-high-study-finds/
4•ashishgupta2209•56m ago•1 comments

The GitHub Infrastructure Powering North Korea's Contagious Interview NPM Attack

https://socket.dev/blog/north-korea-contagious-interview-npm-attacks
4•giuliomagnifico•56m ago•0 comments

Show HN: FISE – A rule-based, keyless semantic envelope for web/API data

https://demo.fise.dev/demo
2•anbkit•1h ago•0 comments

Power of Empty Spaces: Seeing What Your Metrics Miss

https://kanbanzone.com/2025/power-of-empty-spaces-seeing-what-your-metrics-miss/
2•adrianhoward•1h ago•0 comments

Ask HN: Practicality of harnessing geomagnetic fields for electrical generation?

3•keepamovin•1h ago•0 comments

Free Nano Banana Pro

https://www.freenanobanana.app
1•ig1201•1h ago•1 comments

Cerebras CS-3 wafer-scale 1e6 cores 125 PFLOPS 25kW (30kA)

https://youtu.be/tlvfZulPYaw
1•burnt-resistor•1h ago•1 comments

Security Layer 4.0 – First semantic firewall blocks malicious intent"

2•jaspertvdm•1h ago•0 comments

The Thinking Game – Full Documentary (Google DeepMind)

https://youtu.be/d95J8yzvjbQ
1•vismit2000•1h ago•0 comments

Own a Graph

https://staysaasy.com/strategy/2025/11/25/own-a-graph.html
1•thisismytest•1h ago•0 comments

Spoofing her majesty in the 'Great Royal Phone Embarrassment' of 1995

https://1995blog.com/2015/10/25/spoofing-her-majesty-in-the-great-royal-phone-embarrassment-of-1995/
2•ubutler•1h ago•2 comments

Why Container Images Keep Getting Bigger (and What to Do About It)

https://writethat.blog/layers.html
2•imjacobclark•1h ago•0 comments

Show HN: Benchmark-ips-Python – benchmarking tool for Python

https://github.com/gogainda/benchmark-ips-python
2•Igor_Wiwi•1h ago•0 comments

Reddit Migrates Comment Back End from Python to Go Microservice to Halve Latency

https://www.infoq.com/news/2025/11/reddit-comments-go-migration/
4•ashishb•1h ago•0 comments