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

Show HN: Hush: Blur your messy desktop during screen sharing (macOS)

https://apps.apple.com/us/app/hush-screen-share-focus/id6757990863?mt=12
1•Olersandrkoz•51s ago•0 comments

Ask HN: What sources like HN do you consume?

1•DavidHaerer•1m ago•0 comments

Hardware hotplug events on Linux, the gory details

https://arcanenibble.github.io/hardware-hotplug-events-on-linux-the-gory-details.html
1•todsacerdoti•2m ago•0 comments

Australia Announces Support for US Invasion of [Insert Country Here]

https://theshovel.com.au/2026/03/02/australia-announces-support-for-us-invasion-of-insert-country...
1•robtherobber•2m ago•0 comments

Apache Iggy's migration to thread-per-core architecture powered by io_uring

https://iggy.apache.org/blogs/2026/02/27/thread-per-core-io_uring/
1•ot•2m ago•0 comments

Test Your Claude Code Skills

https://claude-code.vercel.app/test
1•Krishnaa_•4m ago•1 comments

Motorola confirms GrapheneOS support for a future phone, bringing over features

https://9to5google.com/2026/03/01/motorola-confirms-grapheneos-partnership-for-a-future-smartphon...
2•microflash•6m ago•0 comments

U.S. science agency moves to restrict foreign scientists from its labs

https://www.science.org/content/article/nist-moves-restrict-foreign-scientists-its-labs
1•JeanKage•8m ago•0 comments

How to Write a Good Spec for AI Agents

https://www.oreilly.com/radar/how-to-write-a-good-spec-for-ai-agents/
1•pella•9m ago•0 comments

Show HN: XPilot – Your X presence, on autopilot

https://xpilot.so
1•alexcloudstar•10m ago•0 comments

cargo-shear: Remove unused dependencies in a Rust project

https://github.com/Boshen/cargo-shear
2•modinfo•13m ago•0 comments

A Campaign to Tackle Loneliness – Empty Chairs

https://emptychairs.org.uk
1•kelseyfrog•17m ago•0 comments

Local.html: Social Discovery by Browser-Based Crawling

https://lofihi.fi/local-html
1•rdmuser•17m ago•0 comments

Show HN: I built an MCP server to recruit employees for free

https://github.com/Himalayas-App/himalayas-mcp
1•walshhub•17m ago•0 comments

Show HN: React Redact – One keyboard shortcut to make your app demo-safe

https://github.com/btahir/react-redact
1•bilater•18m ago•0 comments

/e/OS is a complete "deGoogled", mobile ecosystem

https://e.foundation/e-os/
2•doener•18m ago•0 comments

Can Europe break free of Visa and Mastercard? MEPs stall digital euro

https://www.euronews.com/my-europe/2026/02/27/can-europe-break-free-of-visa-and-mastercard-meps-s...
2•doener•21m ago•0 comments

Angular Best Practice File Structure Principles 2026

https://medium.com/@bolik/angular-best-practice-file-structure-principles-2026-41f1d1383cda
1•mariusbolik•24m ago•0 comments

Lab-grown organoids trained to solve CartPole

https://news.ucsc.edu/2026/02/brain-organoids-goal-directed-learning/
1•Otterly99•24m ago•0 comments

Show HN: Mini-coder – small, fast CLI coding agent

https://github.com/sacenox/mini-coder
1•sacenox1•24m ago•0 comments

macOS-native sandboxing for local agents

https://agent-safehouse.dev
1•Mopolo•27m ago•0 comments

X's Rust and Python Architecture Analysed

https://nibzard.github.io/twitter-algorithm-tufte/
1•nkko•28m ago•0 comments

Show HN: Omni – Open-source workplace search and chat, built on Postgres

https://github.com/getomnico/omni
7•prvnsmpth•30m ago•0 comments

Show HN: Add a knowledge chat widget to your static site with one script tag

https://chat.juror8.ai
1•shivaodin•33m ago•0 comments

Your AI Slop Bores Me

https://www.youraislopbores.me/
2•mikidoodle•34m ago•0 comments

Graphtoy

https://graphtoy.com
2•netule•36m ago•0 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
1•hasheddan•37m ago•0 comments

Getting Started with Snobol – Ratfactor

https://ratfactor.com/cards/start-snobol
2•rbanffy•48m ago•0 comments

Is Traditional Software Engineering Dead?

https://twitter.com/naval/status/2028314493206585471
1•MrBuddyCasino•48m ago•0 comments

Let OpenClaw bot to manage your issues and Git repositories

https://gisia.dev/docs/ai-bot-skills
1•okoddcat•52m ago•1 comments