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

Could IPv6 have an edge over IPv4?

https://ssg.dev/could-ipv6-have-an-edge-over-ipv4/
1•sedatk•2m ago•0 comments

New API Models Launched

https://www.hpc-ai.com/blog/DeepSeek_V4_Pro_and_Flash
1•hpcaitech•3m ago•0 comments

MeetMarket: Alternative Gay Hookup App

https://meetmarket.io/welcome
1•trulyhnh•6m ago•0 comments

Show HN: Yes, I vibed coded something But not sure what to do with it

https://trustenvelope.com/
1•ebfe1•6m ago•0 comments

Noyb success: ORF.at must correct misleading cookie banner

https://noyb.eu/en/noyb-success-orfat-must-correct-misleading-cookie-banner
2•latexr•6m ago•0 comments

Dire wolf brought back from extinction after 13,000 years [video]

https://www.youtube.com/watch?v=uxo2xIBe_0Y
1•mgh2•8m ago•0 comments

LatConnect60 investment round: AUKUS HiRes SWIR Satellite constellation

https://spacenews.com/latconnect-60-announces-accelerated-growth-investment-round-to-build-aukus-...
2•defrost•13m ago•0 comments

Gelatine Sculpt: The Secret to Lean Muscle and Tight Skin

https://finance.yahoo.com/sectors/healthcare/articles/gelatine-sculpt-exploding-2026-viral-142500...
1•sarynalp•15m ago•0 comments

Ukkonen's suffix tree algorithm in plain English

https://stackoverflow.com/questions/9452701/ukkonens-suffix-tree-algorithm-in-plain-english
1•cl3misch•18m ago•0 comments

Merlin to Bring Military Autonomy Platform to Commercial Air Cargo

https://www.flyingmag.com/merlin-military-autonomy-commercial-cargo/
1•geox•20m ago•0 comments

Rational quantum mechanics: Testing quantum theory with quantum computers

https://dx.doi.org/10.1073/pnas.2523350123
2•p4bl0•23m ago•2 comments

Achiving 900M Lines of the OIN Linux System Table

https://www.softwareheritage.org/2026/05/18/oin-linux-system-table-software-heritage-archive/
1•pabs3•27m ago•0 comments

Yearslong fight over users' right to tweak smart TV software heads to trial

https://arstechnica.com/gadgets/2026/05/inside-the-fight-to-force-vizio-to-share-linux-based-sour...
2•pabs3•31m ago•1 comments

SpaceX's historic IPO plans: Billions in losses and Musk's ownership

https://www.cnbc.com/2026/05/20/spacex-ipo-live-updates.html
3•1vuio0pswjnm7•35m ago•3 comments

Déjà moo: cows can recognise the faces of people they know

https://www.thetimes.com/uk/science/article/cattle-ability-recall-human-faces-ttn6v0nns
3•petethomas•37m ago•0 comments

BoE Governor says Plans to limit food prices 'not sustainable'

https://www.thetimes.com/business/economics/article/m-and-s-boss-attacks-preposterous-food-price-...
1•petethomas•39m ago•0 comments

I 100% vibecoded a webgame that makes money

https://gunguesser.com
2•abhahbnar•44m ago•0 comments

Musk's SpaceX Reveals Its Finances for the First Time

https://www.nytimes.com/2026/05/20/technology/elon-musk-spacex-ipo.html
2•1vuio0pswjnm7•44m ago•1 comments

Show HN: SkinMax – AI Skin Care Coach

https://howolddoyoulook.com/app
1•beast200•45m ago•0 comments

Anthropic says it's about to have its first profitable quarter

https://techcrunch.com/2026/05/20/anthropic-says-its-about-to-have-its-first-profitable-quarter/
1•nl•48m ago•1 comments

Jeff Bezos says bottom half of earners should pay zero in income taxes

https://www.cnbc.com/2026/05/20/jeff-bezos-income-taxes.html
1•khutorni•50m ago•1 comments

OpenAI Stargate: where the US sites stand

https://epoch.ai/blog/openai-stargate-where-the-us-sites-stand
2•nl•52m ago•0 comments

Meta Begins Laying Off Employees as It Transforms Around AI

https://www.wsj.com/tech/ai/meta-begins-laying-off-thousands-of-employees-as-it-transforms-around...
3•1vuio0pswjnm7•52m ago•0 comments

Wispr Flow Is Broken

https://old.reddit.com/r/WisprFlow/comments/1thejf4/wisprflow_what_is_going_on/
1•ayushchat•53m ago•0 comments

Put yourself in a loop with your coding agents

https://github.com/AsteroidHunter/expediter
2•AsteroidHunter•53m ago•3 comments

Dumbshit.app

https://dumbshit.app
2•robsch•53m ago•0 comments

DiffsHub

https://diffshub.com/
2•tosh•55m ago•0 comments

PR Diff Speed Matters

https://twitter.com/mitchellh/status/2057229385963618787
2•tosh•56m ago•0 comments

[RFC] Open Access to Standards Documents – LLVM Project

https://discourse.llvm.org/t/rfc-open-access-to-standards-documents/90856
1•matt_d•56m ago•0 comments

Show HN: FKS2G – LLM-backed metrics for deciding how closely to review code

https://github.com/kmdupr33/fks2g
1•kmdupree•58m ago•0 comments