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

System Call Stack Alignment

https://www.humprog.org/~stephen/blog/2026/06/12/#system-calling-alignment
1•matt_d•58s ago•0 comments

Run local agentic AI on the Mac using MLX (WWDC 2026) [video]

https://developer.apple.com/videos/play/wwdc2026/232/
1•sebiw•1m ago•0 comments

Joan Didion: Staking Out California (1979)

https://www.nytimes.com/1979/06/10/books/didion-calif.html
1•jxmorris12•2m ago•0 comments

Four ways AI is making your life more expensive

https://www.washingtonpost.com/technology/2026/06/06/inflation-is-being-driven-up-by-huge-investm...
1•1vuio0pswjnm7•3m ago•0 comments

No updates on Cryptome since June 2025?

https://cryptome.org/
2•joering2•5m ago•2 comments

Factorio: Flip, Flow, and Fresh Paint

https://factorio.com/blog/post/fff-442
1•ibobev•6m ago•0 comments

I Am Not a Reverse Centaur

https://blog.miguelgrinberg.com/post/i-am-not-a-reverse-centaur
2•ibobev•7m ago•0 comments

"Don't You Just Upload It to ChatGPT?"

https://correresmidestino.com/dont-you-just-upload-it-to-chatgpt/
2•speckx•7m ago•1 comments

Tesla Full Self Driving uses bicycle lane in official Denmark approval video

https://politiken.dk/danmark/forbrug/biler/art10875514/Allerede-12-sekunder-inde-i-PR-videoen-beg...
2•Veserv•10m ago•0 comments

Judge Punishes 4 Lawyers After Catching Both Sides Using A.I. In Lawsuit

https://www.nytimes.com/2026/06/09/us/ai-lawyers-sanctioned-mississippi.html
3•thm•10m ago•0 comments

Great Reshuffling of the Agentic Era: The 6 Career Archetypes

https://aidoses.substack.com/p/great-reshuffling-of-the-agentic
1•ryanrad•11m ago•0 comments

Treating pancreatic tumours may have revealed cancer's master switch

https://www.economist.com/science-and-technology/2026/06/12/treating-pancreatic-tumours-may-have-...
1•rndsignals•11m ago•0 comments

The Agentic Payments Map

https://www.fintechbrainfood.com/p/the-agentic-payments-map
1•AnhTho_FR•13m ago•0 comments

Hacker News actively blocking SpaceX IPO submissions

https://news.ycombinator.com
1•curldevnull•13m ago•1 comments

The machine can't be held accountable. You still can

https://pragmaticbuilder.substack.com/p/the-machine-cant-be-held-accountable
2•msolujic•14m ago•0 comments

How's Your Attention Span?

https://alessandracodinha.substack.com/p/hows-your-attention-span
1•gmays•14m ago•0 comments

Show HN: For the messy stage of research, built the Cognir Research Ontology

https://cognir-research.netlify.app/docs
1•sailpvp998•16m ago•0 comments

Uruky: Kagi alternative, EU-based private search engine

https://yeechie.nl/uruky-kagi-alternative-eu-based-private-search-engine
2•speckx•16m ago•0 comments

Ask HN: Influence of Legend of Zelda in Backrooms Movie?

1•dieselgate•17m ago•0 comments

Oracle Shares Tumble Amid Pricey Data-Center Build-Out

https://www.wsj.com/business/earnings/oracle-reports-higher-profit-on-surging-cloud-revenue-5f7d25eb
1•1vuio0pswjnm7•17m ago•0 comments

Reckless: Competitive chess engine written in Rust

https://github.com/codedeliveryservice/Reckless
1•dpcx•17m ago•0 comments

Fail loudly: a plea to stop hiding bugs

https://alejo.ch/3he
1•afc•18m ago•1 comments

Chili peppers of the world: cultivars, species, and heat

https://www.notesfromtheroad.com/desertmexico/chili-peppers.html
3•fanf2•18m ago•0 comments

Show HN: Sketchlog – 100M events compressed to 93 KB using streaming sketches

1•BALAVIGNESH321•19m ago•0 comments

Department of War Publishes Third Release of UAP Files on War.gov/UFO

https://www.war.gov/News/Releases/Release/Article/4515408/department-of-war-publishes-third-relea...
1•bookofjoe•23m ago•0 comments

Making the Invisible Visible

https://biohub.org/blog/laser-phase-plate-cryo-em-making-invisible-visible/
1•taylorbuley•23m ago•0 comments

Write for One Person

https://wizardzines.com/comics/write-for-one-person/
2•evakhoury•24m ago•0 comments

Over 400 Arch Linux packages compromised to push rootkit, infostealer

https://www.bleepingcomputer.com/news/security/over-400-arch-linux-packages-compromised-to-push-r...
1•saghm•24m ago•1 comments

FDA Approves New Sunscreen Ingredient (Bemotrizinol) Used in EU/Asia for Years

https://www.healthline.com/health-news/fda-approves-bemotrizinol-new-sunscreen-ingredient
3•pogue•25m ago•2 comments

How to Setup a Local Coding Agent on macOS

https://ikyle.me/blog/2026/how-to-setup-a-local-coding-agent-on-macos
2•kkm•25m ago•0 comments