frontpage.
newsnewestaskshowjobs

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

Celebrating Kazakhstan's first wild-born Przewalski's horse in 200 years

https://www.fauna-flora.org/news/celebrating-kazakhstans-first-wild-born-przewalskis-horse-in-200...
1•thunderbong•4m ago•0 comments

MCP server for 340k SVG icons

https://github.com/LeulAria/Aria-Icons
2•leularia•10m ago•0 comments

Our Suggestion Box

https://medium.com/luminasticity/our-suggestion-box-247d754ae1ad
1•bryanrasmussen•10m ago•0 comments

Show HN: Slock – A one-bit messenger inside your capslock key

https://github.com/jonaraphael/slock
2•jonaraphael•16m ago•2 comments

Archival Resource Keys (ARKs) serve as persistent identifiers

https://arks.org/
1•Tomte•17m ago•0 comments

Reimagining projections for the interactive maps era (2021)

https://www.mapbox.com/blog/adaptive-projections
2•gherkinnn•23m ago•1 comments

Site Is Closed on Sundays

https://v7.robweychert.com/
5•edent•26m ago•0 comments

I built an interactive networking lab for learning network engineering

https://net-forge-kappa.vercel.app/
1•OmarAfnan•28m ago•0 comments

An advanced attacker is targeting Salesforce and ServiceNow instances worldwide

https://www.reco.ai/blog/city-forum-campaign-salesforce-servicenow
2•daretograsp•30m ago•0 comments

Show HN: Public message board for limited systems

https://anystation.net/
1•jonahss•34m ago•0 comments

Switzerland's invisible skyline: why Zug towers over the rest

https://prospex.ch/blog/switzerlands-invisible-skyline-companies-by-building/
1•theanonymousone•42m ago•0 comments

A Figma clone built by GPT-6 Astra

https://wieslawsoltes.github.io/Vellum/
3•aghuang•46m ago•4 comments

Ask HN: Do you route only certain websites through a VPN?

1•dennysora-main•48m ago•0 comments

The Structured Vacuum: Thinking about Nothing [pdf]

https://rafelski.com/~johann/Books/StructVacuumE.pdf
3•rramadass•55m ago•0 comments

Revealing a Hidden Class of Task-in-Prompt Adversarial Attacks on LLMs

https://aclanthology.org/2025.acl-long.334/
1•aghuang•56m ago•0 comments

Show HN: Rust and Box2D browser physics game – build destructive machines

https://v-yanakiev.itch.io/machina
2•v-yanakiev•59m ago•0 comments

MyNoise – Custom Soundscapes for Focus, Relaxation and Sleep

https://mynoise.net/index.php
1•pan69•1h ago•0 comments

interpretation to AI agents

https://ag3497120.github.io/call-me-vera/
1•pakupaku•1h ago•0 comments

Robot writes in languages it has never seen before

https://www.wired.com/story/robot-writing/
3•euanming•1h ago•0 comments

The biggest problem in buying AI compute is credit

https://twitter.com/gpugene/status/2096427973893411312
1•MrBuddyCasino•1h ago•0 comments

Anthropic IPO launch shifts toward mid-October

https://www.cnbc.com/2026/09/05/anthropic-ipo-launch-shifts-toward-mid-october-reuters.html
3•aghuang•1h ago•0 comments

Show HN: Assist (Voice Screenshot)

https://assistapp.dev
1•abhishekucs•1h ago•1 comments

TR-106

https://en.wikipedia.org/wiki/TR-106
2•num42•1h ago•0 comments

LA District Bans Most A.I. For Students

https://www.nytimes.com/2026/09/03/us/lausd-schools-ban-ai-artificial-intelligence.html
3•narenst•1h ago•1 comments

Greenland forces Trump's US oil firm to delay drilling

https://www.theguardian.com/world/2026/aug/12/trump-greenland-oil
8•Alien1Being•1h ago•0 comments

Consciousness, creativity andunderstanding not obstacles to machine intelligence

https://link.springer.com/article/10.1007/s11229-026-05655-1
4•klaustro•1h ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
2•diazc•1h ago•0 comments

Find fastest DoH provider for you

https://dnsspeedtest.online/
1•snihalani•1h ago•0 comments

Why Laser Beams Are the Hottest New Tech in Defense

https://www.bloomberg.com/news/articles/2026-09-04/why-laser-beams-are-the-hottest-new-tech-in-de...
2•Alien1Being•1h ago•0 comments

After 30 Years of Silence, the Original NSA Whistleblower Looks Back

https://therealnews.com/after-30-years-of-silence-the-original-nsa-whistleblower-looks-back
4•Eridanus2•1h ago•0 comments