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•12mo ago

Comments

panstromek•12mo 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•12mo 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•12mo 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_•12mo 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_•12mo 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•12mo 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•12mo 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

Testing GPT-5.5 in early access: what we are seeing so far

https://lovable.dev/blog/gpt-5-5-now-in-lovable
2•doener•5m ago•1 comments

Escrow Security for iCloud Keychain

https://support.apple.com/guide/security/escrow-security-for-icloud-keychain-sec3e341e75d/web
2•gurjeet•9m ago•0 comments

Tewart Brand on LSD, A.I. Black Boxes and the Beauty of Care [video]

https://www.youtube.com/watch?v=t8u24wvHeSE
2•born-jre•13m ago•0 comments

Code review advice for vibe coders

https://xata.io/blog/code-review-for-vibe-coders
2•tee-es-gee•17m ago•0 comments

Show HN: A CLI to use any model in your coding agent

https://getaivo.dev/
2•spirit23•22m ago•0 comments

What is Nostr? A simple guide to the protocol

https://usenostr.org/
1•vlugorilla•23m ago•0 comments

The Tiny Donut That Proved We Still Don't Understand Magnetism [video]

https://www.youtube.com/watch?v=XKSjCOKDtpk
1•mpweiher•25m ago•0 comments

List of personal sites that host Wander console, a tool to explore the small web

https://susam.codeberg.page/wander/wcn.html
1•susam•26m ago•0 comments

Naming Things Is Easy Now

https://notesbylex.com/naming-things-is-easy-now
3•lexandstuff•30m ago•0 comments

I left Vercel Pro ($20/mo) for a $10/mo VPS. 7-day Next.js migration report

https://gist.github.com/Samarth0211/b728534af45242b61b45a87a4ecdf155
1•samarth0211•35m ago•1 comments

Global Energy Flows

https://ig.ft.com/global-energy-flows/
1•saswatms•36m ago•0 comments

Mystery Cpuid Bit

http://www.os2museum.com/wp/mystery-cpuid-bit/
1•userbinator•39m ago•0 comments

Do you ever ask "Please Claude I need this my account is kinda tokenless "

https://engram-three.vercel.app/
1•-Refraction-•42m ago•1 comments

Ask HN: What should a Microblogging Site look like?

1•PiSquareS•49m ago•1 comments

ChatGPT Recommends the Same 3 Companies to Every B2B Buyer. Until They Specify

https://growtika.com/blog/chatgpt-b2b-persona-recommendations
2•Growtika•51m ago•1 comments

Ubuntu 26.04 LTS (Resolute Raccoon)

https://releases.ubuntu.com/resolute/
2•kwar13•52m ago•1 comments

Show HN: Aliasme – A shell script to memorize your commands

https://github.com/Jintin/aliasme
1•Jintin•55m ago•1 comments

PasswordStore + GnuPG + TouchID

https://gurjeet.singh.im/blog/passwordstore+gnupg+touchid
2•gurjeet•57m ago•0 comments

SoftHSM

https://github.com/softhsm
1•gurjeet•1h ago•0 comments

Show HN: Aromatic – store-and-forward telemetry for unattended devices over Tor

https://github.com/DO-SAY-GO/aromatic
1•keepamovin•1h ago•0 comments

New 10 GbE USB adapters are cooler, smaller, cheaper

https://www.jeffgeerling.com/blog/2026/new-10-gbe-usb-adapters-cooler-smaller-cheaper/
14•calcifer•1h ago•1 comments

Google Patches WithPersona PII Leak, Then Claims It Was 'Not Reproducible'

1•bbounty_robbed•1h ago•0 comments

An Update on Rust-Coreutils

https://discourse.ubuntu.com/t/an-update-on-rust-coreutils/80773
1•rixed•1h ago•2 comments

UWaterloo CS Webring

https://cs.uwatering.com/
2•jusgu•1h ago•0 comments

Sensor tampering to win weather bets

https://www.theguardian.com/world/2026/apr/23/hairdryer-or-lighter-french-police-look-at-claim-of...
1•atmosx•1h ago•0 comments

Annotated source code for the Elite Demonstration Disc

https://elite.bbcelite.com/demo/
2•y1n0•1h ago•0 comments

AMD Ryzen AI Max+ AI PCs Deliver Exceptional Intelligence Right on Your Desk

https://www.amd.com/en/blogs/2026/amd-ryzen-ai-max-ai-pcs-deliver-exceptional-intelligence.html
1•teleforce•1h ago•0 comments

GPT-5.5 Prompting Guide

https://simonwillison.net/2026/Apr/25/gpt-5-5-prompting-guide/
3•y1n0•1h ago•1 comments

Rcarmo/gte-go: Golang inference for the GTE Small embedding model

https://github.com/rcarmo/gte-go
1•rcarmo•1h ago•0 comments

How to Install Haiku on a UEFI-Only Modern System

https://hackaday.com/2026/04/24/how-to-install-haiku-on-a-uefi-only-modern-system/
2•y1n0•1h ago•0 comments