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

Three Dogs Stroll

https://old.reddit.com/r/Pareidolia/comments/1jd5fro/three_dogs_stroll/
1•susam•48s ago•0 comments

JPM the Java Package Manager

1•sunnykentz•3m ago•0 comments

We unpack the journey from pivot hell to product-market fit [video]

https://www.youtube.com/watch?v=X1_WTh3Sm4c
1•rchachra•4m ago•0 comments

Lite^3, a JSON-Compatible Zero-Copy Serialization Format

https://github.com/fastserial/lite3
1•cryptonector•5m ago•1 comments

I Prefer Machines to Write My Code

http://verisimilitudes.net/2025-12-12
1•arlyle•5m ago•0 comments

EU Council introduces a €3 customs duty on every parcel. Starting July 1, 2026

https://twitter.com/EUCouncil/status/1999509838083010621
2•mickelsen•11m ago•0 comments

Nex gaming console – year's hottest toy?

https://www.wsj.com/business/entrepreneurship/nex-playground-toy-game-console-holiday-shopping-af...
2•gsanghera•13m ago•1 comments

Childhood instability accelerates women's sexual strategies, study suggests

https://medicalxpress.com/news/2025-12-childhood-instability-women-sexual-strategies.html
1•PaulHoule•14m ago•0 comments

The First Internal Evaluation of the Faust Baseline Version 2.5

https://www.intelligent-people.org/2025/12/11/the-first-internal-evaluation-of-the-faust-baseline...
1•micvicfaust9•15m ago•0 comments

AI is part of Linux's plumbing – whether developers like it or not

https://www.zdnet.com/article/ai-is-part-of-linux-plumbing-developers/
1•CrankyBear•15m ago•0 comments

Where CC Stands on Pay-to-Crawl

https://creativecommons.org/2025/12/12/where-cc-stands-on-pay-to-crawl/
1•xngbuilds•18m ago•0 comments

CISA orders federal agencies to patch GeoServer flaw

https://www.scworld.com/news/cisa-orders-federal-agencies-to-patch-geoserver-flaw
2•Bender•20m ago•0 comments

New AI X Youth empowerment focused Initiative in Alabama

https://bld.al/
1•peauts•21m ago•0 comments

315lbs Bench –| 225lbs Squat cofounder needed

https://gymboard.multisync.io
1•ahmedhussam1053•23m ago•0 comments

A Centralized Database of All Math (2024)

https://ista.ac.at/en/news/a-centralized-database-of-all-math/
1•gone35•25m ago•0 comments

Emacs Propaganda: I wrote a thing for Emacs, but don't call it a "plugin"

https://www.youtube.com/watch?v=jwH3B1vHqvQ
1•iLemming•26m ago•1 comments

Diablo Canyon moves a step closer to staying open

https://www.sanluisobispo.com/news/local/environment/article313620974.html
1•Bender•31m ago•0 comments

Wine 11.0-rc2 Released With 28 Known Bug Fixes

https://www.phoronix.com/news/Wine-11.0-rc2
1•Bender•32m ago•0 comments

We've cracked how to make random numbers

https://www.newscientist.com/article/2494268-weve-finally-cracked-how-to-make-truly-random-numbers/
2•Anon84•33m ago•0 comments

Thought Colleague Was a Traitor for Teaching Students to Use AI. Then We Talked

https://thewalrus.ca/teaching-students-to-use-ai/
1•pseudolus•33m ago•0 comments

How the Bell Labs Holmdel Complex Inspired 'Severance'

https://www.atlasobscura.com/articles/podcast-bell-labs-holmdel-complex
1•SerCe•33m ago•0 comments

Intel CEO Lip-Bu Tan was investor and adviser to firm sanctioned for China deals

https://www.oregonlive.com/silicon-forest/2025/12/intel-ceo-lip-bu-tan-was-investor-and-adviser-t...
4•osnium123•33m ago•0 comments

Review of Medical Cannabis Use Finds Little Evidence of Benefit

https://www.nytimes.com/2025/12/12/health/medical-cannabis-benefits.html
3•pseudolus•35m ago•2 comments

Divinity

https://divinity.com/
1•robenkleene•36m ago•0 comments

The surprising longevity lessons from the oldest animal

https://www.newscientist.com/article/2497719-the-surprising-longevity-lessons-from-the-worlds-old...
2•Anon84•37m ago•0 comments

a16z: In 2026, Venture Capital will eat Private Equity

https://twitter.com/tkexpress11/status/1998852154510217325
1•e2e4•43m ago•0 comments

Gemini's live speech to speech translation capabilities

https://www.youtube.com/watch?v=xdPIwgDriTg
2•anuda•48m ago•0 comments

India Is a Rising Power, but Breathing in Its Capital Is Hazardous

https://www.nytimes.com/2025/11/30/world/asia/india-delhi-pollution.html
4•bookofjoe•58m ago•1 comments

HyperCard on the Macintosh

https://stonetools.ghost.io/hypercard-mac/
4•TMWNN•1h ago•0 comments

Ask HN: Is this a sane way to expose distributed state in Rust?

1•asdfghjqwertyu•1h ago•0 comments