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

Comments

panstromek•8mo 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•8mo 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•8mo 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_•8mo 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_•8mo 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•8mo 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•8mo 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: Tarantillo – Create beautiful AI videos with granular slide control

https://tarantillo.com
1•programad•3m ago•0 comments

A new paradigm for cloud-native infrastructure (2025)

https://blog.rackspacecloud.com/blog/2025/11/24/a_new_paradigm_for_cloud-native_infrastructure
1•shscs911•4m ago•0 comments

Select Wat from SQL;

https://scattered-thoughts.net/writing/select-wat-from-sql/
1•fanf2•8m ago•0 comments

Show HN: Enjoy – A gamified GitHub repo where contributions earn karma

https://github.com/fabriziosalmi/enjoy
1•fab_space•10m ago•0 comments

Static site search without JavaScript (Perl + FastCGI + SA index)

https://www.asciimx.com/log/site-search/
1•kovac•10m ago•1 comments

ZeroDP: Just-in-Time Weight Offloading over NVLink for Data Parallelism

https://mainlymatmul.com/blog/zerodp/
1•mezark•12m ago•0 comments

Why Young Danes Are Still Having Sex

https://spectator.com/article/gen-z-as-is-well-known-is-having-significantly-less-sex-than-their-...
3•barry-cotter•13m ago•1 comments

Hackers claim to have Target source code for sale following recent cyberattack

https://www.techradar.com/pro/security/hackers-claim-to-have-target-source-code-for-sale-followin...
1•01-_-•18m ago•0 comments

The PS Plus Premium Problem Nobody Wants to Talk About

1•01-_-•20m ago•0 comments

Study: Ethnonationalism by Algorithm

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6065414
3•giuliomagnifico•20m ago•1 comments

Building a Personal Knowledge Base with Local Files

https://desktopcommander.app/blog/2026/01/07/build-a-personal-ai-knowledge-base-with-local-files/
1•rafaepta•21m ago•0 comments

UW ttyp0 Monospace Bitmap Fonts (v2.1)

https://people.mpi-inf.mpg.de/~uwe/misc/uw-ttyp0/
2•woffer•22m ago•0 comments

IDE-like features for your Markdown notes (LSP and CLI)

https://iwe.md
2•gimalay•22m ago•0 comments

Show HN: Professional Headshot AI – A Tool for Realistic Headshots Using AI

1•ZHUDAN509•22m ago•0 comments

Things I learned from burning myself out with AI coding agents

https://arstechnica.com/information-technology/2026/01/10-things-i-learned-from-burning-myself-ou...
2•brazukadev•23m ago•1 comments

Amazon is ending all inventory commingling as of March 31, 2026

https://twitter.com/ghhughes/status/2012824754319753456
15•MrBuddyCasino•25m ago•1 comments

Simplifying Room Planning with a Wardrobe and Drawers Set

https://dreamhomestore.co.uk/collections/bedroom-furniture-sets
1•paulsimpson3214•27m ago•1 comments

Are you tired of AI stigma?

https://slopper.robot-future.com/
2•busters4•31m ago•0 comments

We built Git-like versioning and context-aware AI for software architecture

1•SougataAS•32m ago•0 comments

Creusot: Devlog

https://creusot-rs.github.io/devlog/2026-01-19/
2•syrak•34m ago•0 comments

Washington State Bill Seeks to Add Firearms Detection to 3D Printers [pdf]

https://lawfilesext.leg.wa.gov/biennium/2025-26/Pdf/Bills/House%20Bills/2321.pdf?q=20260119041123
2•jnord•36m ago•0 comments

Developer productivity metrics are measuring you, not your team

https://dougrathbone.com/blog/2026/01/19/your-developer-productivity-metrics-are-measuring-you-no...
1•wiredone•41m ago•1 comments

'Factory flaw' spurs toy horse to instant popularity

https://www.chinadaily.com.cn/a/202601/12/WS69644af0a310d6866eb3329e.html
2•masfuerte•43m ago•0 comments

Interview with Warren Buffett: A Life and Legacy

https://podcasts.apple.com/us/podcast/warren-buffett-a-life-and-legacy-1-13-26/id1480890290?i=100...
1•sarmike31•44m ago•0 comments

I am worried about these newest Captchas

https://medium.com/the-haven/i-am-worried-about-these-newest-captchas-82d406715994
3•bryanrasmussen•45m ago•0 comments

Show HN: I made a pocket IDE for Android Developers

https://youtu.be/ToNxbKVkTic
1•0dayman•45m ago•0 comments

Weight-Loss Drugs Could Save U.S. Airlines $580M per Year

https://www.nytimes.com/2026/01/19/travel/airlines-weight-loss-drugs.html
1•mistersquid•47m ago•0 comments

Free Layer 7 Web DDoS protection for evaluation (from Germany)

2•linkeleven•48m ago•0 comments

Show HN: First party analytics pipeline on Cloudflare with DuckDB

https://try.icelight.dev/
1•cliftonc•51m ago•0 comments

Your workflow system just runs DAGs

https://blog.julik.nl/2026/01/on-the-way-to-step-functions-part-2
2•julik•53m ago•0 comments