frontpage.
newsnewestaskshowjobs

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

A new Digital Audio Workstation created using AI

https://github.com/BurningTreeC/faderframe
1•BTC_BurningTree•33s ago•1 comments

A Robust Decentralized Infrastructure for Trust-Aware Open Knowledge Sharing

https://knowledgepixels.com/nanopub-ecosystem-paper/
1•tkuhn•4m ago•1 comments

ScalarDB 3.19 has been released

https://medium.com/scalar-engineering/scalardb-3-19-has-been-released-8f6cc4ef8fec
2•josh-scalar•15m ago•0 comments

What PHP2Shell Does – A Bartender Analogy

https://joeykeller.com/php2shell-bartender
2•sdoering•15m ago•0 comments

The CS50 Show with David J. Malan [video]

https://www.youtube.com/watch?v=4t23RAQNrPk
2•vismit2000•15m ago•0 comments

Argument from Incredulity

https://www.logicallyfallacious.com/logicalfallacies/Argument-from-Incredulity
2•Bluestein•16m ago•0 comments

Fortescue is using KUKA welding robots to handle 6 MW charging cables

https://electrek.co/2026/10/22/fortescue-is-using-kuka-welding-robots-to-handle-6-mw-charging-cab...
2•cisc•16m ago•0 comments

Dutch intelligence service spied on phone of Trump's son-in-law Jared Kushner

https://nltimes.nl/2026/10/23/dutch-intelligence-service-spied-phone-trumps-son-law-jared-kushner...
4•amelius•18m ago•2 comments

TSMC seeks factory-equipment alternatives to thwart China's rare earths grip

https://www.reuters.com/world/china/tsmc-seeks-factory-equipment-alternatives-thwart-chinas-rare-...
2•giuliomagnifico•19m ago•0 comments

What a Terrible Day to Have a Computer

https://blog.ricci.io/what-a-terrible-day-to-have-a-computer-d6b323r
2•ColinWright•20m ago•0 comments

Can AI predict cancer survival better than a doctor? I have my doubts

https://www.theguardian.com/commentisfree/2026/oct/23/ai-cancer-survival-doctor-selfie-health-res...
2•amelius•20m ago•0 comments

AI-powered platform that finds local businesses without websites

https://www.thyonix.com
1•itshimbilal•25m ago•0 comments

Google Chrome is breaking the web forward

https://www.quirksmode.org/blog/archives/2021/08/breaking_the_we.html
3•fanf2•32m ago•1 comments

Top AI Prompt Engineering Best Practices for Developers

https://aiqualityhq.com/ai-prompt-engineering-best-practices
1•pntkrl•34m ago•0 comments

Scrolling TikTok-like feed with vintage, nostalgic clips

https://yesterfilm.com
1•akest•36m ago•0 comments

Tell HN: The latest macOS Sequoia update seems to revert the eMudhra workaround

1•thdr•38m ago•0 comments

Tardigrade, an AGPL fork of CockroachDB that stays open

https://github.com/podomy/tardigrade
2•neiltalap02•39m ago•0 comments

ForgeTerm: Bring your agents. Keep your work

https://2tinteractive.com/apps/forgeterm/
1•LebToki•39m ago•0 comments

Bun 1.4.4 removes compromised eMudhra certs

https://github.com/oven-sh/bun/security/advisories/GHSA-26q8-h657-pf84
2•colinmarc•40m ago•1 comments

Ultimate: A self-extending agent harness built on Pi Durable

https://danielgriesser.com/posts/ultimate/
2•sixhobbits•40m ago•0 comments

French police could soon tag protesters with chemicals with invisible markers

https://www.gadgetreview.com/french-police-could-soon-tag-protesters-with-chemicals-that-contain-...
1•Markoff•43m ago•0 comments

Show HN: A dating SIM where 1k people run on models built from survey data

https://sexandthecity.fun
2•mizanxali•44m ago•1 comments

Project Copacetic: Directly patch container image vulnerabilities

https://project-copacetic.github.io/copacetic/website/
1•sebws•44m ago•0 comments

China offered European Commission to join its AI alliance

https://www.rapporteur.com/news/exclusive-china-asked-european-commission-to-join-its-ai-alliance/
3•vrganj•46m ago•0 comments

PirateFace Models

https://pirateface.co/models
2•jacquesm•47m ago•0 comments

Convertir WebP a JPG online gratis y de forma privada en el navegador

https://printpixeltool.com/es/convertir-webp-a-jpg/
1•pntkrl•50m ago•1 comments

Disney Raising Prices Days After Confirming Ads Will Now Show Up on Every Tier

https://www.tvfandomlounge.com/disney-plus-price-hike-ads-premium-tier-nielsen-emmys-2026/
1•robtherobber•52m ago•0 comments

Show HN: Pulse reached 8 contributors und 30 stars

1•xerrs•54m ago•0 comments

Spotify confirms Family Plan crackdown, but calls it a 'routine improvement'

https://techcrunch.com/2026/10/22/spotify-confirms-family-plan-crackdown-but-calls-it-a-routine-i...
3•RustyBucket•56m ago•0 comments

Delta Emulator is now available in the App Store in the EU

https://indieapps.space/@delta/117486017040524784
1•latexr•57m ago•0 comments