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

I've succesfully compiled Netscape 3.0.2 on a 64 Debian

https://www.reddit.com/r/netscape/comments/1ve7wkm/ive_succesfully_compiled_netscape_302_on_a_64/
1•zekrioca•50s ago•0 comments

The German Mittelstand

https://kieranvelasquez.substack.com/p/on-the-german-mittelstand
1•osnium123•1m ago•0 comments

Quantum entanglement generated by sunlight for the first time

https://www.uottawa.ca/about-us/news-all/quantum-entanglement-generated-sunlight-first-time
1•giuliomagnifico•3m ago•0 comments

Common knowledge shapes our lives and societies

https://theconversation.com/how-does-common-knowledge-shape-our-individual-lives-and-our-societie...
1•andsoitis•3m ago•0 comments

Being given a 100% AI generated score for your own mental work hurts

https://mastodon.thi.ng/@toxi/117031237659514917
1•rapnie•7m ago•0 comments

Battery on Wheels Makes Any Diesel Truck Electric in 5 Minutes [video]

https://www.youtube.com/watch?v=Idhfl-2FHJw
1•thelastgallon•7m ago•0 comments

A new Git diff tool

https://github.com/aymanbagabas/drift
1•stillmatic•7m ago•0 comments

Taste is all you need

https://iam.mt/taste-is-all-you-need/
1•thallavajhula•10m ago•0 comments

OBASE: Object-Based Address-Space Engineering to Improve Memory Tiering

https://www.usenix.org/conference/osdi26/presentation/banakar
1•matt_d•11m ago•0 comments

Kalman Filter: The Tour

https://www.staszewski.xyz/blog/kalman-filter/
1•kamilstaszewski•12m ago•0 comments

Bigos (Polish Hunter's Stew) Recipe Builder

https://chefsbinge.com/bigos-recipe-builder/
1•doublepg23•12m ago•0 comments

The em-dash em-beds in Congress

https://arxiv.org/abs/2608.05889
1•jruohonen•13m ago•1 comments

AI-generated vulnerability patches still require expert human review

https://1password.com/blog/why-ai-generated-patches-still-require-human-review
1•jmmv•13m ago•0 comments

$1B of iPhone 18 Pro chips 'awaiting packaging' due to DRAM shortages

https://www.tomshardware.com/pc-components/dram/usd1-billion-of-iphone-18-pro-chips-on-the-shelve...
1•kristianp•15m ago•0 comments

Bacterial supplements may boost female fertility

https://medicalxpress.com/news/2026-08-bacterial-supplements-boost-female-fertility.html
1•OutOfHere•16m ago•0 comments

FDA Approves First Drug to Treat the Full Range of Narcolepsy Type 1 Symptoms

https://www.fda.gov/news-events/press-announcements/fda-approves-first-drug-treat-full-range-narc...
1•OutOfHere•17m ago•0 comments

Framework discloses data breach via Metabase 0-day

https://community.frame.work/t/framework-data-breach-discussion/83939
6•RobinHirst11•22m ago•0 comments

Nikita Bier stepping down from Head of Product on X (previous Twitter)

https://old.reddit.com/r/twitterhelp/comments/1vgkbid/nikita_bier_stepping_down_from_head_of_prod...
1•nomilk•24m ago•1 comments

You Are Not Confused. You Are Being Managed

https://mitchthelawyer.substack.com/p/you-are-not-confused-you-are-being
3•petethomas•24m ago•0 comments

Anthropic CEO reportedly worried new hires only care about money

https://finance.yahoo.com/technology/ai/articles/anthropic-ceo-reportedly-worried-hires-160000647...
9•frays•24m ago•1 comments

German Exit Tax Calculator

https://eidel.io/tools/german-exit-tax-calculator
1•olieidel•25m ago•0 comments

Proving you are AI, not just automated

https://blix.town/proof-of-agent
1•positronico•27m ago•0 comments

Domain-specific hyperspecialization: Winning the SC26 SAT track with LymphoSAT

https://c.mov/lymphosat/
1•matt_d•28m ago•0 comments

Team Documentation (GDrive vs. Markdown)

1•itstomo•29m ago•0 comments

Show HN: Clipboard Sync – Share a clipboard, mouse and keyboard on your LAN

https://clipboardsync.fuzhuo.me
1•droidfu•32m ago•0 comments

Nikita Bier steps back after 400 days; Zuckerberg and Bosworth keep shipping

https://runtimewire.com/article/nikita-bier-steps-back-after-400-days-zuckerberg-and-bosworth-kee...
1•ryanmerket•34m ago•0 comments

Financial Times: How Intel came back from the brink

https://d2pmk9g6g9k18j.archive.ph/
1•osnium123•40m ago•0 comments

Steven Pinker on How Common Knowledge Builds and Weakens Societies

https://www.persuasion.community/p/steven-pinker-common-knowledge
1•andsoitis•43m ago•0 comments

Slap ROM Patcher

https://nyuu.page/projects/slap/
1•apsec112•45m ago•0 comments

Cloudflare OS – Build the AI operating system for your company

https://os.cloudflare.app
1•ms7892•50m ago•0 comments