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: Excel from Snowflake – No Code

https://snowpivot.starferret.com
1•xvok•1m ago•0 comments

EU considers $108B in retaliatory tariffs on US over Trump's threats

https://www.reuters.com/world/europe/eu-considers-108-billion-retaliatory-tariffs-us-over-trumps-...
3•tokai•5m ago•0 comments

Models Handler Tool for Golang with Build in ORM and AutoSync Feature

1•vrianta-•9m ago•0 comments

Show HN: DocsSquirrel (AI Agent) – Never about writing documentation again

https://docssquirrel.com
1•grey_coder•10m ago•0 comments

Teenagers up to 30: It's false that the brain suddenly becomes an adult at 25

https://english.elpais.com/science-tech/2026-01-17/teenagers-up-to-30-its-false-that-the-brain-su...
1•akyuu•10m ago•0 comments

At least 21 killed in Spain after crash involving high-speed trains

https://www.bbc.com/news/articles/cedw6ylpynyo
1•akyuu•11m ago•0 comments

AI Zettelkasten Builder

https://edge.dog/docs
1•castalian•11m ago•0 comments

Show HN: Ralph-template – Autonomous AI agent loop in a single folder

https://github.com/bernatsampera/ralph-template
1•bsampera•16m ago•0 comments

Show HN: Deploy multiple apps on the same VPS with a single command

https://github.com/amirkarimi/docklift
1•4m1rk•18m ago•0 comments

Free tool to see how AI crawlers (GPT, Claude, Perplexity) read any site

https://www.veezow.com/
2•Atbech•19m ago•0 comments

Praxis News: A Free News Browser for iOS

https://praxisnews.app
1•firstbabylonian•22m ago•0 comments

If Not Lessons, Then What?

https://third-bit.com/2026/01/18/if-not-lessons-then-what/
1•todsacerdoti•22m ago•0 comments

Show HN: Remote AI Computer Use – Securely Control Your Mac from Anywhere

https://donely.ai/
1•Stanlyya•22m ago•0 comments

Coding with LLMs in 2026: The Model Matters More Than the Prompts

https://twitter.com/slow_developer/status/1877798620692422835
1•bored_hacker•22m ago•1 comments

From Idea to Impact: How Modern Technology Is Built and Scaled

http://techvastonline.blogspot.com/2026/01/from-idea-to-impact-how-modern.html
1•Silvaaaa•22m ago•1 comments

11:59 PM

https://atharvaraykar.com/reinforce/
1•zetalyrae•28m ago•0 comments

Mammoth fossils from Alaska turn out to belong to two ancient whales

https://phys.org/news/2026-01-case-mistaken-identity-mammoth-fossils.html
2•wglb•30m ago•1 comments

US Housing Outlook: Affordability weighing on demand. Supply low [pdf]

https://www.apolloacademy.com/wp-content/uploads/2026/01/USHousingOutlookJan2026_v2.pdf
1•gmays•31m ago•0 comments

Betterment hid references to a data breach from search engines

https://techcrunch.com/2026/01/12/fintech-firm-betterment-confirms-data-breach-after-hackers-send...
3•gaws•31m ago•0 comments

Consciousness May Have Formed Before Life Itself

https://www.popularmechanics.com/science/a70025741/asteroid-bennu-consciousness-life/
4•bookofjoe•32m ago•1 comments

Potatoverse, Platform for Apps

https://github.com/blue-monads/potatoverse
4•born-jre•35m ago•0 comments

Show HN: Quantum Chemistry from Scratch

https://www.daniellowengrub.com/blog/2025/07/26/scf
1•lowdanie•35m ago•0 comments

A Professor in Every Pocket

https://lagomor.ph/2026/01/a-professor-in-every-pocket/
1•ChilledTonic•37m ago•0 comments

River-classic: river 0.3.x forever

https://codeberg.org/river/river-classic
1•todsacerdoti•40m ago•0 comments

Prediction: Microsoft Is Going to Do the Funniest Thing Imaginable

https://gamesbymason.com/blog/2026/microsoft/
6•AndyKelley•40m ago•2 comments

Compiling Scheme to WebAssembly

https://eli.thegreenplace.net/2026/compiling-scheme-to-webassembly/
3•ibobev•45m ago•1 comments

Designated Initializers, the best feature of C++20

https://mropert.github.io/2026/01/15/designed_initializers/
1•ibobev•45m ago•0 comments

TI-99/4A: Leaning More on the Firmware

https://bumbershootsoft.wordpress.com/2026/01/17/ti-99-4a-leaning-more-heavily-on-the-firmware/
1•ibobev•46m ago•0 comments

From Language to Cognition: How LLMs Outgrow the Human Language Network

https://aclanthology.org/2025.emnlp-main.1237/
2•naves•47m ago•0 comments

From Patch Cables to MIDI CC: Modular Thinking in Music Software

https://aftertone.co/articles/modular-thinking.html
1•100pctremote•48m ago•0 comments