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

America's chip export controls are working

https://www.noahpinion.blog/p/americas-chip-export-controls-are
1•paulpauper•26s ago•0 comments

How About a Markdown Web?

https://brettterpstra.com/2026/01/02/how-about-a-markdown-web/
2•ingve•5m ago•0 comments

In China, A.I. Is Finding Deadly Tumors That Doctors Might Miss

https://www.nytimes.com/2026/01/02/world/asia/china-ai-cancer-pancreatic.html
2•alazsengul•6m ago•0 comments

MTV's 24-Hour Music Channels Shut Down Across the Globe

https://consequence.net/2025/12/mtv-music-channels-shut-down/
1•xbmcuser•6m ago•0 comments

Vibration energy harvesting by ferrofluids in external magnetic fields

https://www.nature.com/articles/s41598-025-12490-w
2•PaulHoule•8m ago•0 comments

Tesla Falls Behind China's BYD as Vehicle Sales Drop for Second Year

https://www.wsj.com/business/autos/tesla-sales-drop-for-second-year-in-a-row-958dec20
2•JumpCrisscross•10m ago•0 comments

I built a tool to catch accidental Supabase data exposure

https://www.supaguard.pro/
1•vikzsharma•10m ago•1 comments

Pebble Round 2

https://techcrunch.com/2026/01/02/pebble-reboots-its-thinnest-smartwatch-with-the-pebble-round-2/
2•noflag•13m ago•0 comments

Biggest Cybersecurity and Cyberattack Stories of 2025

https://www.bleepingcomputer.com/news/security/the-biggest-cybersecurity-and-cyberattack-stories-...
1•belter•16m ago•0 comments

Ask HN: What do you plan to read in 2026?

2•__patio•17m ago•1 comments

Giving Your Agent Eyes Is Not Enough

https://qckfx.com/blog/giving-your-agent-eyes-is-not-enough
1•chw9e•18m ago•0 comments

Science Is a Guessing Game

https://himanshusinghbisht.substack.com/p/science-is-a-guessing-game-conjectures
1•gilfoyle_7•20m ago•0 comments

I built a screen-aware desktop assistant; now it can write and use your computer

2•luthiraabeykoon•20m ago•2 comments

Ask HN: Why is iOS in-app purchase monetization so hard to learn as a system?

1•mnrj_vv•21m ago•0 comments

Does AI pose an existential threat to mathematicians?

https://kityates.substack.com/p/does-ai-pose-an-existential-threat
1•headalgorithm•23m ago•0 comments

Was It a Billion Dollar Mistake?

https://www.gingerbill.org/article/2026/01/02/was-it-really-a-billion-dollar-mistake/
2•gingerBill•24m ago•0 comments

Hacking Welfare Doubles Somalia's GDP

https://jessicar.substack.com/p/fraudulent-businesses-paid-the-equivalent
2•mensetmanusman•25m ago•1 comments

Show HN: I mapped System Design concepts to AI Prompts to stop bad code

https://github.com/nimin1/system-design-vibecoding
2•systemdesignai•26m ago•1 comments

Questions to ask yourself every year (2016)

https://stephango.com/40-questions
1•ayoisaiah•26m ago•0 comments

The Chicken Game and the Evolution of the DRAM Industry from 2006 to 2014 [pdf]

https://s-space.snu.ac.kr/bitstream/10371/95351/1/01%20Jeho%20Lee.pdf
2•walterbell•26m ago•0 comments

A "Fresh" New Terminal Text Editor

https://www.youtube.com/watch?v=dspEVA8eoUg
1•bane•27m ago•0 comments

Charlie Angus, Lafayette, Joni Askola, Outsiders Who See Collapse Coming First

https://www.americanmuckrakers.com/p/charlie-angus-lafayette-joni-askola
1•americanmuck•27m ago•0 comments

From many to one – parallel reductions on the GPU

https://double-dissent.fika.bar/from-many-to-one-01KDZ2KP81YSFJ4XJ1241QQK80
2•txus•28m ago•0 comments

How to add two vectors, fast

https://double-dissent.fika.bar/how-to-add-two-vectors-fast-01KDFNX4WQA7C70TZ19K8P1JAV
1•txus•28m ago•0 comments

A Study Is Retracted, Renewing Concerns About the Weedkiller Roundup

https://www.nytimes.com/2026/01/02/climate/glyphosate-roundup-retracted-study.html
2•instagib•31m ago•0 comments

Documented source code for The Sentinel on the BBC Micro

https://github.com/markmoxon/the-sentinel-source-code-bbc-micro
3•z303•31m ago•0 comments

The Click Communicator combines Blackberry function with modern smartphone form

https://www.androidpolice.com/clicks-launches-blackberry-like-communicator-phone/
2•cuu508•35m ago•0 comments

Show HN: Get company brand data API

https://www.brand.dev/
3•ICodeSometimes•38m ago•1 comments

The Handyman Principle: Why Your AI Forgets Everything

https://vexjoy.com/posts/the-handyman-principle-why-your-ai-forgets-everything/
3•AndyNemmity•43m ago•1 comments

Google AI Overviews put people at risk of harm with misleading health advice

https://www.theguardian.com/uk-news
4•chrisjj•46m ago•2 comments