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

Ask HN: What happened to Reactive Programming?

1•ashddev•7m ago•0 comments

Fix Your Asserts

https://kristoff.it/blog/fix-your-asserts/
2•mlugg•9m ago•0 comments

Vox Dictum, on-device transcription with speaker diarisation and AI summaries

https://cobaltinfx.com/
1•mozairr•11m ago•0 comments

Why is Lorem Ipsum Everywhere? [video]

https://www.youtube.com/watch?v=kL1PDqzqhM4
2•sevenpence•12m ago•0 comments

Equivalence, non-inferiority and superiority testing

https://rpsychologist.com/d3/equivalence/
1•leonry•13m ago•0 comments

Edging Toward Japan: The Japanese discovery of the colour blue (2025)

https://mainichi.jp/english/articles/20250531/p2a/00m/0op/007000c
3•rawgabbit•16m ago•0 comments

The Self-Evolving Model Router

https://vdf.ai/white-papers/the-self-evolving-model-router/
1•suhaselcuk•16m ago•0 comments

Mid-size local models are now competitive for AI Agents

https://srinathh.medium.com/mid-size-local-models-are-now-competitive-for-ai-agents-7696b2e8b535
1•sfifs•17m ago•0 comments

Commodore OS Basic V2 – Introduction

https://forum.commodoreos.net/viewtopic.php?p=8295
2•amichail•17m ago•0 comments

Teachers' Union Urges Schools to Curb A.I. Chatbots and Screen Time

https://www.nytimes.com/2026/05/27/technology/ai-screens-schools-weingarten.html
1•1vuio0pswjnm7•17m ago•0 comments

CHM Live – Steve Jobs in Exile: NeXT and the Making of a Comeback [video]

https://www.youtube.com/watch?v=gnNdb2wa_NE
1•felixding•17m ago•0 comments

A compressed-spring model of spiral galaxy formation

https://theeggandtherock.com/p/a-compressed-spring-model-of-spiral
3•cobbzilla•18m ago•0 comments

China and EU on brink of trade war

https://www.brusselstimes.com/2163961/china-and-eu-on-brink-of-trade-war
4•vrganj•19m ago•0 comments

The State of Open-Source EDA Tools: Breaking Open-EDA for ASIC Chip Flow

https://saadsiddiqui138117.substack.com/p/the-state-of-open-source-eda-tools
2•hasheddan•20m ago•0 comments

Tussle in Cyberspace

https://conferences.sigcomm.org/sigcomm/2002/papers/tussle.html
1•jruohonen•23m ago•0 comments

Human brains are misaligned, hallucinative, stochastic parrots

https://substack.com/@samuelfitoussi/p-191268395
4•samuelfitoussi•25m ago•2 comments

"Capitalism is not natural – it is enforced."

https://www.youtube.com/watch?v=9M_dq_0ljsc
1•28304283409234•25m ago•0 comments

DIY Bipedal Robot Used Pneumatic "Air-Muscles" Instead of Motors

https://spectrum.ieee.org/shadow-walker-biped-humanoid-robot
1•sohkamyung•25m ago•0 comments

AI content is great if you know it's AI

https://www.geekbeard.dev/p/cosplaying-humans
1•drunx•28m ago•0 comments

Octopus Energy meter and billing dashboard with EV charging

https://github.com/macsmax/maxihome-octopi
1•macsmax•30m ago•0 comments

Show HN: Stable Audio 3 – one-shot sample generator (110gb download)

https://github.com/shiehn/sas-sample-generator
2•stevehiehn•31m ago•0 comments

Ask HN: Anyone missing the human aspect of pre AI?

2•hnthrow10282910•31m ago•0 comments

Fan-made game remake of legendary PS1 Medal of Honor 1999

https://www.moddb.com/games/medal-of-honor-retro-remake/news/medal-of-honor-retro-remake-final-re...
1•HelloUsername•38m ago•0 comments

Puzzles about Digital Lipograms

https://logoggilo.substack.com/p/what-if-every-great-brand-had-its
1•gillesr•42m ago•1 comments

Remembering Dotcom, Pondering LLMs: Comparing Hypes and Bubbles

https://www.datagubbe.se/dhabi/
3•ingve•46m ago•0 comments

You Weren't Meant to Have a Boss (2008)

https://paulgraham.com/boss.html
3•downbad_•47m ago•0 comments

Show HN: Graph-Based Firebase Alternative with Real-Time Sync

https://linkedrecords.com/getting-started/
1•WolfOliver•52m ago•0 comments

MemoryArena – generic memory arena in Golang

https://github.com/Protocol-Lattice/memoryArena
1•raezil•53m ago•1 comments

United Airlines 767 Returns to Newark After Bluetooth Name Sparks Alert

https://simpleflying.com/united-airlines-767-returns-newark-bluetooth-name-alert/
12•Eridanus2•55m ago•2 comments

Data center frenzy is spurring a jobs boomlet for blue-collar workers

https://www.cbsnews.com/news/ai-data-center-jobs-construction-technician/
1•wyclif•57m ago•0 comments