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

The Importance of Out-of-Band Metadata for Safe Autonomous Agents [Redpanda]

https://arxiv.org/abs/2605.29082
1•PeterCorless•1m ago•0 comments

AWS Interconnect – multicloud now offers a free 500 Mbps tier

https://aws.amazon.com/about-aws/whats-new/2026/05/aws-interconnect-multicloud-offers-free-500-mb...
1•sagiba•2m ago•0 comments

Moving from WordPress to Obsidian Plus Hakyll

https://codeutopia.net/blog/2026/05/01/moving-from-wordpress-to-obsidian-plus-hakyll/
1•ankitg12•2m ago•0 comments

Blue Origin warns of rocket explosion debris after failed New Glenn test

https://www.cnbc.com/2026/05/29/blue-origin-new-glenn-rocket-explosion-florida-test-nasa-artemis....
1•1vuio0pswjnm7•2m ago•0 comments

Slow Journal app, with AI integration

https://nemejournal.app/
1•djampodev•6m ago•0 comments

BQN: What Is a Primitive?

https://mlochbaum.github.io/BQN/commentary/primitive.html
1•tosh•9m ago•0 comments

Ask HN: What Are You Thankful For?

3•chistev•14m ago•0 comments

Coinbase, Kalshi bring regulated perpetual crypto futures to US investors

https://www.reuters.com/legal/government/coinbase-kalshi-bring-regulated-perpetual-crypto-futures...
1•1vuio0pswjnm7•14m ago•0 comments

AI coding agents ships at the cost of intuition and taste

https://shivekkhurana.com/blog/coding-agent-dopamine/
1•shivekkhurana•14m ago•0 comments

Powerful A.I. Super PACs Duel over the Midterms: 'This Is a War'

https://www.nytimes.com/2026/05/30/us/politics/anthropic-openai-super-pacs-midterms.html
1•Timofeibu•16m ago•0 comments

Inferno (Boards of Canada)

https://en.wikipedia.org/wiki/Inferno_(Boards_of_Canada_album)
1•BruceEel•19m ago•0 comments

Researchers find all big-name bots bomb EU compliance tests

https://www.theregister.com/ai-ml/2026/05/27/researchers-find-all-big-name-bots-bomb-eu-complianc...
1•dijksterhuis•20m ago•0 comments

Three flavors of coding with AI agents

https://nocodefunctions.com/blog/three-flavors-agentic-coding/
1•seinecle•21m ago•0 comments

Open Source Ecosystems

https://asimovaddendum.substack.com/p/open-source-ecosystems
1•BerislavLopac•21m ago•0 comments

More efficient Earth–Moon transfer

https://link.springer.com/article/10.1007/s42064-025-0297-x
1•cl3misch•22m ago•0 comments

Holonomy_lib, exact non Euclidean geometry primitives for PyTorch

https://github.com/Synoros-io/holonomy_lib
1•John_Vaught•23m ago•0 comments

The Kaiser and a "Mediocre Man" Theory of History

https://www.deadcarl.com/p/the-kaiser-and-a-mediocre-man-theory
2•baud147258•29m ago•0 comments

Replacing WebView2 print-to-PDF with an embedded Typst engine (Rust)

https://4worlds.dev/lore/014-typst-pdf-engine/
1•ghost-of-asimov•33m ago•0 comments

Ask HN: What's the hardest problem you've ever solved?

5•chistev•38m ago•1 comments

Ken Iverson in Denmark (2005)

https://web.archive.org/web/20071023024007/https://vector.org.uk/archive/v223/gitte222.htm
2•tosh•42m ago•0 comments

Show HN: AI-org – org-mode powered by AI

https://ai-org.net/
1•mannders•48m ago•0 comments

What Is an Array?

https://www.jsoftware.com/papers/array.htm
1•tosh•50m ago•0 comments

New charter gives River Wye the right to be free from pollution

https://www.bbc.co.uk/news/articles/czx21820rn4o
3•susam•1h ago•0 comments

Yocto vs. Debian for building embedded Linux systems

https://sigma-star.at/blog/2026/05/you-probably-dont-need-yocto-and-thats-fine/
2•fanf2•1h ago•0 comments

Building a game engine for 20 years [video]

https://www.youtube.com/watch?v=4d-CKaBpLC4
1•AshleysBrain•1h ago•0 comments

Zig: Build System Reworked

https://ziglang.org/devlog/2026/#2026-05-26
8•tosh•1h ago•1 comments

Thunderbolt-Ibverbs: InfiniBand for Everyone

https://blog.hellas.ai/blog/thunderbolt-ibverbs/
2•grw_•1h ago•0 comments

Rsync 3.4.3 has hundreds of Claude commits

https://mastodon.gamedev.place/@JeremiahFieldhaven/116654345332213390
55•fooker•1h ago•40 comments

Apple working to cram Gemini model into iPhone to power new Siri

https://arstechnica.com/ai/2026/05/apple-reportedly-trying-to-distill-googles-multi-trillion-para...
3•TMWNN•1h ago•1 comments

How we run Gemini at scale across billions of posts

https://www.modash.io/engineering/how-we-run-gemini-at-scale-across-billions-of-posts
1•igarnedo•1h ago•0 comments