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

April 2026 Links

https://nomagicpill.substack.com/p/april-2026-links
1•nomagicpill•56s ago•0 comments

Cerebras Leads Crop of IPOs Rushing to Tap Market Before SpaceX

https://techcrunch.com/2026/05/04/openais-cozy-partner-cerebras-is-on-track-for-a-blockbuster-ipo/
2•giwook•3m ago•0 comments

ARPA-H allocates $35M to osteoarthritis reversal therapy

https://www.colorado.edu/today/2026/04/06/simple-shot-shows-promise-reverse-osteoarthritis-within...
1•warbaker•3m ago•0 comments

Hantavirus crops up on a cruise ship – what scientists are watching

https://www.nature.com/articles/d41586-026-01450-7
1•warbaker•10m ago•0 comments

The Grand Theory of Everything (2007)

https://dl.acm.org/doi/pdf/10.1145/1281421.1281430
2•jruohonen•12m ago•0 comments

Ask HN: Cryptic refusals of credit cards with Firefox?

1•everybodyknows•12m ago•0 comments

KDE Plasma gesture handling and other input related news

https://blogs.kde.org/2026/05/03/gestures-in-graz-and-beyond/
1•f_r_d•12m ago•0 comments

Bringing WolfHSM to STM32H5 TrustZone: Production-Grade HSM on a Cortex-M33

https://www.wolfssl.com/bringing-wolfhsm-to-stm32h5-trustzone-production-grade-hsm-on-a-cortex-m33/
1•aidangarske•12m ago•0 comments

The A.I. Industry Is Booming. When Will It Make Money?

https://www.newyorker.com/news/the-financial-page/the-ai-industry-is-booming-when-will-it-actuall...
1•petethomas•14m ago•0 comments

Show HN: Continuum, a pedantic recreation of the OMNI font

https://github.com/ChristopherDrum/continuum/
2•ChristopherDrum•16m ago•0 comments

The First Firmware TPM with Post-Quantum Cryptography

https://www.wolfssl.com/the-first-firmware-tpm-with-post-quantum-cryptography/
1•aidangarske•16m ago•0 comments

SEC vs. Consent Motion for Entry of Final Judgement [pdf]

https://www.sec.gov/files/litigation/complaints/2026/judgment26548.pdf
1•ksherlock•18m ago•0 comments

The First COSE Implementation with ML-DSA

https://aidangarske.github.io/wolfCOSE/blog/wolfcose-pqc-cose/
1•aidangarske•21m ago•0 comments

The case against OpenAI is getting markedly stronger

https://twitter.com/garymarcus/status/2051347785761616101
2•abriosi•22m ago•0 comments

Why Waste Money?

https://rentry.co/it937bh4
1•gavmor•23m ago•1 comments

Show HN: 10K English words traced to 4 foundations(Space, Time, Energy, Pattern)

1•sauronsrv•25m ago•0 comments

Ask HN: Where are you getting your AI news from?

2•baetylus•26m ago•0 comments

SprintiQ – open-source sprint planning for Claude Code

https://github.com/SprintiQ-Incorporated/sprintiq
2•sprintiq•28m ago•0 comments

One Map Key, One Lookup

https://testing.googleblog.com/2026/04/one-map-key-one-lookup.html
2•birdculture•31m ago•0 comments

Must We 'Do Lunch'?

https://www.ft.com/content/13265324-7614-40a2-a3f6-0066ffb83c21
1•JumpCrisscross•34m ago•0 comments

Nothing Is Something

https://blog.jim-nielsen.com/2024/nothing-is-something/
2•SpyCoder77•34m ago•0 comments

HeadVis: An Interactive Tool for Investigating Attention Heads

https://transformer-circuits.pub/2026/headvis/index.html
2•rajeevn•39m ago•0 comments

Powerful AI finds 100 hidden planets in NASA data including extreme worlds

https://www.sciencedaily.com/releases/2026/05/260502233926.htm
3•bilsbie•42m ago•0 comments

Version-controlled databases using Prolly trees

https://lwn.net/SubscriberLink/1068864/4d53e651a1254bce/
1•zorgmonkey•43m ago•0 comments

Show HN: Node-Vmm – Linux MicroVMs in Pure Node.js for Mac/Windows/Linux in ~1s

https://github.com/misaelzapata/node-vmm
3•misaelzapata•44m ago•0 comments

Show HN: AI that responds in Star Wars crawl style

https://may-the-4th-gpt.vercel.app/
1•zahlekhan•44m ago•0 comments

Garage Sale Tracker App

https://www.garagesaletracker.app/
1•mmfp•47m ago•1 comments

The Valley of Calm

https://blog.joemag.dev/2026/05/the-valley-of-calm.html
3•matt_d•49m ago•0 comments

HyperFrames lets AI agents compose videos by writing HTML, CSS and JavaScript

https://hyperframes.heygen.com
2•siegers•52m ago•0 comments

Contracting (2005)

https://www.mooreds.com/wordpress/archives/297
1•mooreds•52m ago•0 comments