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

Comments

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

Plexus – Unified API gateway for multiple AI providers

https://github.com/mcowger/plexus
1•indigodaddy•1m ago•0 comments

How HN: A geometric framework for NP-Intermediate classes (OM Theory)

https://github.com/jumapama/OM-Theory-A-Geometric-Framework-for-NP-Intermediate-Classes
1•jumapama•2m ago•0 comments

AskAlf – Self-hosted AI workforce that runs 24/7

https://github.com/askalf/askalf
1•jsprayberry87•5m ago•0 comments

The deep cave bacteria resistant to modern medicine

https://www.bbc.com/future/article/20260318-the-deep-cave-bacteria-resistant-to-modern-medicine
1•Teever•5m ago•0 comments

Unlocking 25 Gigabit/S on 10 GbE Direct Attach Copper

https://kohlschuetter.github.io/blog/posts/2026/03/22/unlock25/
1•kohlschuetter•8m ago•0 comments

Privacy Respecting Age Controls

https://gist.github.com/devinvs/e334f7fb92f8d9b41b821a1dc8a46fde
1•devinvs•13m ago•0 comments

Health: Science Outran the System

https://juliahawkins.substack.com/p/health-how-science-outran-the-system
1•brandonb•13m ago•0 comments

The solar-powered compact car driving Tunisia's electric vehicle revolution

https://www.cnn.com/world/africa/electric-vehicle-solar-tunisia-spc
2•mooreds•24m ago•0 comments

Apply video compression on KV cache to 10,000x less error at Q4 quant

https://github.com/cenconq25/delta-compress-llm
1•polymorph1sm•25m ago•0 comments

Zprof – a comptime-configurable and minimal memory profiler for Zig allocators

https://github.com/ANDRVV/zprof
1•andrvv•26m ago•0 comments

VercelNet: The internet but only Vercel apps

https://vercelnet.vercel.app
1•aquajet•27m ago•0 comments

ForgeKV – Redis-compatible KV server in Rust that scales with cores

https://github.com/ForgeKV/forgekv
1•forgekv•27m ago•0 comments

Judge dismisses lawsuit by Sam Altman's sister accusing him of sexual abuse

https://www.reuters.com/legal/government/judge-now-dismisses-lawsuit-by-sam-altmans-sister-accusi...
1•Teever•27m ago•0 comments

Polsia Leaking Customers Secrets

https://twitter.com/NKCSS/status/2035760976377598252
3•NKCSS•34m ago•1 comments

Why I Vibe in Go, Not Rust or Python

https://lifelog.my/episode/why-i-vibe-in-go-not-rust-or-python
4•riclib•36m ago•2 comments

Hawaii storms have caused $1B in damage, governor says

https://www.bbc.com/news/articles/czxrdxn6qwqo
4•tartoran•37m ago•0 comments

Light on Glass: Why do you start making a game engine?

https://analogdreamdev.substack.com/p/light-on-glass
2•atan2•37m ago•0 comments

Claude Code for Academics [pdf]

https://github.com/aspi6246/ClaudeCodeTools/blob/main/Presentations/main.pdf
2•Anon84•38m ago•0 comments

C++26 Shipped a SIMD Library Nobody Asked For

https://lucisqr.substack.com/p/c26-shipped-a-simd-library-nobody
3•ibobev•40m ago•1 comments

WW3: What Are the Chances?

https://worldwarchance.com/
3•rossant•41m ago•0 comments

National survey of NIH-funded researchers shows precarious state of U.S. science

https://www.statnews.com/2026/03/19/nih-funding-national-researcher-survey-finds-cutbacks-disrupt...
6•ohjeez•41m ago•0 comments

Pakistan's Markets Face Selloff from Surging Oil, Conflict

https://www.bloomberg.com/news/articles/2026-03-17/pakistan-s-markets-face-selloff-from-surging-o...
2•JumpCrisscross•43m ago•1 comments

My DIY FPGA board can run Quake II

https://blog.mikhe.ch/quake2-on-fpga/part4.html
1•sznio•45m ago•1 comments

Dark Patterns from Google Workspace and Google Labs Flow

https://knowledge.workspace.google.com/admin/users/delete-or-remove-a-user-from-your-organization
4•legel•50m ago•1 comments

Delve accused of misleading customers with 'fake compliance'

https://techcrunch.com/2026/03/22/delve-accused-of-misleading-customers-with-fake-compliance/
1•lsowen•51m ago•0 comments

Revisiting a 1958 Map of Space Mysteries

https://www.atlasobscura.com/articles/what-do-we-know-about-space
1•ohjeez•51m ago•1 comments

Supply Chain Attack on Trivy

https://www.wiz.io/blog/trivy-compromised-teampcp-supply-chain-attack
10•tiri•52m ago•2 comments

Ask HN: How do you handle clients who ghost after receiving deliverables?

3•launchstack_dev•54m ago•3 comments

51% of freelancers experience non-payment – payment-gated delivery as a solution

https://proposallock.vercel.app
5•launchstack_dev•54m ago•3 comments

LG debuts new indoor air-to-water heat pumps

https://www.pv-magazine.com/2026/03/17/lg-debuts-new-indoor-air-to-water-heat-pumps/
1•toomuchtodo•55m ago•0 comments