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

2026: The year of the node based editor

https://medium.com/@fadimantium/2026-the-year-of-the-node-based-editor-941f0f15d467
1•soupspaces•2m ago•0 comments

Congress Clears Housing Bill, Cementing a Rare Bipartisan Feat

https://www.nytimes.com/2026/06/23/us/politics/congress-housing-bill.html
1•mikhael•5m ago•0 comments

"Fix" MacBook Neo Cursor Lag: Record 1 Pixel of the Screen Every 10 Seconds

https://gist.github.com/retroplasma/ec21767d0a8380c7ea9c2fbee1c7d6bf
2•retroplasma•5m ago•1 comments

InSight: Self-Guided Skill Acquisition via Steerable VLAs

https://insight-vla.github.io/
1•ilreb•7m ago•0 comments

Kevin Warsh's Press Conference Collides into 30 Years of Michael Woodford

https://newsletter.mikekonczal.com/p/kevin-warshs-press-conference-collides
1•NomNew•12m ago•0 comments

The Teensy Executable Revisited

https://www.muppetlabs.com/~breadbox/software/tiny/revisit.html
1•ankitg12•14m ago•0 comments

How Quake Ruined Id Software

https://twitter.com/SandyofCthulhu/status/2069592209645785294
2•boredemployee•14m ago•0 comments

Bash Line Editor: a command line editor written in pure Bash

https://github.com/akinomyoga/ble.sh
1•thunderbong•16m ago•0 comments

How the war on terror primed America for autocracy

https://www.economist.com/by-invitation/2026/06/02/how-the-war-on-terror-primed-america-for-autoc...
1•andsoitis•20m ago•0 comments

Show HN: Procman, a TUI for run Procfile based app locally

https://github.com/a-chacon/procman
1•achayala•21m ago•0 comments

Qwen-AgentWorld: Language World Models for General Agents

https://arxiv.org/abs/2606.24597
2•ilreb•22m ago•0 comments

Child care is becoming more affordable

https://www.economist.com/graphic-detail/2026/06/23/child-care-is-becoming-more-affordable
1•andsoitis•22m ago•0 comments

Dataland, an intense new AI art museum

https://www.economist.com/culture/2026/06/23/are-you-having-fun-yet-dataland-an-intense-new-ai-ar...
1•andsoitis•23m ago•0 comments

You may be taking the wrong painkiller

https://dynomight.net/painkillers/
1•colinprince•29m ago•1 comments

DiffusionBench: Towards Holistic Evaluation of Generative Diffusion Transformers

https://github.com/End2End-Diffusion/diffusion-bench
2•ilreb•31m ago•0 comments

Woman with Alzheimer's starts conversing again after taking psilocybin

https://www.newscientist.com/article/2531319-woman-with-alzheimers-starts-conversing-again-after-...
5•nazgul17•38m ago•0 comments

I Read the Palantir Manifesto

https://corbettreport.com/i-read-the-palantir-manifesto/
4•paulnpace•39m ago•0 comments

Find FA's in your local area

https://www.falists.co/
1•mattmerrick•40m ago•0 comments

UK tribunal gives go ahead for $4B lawsuit against Apple over iCloud services

https://www.msn.com/en-gb/money/technology/uk-tribunal-gives-go-ahead-for-4-billion-lawsuit-again...
1•geoffbp•47m ago•1 comments

Show HN: Interactive and realistic water ripple physics

https://github.com/Whynotmetoo/water-ripples
1•carsonye•48m ago•0 comments

Design Kits for iOS, iPadOS, and macOS 27

https://developer.apple.com/news/?id=e2lxw9l1
2•soheilpro•52m ago•0 comments

China Minerals Threatens EU; AI Warfare Dominates Japan, WeChat

https://asiaai.fyi/wp-login.php?redirect_to=https%3A%2F%2Fasiaai.fyi%2Fwp-admin%2Fpost.php%3Fpost...
2•dweisinger•55m ago•0 comments

Fear in Four Dimensions

https://taylor.town/fear-4d
3•Curiositry•58m ago•0 comments

Heliodor: An RVA23-Compliant Multicore Out-of-Order RISC-V Core in Veryl

https://veryl-lang.org/blog/heliodor-rva23/
1•dalance•1h ago•0 comments

OpenJTD: Project to Reverse-Engineer Ichitaro Word Processor Files Used in Japan

https://github.com/KimEJ/OpenJTD
1•nogajun•1h ago•0 comments

Chinese supercomputer leapfrogs best US machines to be ranked fastest

https://www.theguardian.com/technology/2026/jun/24/china-supercomputer-world-fastest-top500-ranki...
5•jethronethro•1h ago•0 comments

Tech stocks slump as AI bubble fears loom

https://www.axios.com/2026/06/23/tech-stocks-ai-bubble
10•1vuio0pswjnm7•1h ago•0 comments

SpaceX raises $25B in debt sale less than two weeks after IPO

https://www.cnbc.com/2026/06/23/spacex-debt-bond-market-ipo.html
3•1vuio0pswjnm7•1h ago•2 comments

Arabian Sand Boa: Python interpreter with frontier intelligence conditional eval

https://github.com/hopafoot/arabian-sand-boa
2•hopafoot•1h ago•1 comments

The Part After Done

https://howstrangeitistobeanythingatall.com/post/2026-06-23-the-part-after-done
2•alanbotts•1h ago•0 comments