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

Ionizing radiation and melanism in Chornobyl tree frogs

https://pmc.ncbi.nlm.nih.gov/articles/PMC9488684/
1•AFF87•46s ago•0 comments

Self-Consent: When Users Take Control

https://silencelaboratories.com/blog/self-consent-the-next-frontier-for-financial-data-sharing
1•eustoria•1m ago•0 comments

The Large Gilded Coffin of King Tutankhamun

https://egymonuments.gov.eg/news/gilded-coffin-of-king-tutankhamun/
1•brudgers•1m ago•0 comments

Curated collection of A/B test results from best-in-class apps

https://abtest.design/
1•eustoria•2m ago•0 comments

PDE Simulator (the game) – homeoffice viable

https://rogmash.neocities.org/waves
1•rogmash•3m ago•0 comments

Tell HN: GitHub is partially down again

2•croemer•3m ago•0 comments

The Pursuit of Purity (The Right Way to Do AI)

https://marlene.ai/post/ai-pursuit
1•marlene_zw•4m ago•0 comments

I Am Begging You to Read Terry Pratchett

https://www.theatlantic.com/ideas/2026/05/author-terry-pratchett-film/687253/
2•Michelangelo11•5m ago•0 comments

Show HN: Resume Claude Code without replaying your whole session

https://github.com/sofumel/claude-handoff-revive
1•sofumel•5m ago•0 comments

Self-hosted A/B testing in Rust, runs on a $5 VPS

https://easy-experiments.dev/
1•MarkAntipin•5m ago•0 comments

Jomangy: INJ3CTOR3's Self-Healing FreePBX Toll Fraud Campaign

https://cyble.com/blog/jomangy-inj3ctor3s-self-healing-freepbx-toll-fraud-campaign/
1•WeaklingOra•5m ago•0 comments

How Many Solar Panels Would It Take to Equal One Nuclear Reactor?

https://www.bgr.com/2172123/how-many-solar-panel-equal-nuclear-reactor/
1•rustoo•6m ago•0 comments

Show HN: Droast, a Dockerfile linter that stopped being polite

https://ewry.net/droast-dockerfile-linter/
1•immanuwell•8m ago•0 comments

The Megalith Lightning Node

https://megalithic.me/
1•janandonly•8m ago•0 comments

Jensen Huang Just Told Every CEO Hiding Behind AI Layoffs to Shut Up

https://www.thestateofbrand.com/news/jensen-huang-ai-layoffs
3•cdrnsf•9m ago•1 comments

Chrome 148 numeric input bug

https://twitter.com/jaffathecake/status/2059569641609961814
1•keepamovin•11m ago•0 comments

Cost of Electricity by Country 2026

https://worldpopulationreview.com/country-rankings/cost-of-electricity-by-country
2•leonidasrup•12m ago•0 comments

Physics Informed Neural Networks (PINNs): An Intuitive Guide

https://medium.com/data-science/physics-informed-neural-networks-pinns-an-intuitive-guide-fff1380...
1•rramadass•13m ago•1 comments

US data brokers sold Americans' location data to foreign adversaries

https://epic.org/the-33-data-brokers-selling-us-data-to-foreign-actors-according-to-california/
2•Predaxia•13m ago•0 comments

Ripgrep AI Policy

https://github.com/BurntSushi/ripgrep/blob/master/AI_POLICY.md
2•singiamtel•14m ago•0 comments

'Mind-bogglingly crazy': Europe's deadly, early heatwave is smashing records

https://www.yahoo.com/news/weather-news/articles/mind-bogglingly-crazy-europes-deadly-early-heatw...
1•vrganj•14m ago•0 comments

RawBit – Visual Bitcoin raw tx builder

https://rawbit.io
2•rawBit_io•15m ago•1 comments

Want a pi-based domain name? Go long

https://shaungallagher.pressbin.com/blog/pi-domains.html
1•jawns•15m ago•0 comments

Show HN: I made a tool to find invoices in my email and match them to payments

https://billpal.io
1•romanleeb•15m ago•1 comments

SK Hynix joins $1T club after Samsung, Micron on AI chip boom

https://www.reuters.com/world/asia-pacific/sk-hynix-market-capitalisation-tops-1-trln-2026-05-27/
2•akyuu•17m ago•0 comments

ETL CLI – the Swiss army knife you always wanted

https://www.npmjs.com/package/etl-cli
1•zjonsson•18m ago•0 comments

Ask HN: What game have you replayed more times than any other?

1•yashnitro•18m ago•1 comments

Pdf2api – Turn Messy API Doc PDFs into OpenAPI, Postman and SDKs

https://pdf2api.hedvion.com
1•hedvion•21m ago•0 comments

Show HN: ERPC – encrypted, typed RPC over any bidirectional channel

https://github.com/dotexorg/erpc
2•dotexorg•24m ago•0 comments

Atomically precise mechanosynthesis of carbon structures on hydrogenated Silicon

https://arxiv.org/abs/2605.27250
2•gene-h•29m ago•0 comments