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•1y ago

Comments

panstromek•1y 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•1y 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•1y 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_•1y 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_•1y 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•1y 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•1y 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

Mathematics Genealogy Project

https://www.mathgenealogy.org
1•ipnon•32s ago•0 comments

WebRTC Is the Problem

https://moq.dev/blog/webrtc-is-the-problem/
1•L_226•1m ago•0 comments

Copying Memory Is an Art

http://miod.online.fr/software/openbsd/stories/ovbcopy.html
1•signa11•10m ago•0 comments

Zed Is Pretty Nice

https://blog.kronis.dev/blog/zed-is-pretty-nice
1•KronisLV•11m ago•0 comments

CERN's KiCad component library now open source

https://home.cern/computing/cerns-kicad-component-library-now-open-source/
1•elashri•14m ago•0 comments

Scripily – AI for Restoring and Transcribing Damaged Documents

https://scripily.com/
1•thisarajay•17m ago•0 comments

Atlas of Artificial Intelligence

https://vivamau.github.io/aimap/
1•mnovasoftrm•17m ago•1 comments

Pi-for-Word: Pi Agent as Add-In for M365 Office Word

https://github.com/damianofalcioni/pi-for-word
1•damianofalcioni•20m ago•0 comments

Global perceptions of US fall below Russia under Trump

https://www.reuters.com/world/china/global-perceptions-us-fall-below-russia-under-trump-survey-fi...
2•benterix•24m ago•1 comments

San Fran: We Buried a $10k Treasure Chest

https://www.buriedtreasuresf.com
2•vinnyglennon•24m ago•0 comments

AI is rapidly changing cybersecurity across the world

https://fixtechhubs.blogspot.com/2026/05/ai-cybersecurity-threats-are-rising.html
1•rindodi•26m ago•0 comments

GitRace – a tap-to-fly arcade game where every level is a real GitHub repo

https://driftwood-4cd6d.web.app
1•root_theory•27m ago•0 comments

SEO Migration Checklist: From A to Z (DevGuide)

https://focusreactive.com/blog/seo-migration-checklist/
1•katyadrozd•29m ago•0 comments

Coinbase AWS Service Disruption

https://status.coinbase.com/incidents/frg5wqm113dh
1•aghuang•34m ago•0 comments

Show HN: Corsproxy – Fix CORS Errors Instantly – Free for Development

https://corsproxy.io/
1•mariusbolik•34m ago•0 comments

Notes from Inside China AI Labs

https://www.interconnects.ai/p/notes-from-inside-chinas-ai-labs
1•eamag•35m ago•0 comments

Police advised to disable Bluetooth on Axon body-worn cameras to avoid detection

https://www.abc.net.au/news/2026-05-08/police-advised-turn-bodycams-to-flight-mode-over-security-...
1•stubish•45m ago•0 comments

Diagrammer: Tell the model, get the diagram or the graphical map

https://github.com/IdraDev/Diagrammer
1•idradev•47m ago•1 comments

0ctx – Local-first project memory for AI workflows

1•som3on3•49m ago•0 comments

Memories of David Attenborough as he turns 100

https://www.theguardian.com/tv-and-radio/2026/may/08/david-attenborough-at-100-memories-encounters
1•yreg•51m ago•0 comments

How the NSA obtains and uses airline reservations (2013)

https://papersplease.org/wp/2013/09/29/how-the-nsa-obtains-and-uses-airline-reservations/
1•downbad_•52m ago•1 comments

I, robe-ot: the Android monk working to reboot the faith of S. Korea's Buddhists

https://www.theguardian.com/world/2026/may/08/jogyesa-temple-south-korea-humanoid-ai-robot-gabi
2•ta988•53m ago•0 comments

Nullsoft, 1997-2004 AOL kills off the last maverick tech company (2004)

https://slate.com/technology/2004/11/the-death-of-the-last-maverick-tech-company.html
1•downbad_•55m ago•1 comments

IIT Madras establishes Menlo Park Centre to help Indian startups scale globally

https://www.fortuneindia.com/business-news/international-arm-of-iit-madras-establishes-a-us-centr...
1•porridgeraisin•56m ago•0 comments

Ask HN: What is the most exciting development in your field?

1•chistev•58m ago•1 comments

Ask HN: We just had an actual UUID v4 collision...

8•mittermayr•59m ago•7 comments

HIV pandemic's origins located (2014)

https://www.ox.ac.uk/news/2014-10-03-hiv-pandemics-origins-located
1•thunderbong•1h ago•0 comments

Platform Engineering End-to-End

https://www.lucavall.in/blog/platform-engineering-end-to-end
2•ingve•1h ago•0 comments

The complete Claude Code course for engineers and technical founders

https://code-agents.ai
3•onder_ceylan•1h ago•0 comments

Show HN: Runs AI coding agents inside isolated Docker containers

https://github.com/marvincaspar/agent-sanbox
3•matt_callmann•1h ago•0 comments