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

Reaction: "A Quick Look at Atomics in C"

https://informationalwayswin.blogspot.com/2026/09/reaction-quick-look-at-atomics-in-c.html
1•odilelof•4m ago•0 comments

Show HN: Liniora – Ever thought about replacing your project manager?

https://liniora.com
2•omarammura•7m ago•0 comments

"The CUDA Moat is Gone" – TechTechPotato with AI& founder David Bennet [video]

https://www.youtube.com/watch?v=TiRxcPQNcBA
2•olvy0•8m ago•0 comments

Experiment: How easy is it to buy a research paper on the black market?

https://news.err.ee/1610129869/experiment-how-easy-is-it-to-buy-a-research-paper-on-the-black-market
4•jruohonen•9m ago•0 comments

OpenRGB 1.0 Released

https://openrgb.org/
2•MattTheRealOne•11m ago•0 comments

Show HN: Rust-split – save your tokens on large Rust source files

4•owebeeone•12m ago•0 comments

Build with Replit Against Managed Postgres in Databricks Apps

https://docs.replit.com/updates/2026/09/11/changelog
1•utiiiD•13m ago•0 comments

Journal Editors: How are you evaluating AI assisted papers?

https://mathoverflow.net/questions/515144/journal-editors-how-are-you-evaluating-ai-assisted-papers
1•jjgreen•15m ago•0 comments

We're All Going to Die

https://www.noahpinion.blog/p/heres-how-were-all-going-to-die
2•throw0101a•17m ago•0 comments

Karaoke for one: China's $1T 'loneliness economy'

https://www.cnn.com/2026/09/12/business/asia-loneliness-economy-intl-hnk-dst
1•michaelsbradley•17m ago•0 comments

Overshoot: The World Is Hitting Point of No Return on Climate

https://e360.yale.edu/features/1.5-degrees-tipping-points
2•throw0101a•18m ago•0 comments

Hydra

https://en.wikipedia.org/wiki/Hydra_(genus)
1•tosh•19m ago•0 comments

Show HN: Parallel Coding Agents on Mobile

https://github.com/PlathsOven/maestro
4•Entropnt•19m ago•0 comments

Show HN: Email Client with Backups

https://mailvaultapp.com/
1•spacecash21•19m ago•0 comments

AI changing the calculus for Canadian students interested in comp sci

https://www.theglobeandmail.com/canada/article-ai-computer-science-students-and-schools-that-hope...
3•AnodicElegy•22m ago•1 comments

Fresh: Terminal based IDE and text editor: easy, powerful and fast

https://github.com/sinelaw/fresh
2•linkdd•22m ago•0 comments

TinyEMU is a system emulator for the RISC-V and x86 archs

https://github.com/dearchap/tinyemu
2•Bluestein•24m ago•0 comments

ProLogium begins mass production of solid-state battery at 381 Wh/kg

https://finance.yahoo.com/energy/articles/prologium-begins-mass-production-high-070000793.html
2•akamaka•25m ago•0 comments

HTTPS Everywhere?

https://blog.altos.au/post/https-everywhere/
1•meetpateltech•26m ago•0 comments

Subjective reports and visual targets during attempted out-of-body experiences

https://www.sciencedirect.com/science/article/abs/pii/S1550830726001941?via%3Dihub
2•bookofjoe•31m ago•0 comments

Here Comes the Sun

https://granta.com/here-comes-the-sun/
1•jruohonen•33m ago•1 comments

Show HN: TattooPreview AI – a planning workflow for tattoo artist conversations

https://tattoopreviewai.com
2•robot1996•36m ago•0 comments

Show HN: I wrote a book on using AI in game design production (free on GitHub)

https://github.com/eremes81/game-design-ai-practice-en
3•eremes81•38m ago•0 comments

Fuck it, make it anyway

https://www.joelotter.com/posts/2026/09/make-it-anyway/
47•JayOtter•40m ago•14 comments

Dimit – warm a Mac screen to pure red and pin the backlight against PWM

https://github.com/azakapro/dimit
2•azakapro•40m ago•0 comments

Show Us the Wonder! Where Is Your Wonder?

https://www.rosalux.de/en/news/id/39794/show-us-the-wonder-where-is-your-wonder
2•jruohonen•41m ago•0 comments

Resting electronic device on bare skin risks disfiguration due to heat

https://bmjgroup.com/resting-electronic-device-on-bare-skin-risks-disfiguration-due-to-heat-docto...
2•giuliomagnifico•41m ago•0 comments

CobaltC Semantic Compiler

https://github.com/strawberry9/CobaltC-Semantic-Compiler
2•SilentLambda•43m ago•0 comments

Nvidia in talks to invest in Anthropic's mega IPO

https://www.reuters.com/legal/transactional/nvidia-talks-invest-anthropics-mega-ipo-sources-say-2...
3•JumpCrisscross•44m ago•0 comments

Crypto farm in Mexican mountains puts spotlight on cartel funding

https://www.reuters.com/world/americas/hidden-crypto-farm-mexican-mountains-puts-spotlight-cartel...
8•JumpCrisscross•45m ago•0 comments