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

Comments

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

The Comprehensive List of X Window Managers for Unix

https://www.gilesorr.com/wm/xwmtable.html
1•signa11•19s ago•0 comments

Open Claw is meant to be self hosted. Stop sharing your private credentials

1•pushkar_aditya•1m ago•0 comments

Blinkenlights

https://justine.lol/blinkenlights/
1•tosh•1m ago•0 comments

The Chinese periodic table goes hard [video]

https://www.youtube.com/watch?v=8ol7DsPnHcE
1•surprisetalk•2m ago•0 comments

Psychological differences within China explained by rice vs. wheat agriculture

https://pubmed.ncbi.nlm.nih.gov/24812395/
1•surprisetalk•2m ago•0 comments

How to Download YouTube Shorts?

https://whoerip.com/blog/how-to-download-youtube-shorts-a-complete-guide/
1•LinLinLin12•2m ago•0 comments

What if everything was "Async", but nothing needed "Await"? [video]

https://www.youtube.com/watch?v=tpICs7uG3n8
1•surprisetalk•3m ago•0 comments

Cyber Resilience Act

https://digital-strategy.ec.europa.eu/en/policies/cyber-resilience-act
1•doetoe•5m ago•0 comments

Is Dark Energy Evolving?

https://www.universetoday.com/articles/is-dark-energy-actually-evolving
1•Betelbuddy•6m ago•0 comments

Any2K: Read your articles, newsletters and RSS feeds on Kindle and iOS/Android

https://any2k.com
1•emiraydin•6m ago•1 comments

Writing a native VLC plugin in C#

https://mfkl.github.io/2026/02/11/vlc-plugin-csharp.html
1•pjmlp•8m ago•0 comments

Show HN: Klovr – Convert any webpage to Markdown (Cloudflare covers only 5%)

https://www.klovr.ai/
1•vaibhavlodha98•9m ago•0 comments

The Knights of Malta (2024)

https://www.economist.com/europe/2024/02/01/meet-the-knights-of-malta
1•andsoitis•10m ago•0 comments

Show HN: ChromaPrint – Small rust lib for styled terminal printing

https://github.com/brysonbw/chroma-print
1•Brysonbw•11m ago•0 comments

I tried running Linux on an Apple Silicon Mac and regretted it

https://www.msn.com/en-us/technology/software/i-tried-running-linux-on-an-apple-silicon-mac-and-r...
1•smurda•14m ago•0 comments

Show HN: InitRunner – YAML to AI Agent with RAG, Memory, and an API

https://github.com/vladkesler/initrunner
1•Asciilotle•14m ago•0 comments

Show HN: Switch Codex accounts without leaving the terminal

https://github.com/oli799/codex-router
1•oli799•17m ago•0 comments

Goldman Traders Launch AI-Proof Software Basket Amid Sector Rout

https://www.bloomberg.com/news/articles/2026-02-13/goldman-traders-launch-ai-proof-software-baske...
1•jbredeche•17m ago•1 comments

Show HN: Create new calendar systems to fix uneven months

https://calendar-architect.pages.dev/
1•szemy2•18m ago•0 comments

Is this the most eye-popping restaurant?

https://www.theguardian.com/artanddesign/2026/feb/16/eye-popping-restaurant-oscar-niemeyer-sphere...
1•n1b0m•19m ago•0 comments

Weather: When to Cross the Great Australian Bight

https://blog.arribasail.com/2025/07/weather-when-to-cross-great-australian-bight.html
1•speckx•19m ago•0 comments

Alibaba Unveils Major AI Model Upgrade Ahead of DeepSeek Release

https://www.bloomberg.com/news/articles/2026-02-16/alibaba-unveils-major-ai-model-upgrade-ahead-o...
2•jbredeche•19m ago•0 comments

Ask HN: Why do we need things like 8sleep? Is sleeping with blankets unnatural?

1•denismenace•22m ago•1 comments

False Assurance in Formally Verified Cryptographic Libraries

https://eprint.iacr.org/2026/192
1•st_goliath•22m ago•0 comments

Context Engineering for Beginners: A Developer's Guide

https://memgraph.com/blog/context-engineering-for-beginners
1•taubek•23m ago•0 comments

Why Are Transit Buses So Expensive?

https://ti.org/antiplanner/?p=23595
1•xnx•23m ago•0 comments

Amazon's Andy Jassy bets on $200B AI spending drive to revive AWS

https://www.ft.com/content/905df663-8c47-4e88-b6ff-24dd4bd46290
1•1vuio0pswjnm7•23m ago•0 comments

China's tech shock threatens the U.S. AI monopoly

https://www.cnbc.com/2026/02/16/chinas-tech-shock-ai-monopoly-us.html
2•geox•28m ago•1 comments

Show HN: A collection of drop-in sections for Shopify development

https://github.com/bilalnaseer/shopify-sections
1•wspycnews•30m ago•0 comments

Show HN: Yell into the void to find others via semantic search

https://void.devrupt.io
2•ddtaylor•31m ago•0 comments