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

Broadcasting GPS on the Local Network

https://evertpot.com/broadcasting-gps-on-local-network/
1•treve•11s ago•0 comments

Brutal in production, lands like a verdict

1•Non_Von_Neumann•40s ago•0 comments

ReactOS Introduces Unified Live/Install Media, New Storage Driver

https://www.phoronix.com/news/ReactOS-Unified-ISO
1•kykat•2m ago•0 comments

Introduction to Atom

https://validator.w3.org/feed/docs/atom.html
1•susam•2m ago•0 comments

The Google Cloud Knowledge Catalog

https://cloud.google.com/blog/products/data-analytics/introducing-the-google-cloud-knowledge-catalog
1•laxmena•3m ago•0 comments

Next-Token Predictor Is An AI's Job, Not Its Species

https://www.astralcodexten.com/p/next-token-predictor-is-an-ais-job
1•optimalsolver•4m ago•0 comments

Seriously, Anthropic? [video]

https://www.youtube.com/watch?v=J8O9LLpJNrg
4•dp-hackernews•9m ago•0 comments

Sato – AI desktop companion for macOS with multi-provider support

https://www.sato.host/
1•vitalune•13m ago•0 comments

The Long Road To Windows 95 [video]

https://www.youtube.com/watch?v=u8k66A9n8gE
1•st_goliath•14m ago•0 comments

Transport access reduces deprivation: When colocation misleads

https://pnas.scienceconnect.io/error?msg=ewogICJpZCIgOiAiNmU3ZTA0MTEtMWQ1Yi00NDhjLTg0MDgtZGE4NjI4...
2•Anon84•16m ago•0 comments

March 2026 Top New Cran Packages

https://rworks.dev/posts/march-2026-top-40-new-cran-packages/
2•ionychal•16m ago•0 comments

How Synthesize_capability Works

https://ninjahawk.github.io/blog/posts/synthesize-capability.html
1•ninjahawk1•21m ago•0 comments

Early and Late-Stage Hypergrowth

https://lethain.com/early-late-stage-hypergrowth/
1•milkglass•26m ago•0 comments

No Smoking Gun

https://notoriousbfg.com/no-smoking-gun/
3•trwhite•27m ago•0 comments

Scientists Gave Cocaine to Salmon

https://www.wired.com/story/cocaine-fueled-wild-salmon-swam-twice-as-far-as-sober-ones/
5•ohjeez•32m ago•0 comments

Building a Web Framework from Scratch

3•NewSmoke38•32m ago•0 comments

Shipping todometer, Version 3

https://cassidoo.co/post/todometer-v3/
2•cassidoo•35m ago•0 comments

Building a daily AI news brief in 325 lines of Python

https://gist.github.com/Agentic-Intel/33fa978b281667bf0852d33f146c4528
1•Alex_Vance•36m ago•0 comments

Monero Ecosystem

https://monero.eco/
1•Cider9986•36m ago•0 comments

Theseus: Reverse-engineered reconstruction of the original Xbox 5960 dashboard

https://github.com/MrMilenko/Theseus
2•LorenDB•37m ago•0 comments

New research on analyzing and predicting token consumption of coding agents

https://arxiv.org/abs/2604.22750
3•jiaxinpei•39m ago•1 comments

Sluggers.fyi: Moneyball and Mario Super Sluggers

https://www.sluggers.fyi/
2•gsdv•42m ago•1 comments

xAI Is Reportedly Using Just 11% of Its 550k Nvidia GPUs

https://wccftech.com/xai-using-just-11-percent-gpus-while-meta-google-squeeze-out-much-more/
5•lossolo•42m ago•1 comments

Show HN: Playground for the Spectre Programming Language

https://spectrelang.org/playground
3•pizza_man•43m ago•1 comments

Show HN: Memory Safe Argon2 Implementation in Pure Swift 6

https://github.com/mimiclone/argon2-swift
2•mimiclone•53m ago•0 comments

I got tired of messy PTO spreadsheets, so I built a simple tool

https://myfreecalendar.app/
1•aliencillo•55m ago•0 comments

Three dead in suspected hantavirus outbreak on Atlantic cruise ship

https://www.bbc.co.uk/news/live/cjrzp08wx4vt
2•etiam•57m ago•0 comments

Compatibility Is a Feature

https://yusufaytas.com/compatibility-is-a-feature
7•riowashere•59m ago•0 comments

Breathtaking

https://aeon.co/essays/do-hold-your-breath-on-the-benefits-of-conscious-breathing
1•andsoitis•1h ago•0 comments

Street Fishing in the Canals of 'Little Venice' – Treviso, Italy

https://www.nytimes.com/2026/04/21/travel/treviso-italy-canal-fishing-little-venice-local-guide.html
1•bookofjoe•1h ago•1 comments