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

GPT-5.6 vs. Claude Fable 5 for Physical AI, which performs best?

https://juliahub.com/blog/frontier-models-physical-ai-evaluation
1•ChrisRackauckas•3m ago•0 comments

Chamath Palihapitiya on X: "Tricking US Gov protect frontier labs is a mistake

https://twitter.com/chamath/status/2079457219892871458
1•bilsbie•4m ago•0 comments

The Fake Influencers Selling Wellness on Your Feed

https://www.nytimes.com/video/technology/100000011001849/ai-influencers-health-supplements-fake-a...
1•pretext•6m ago•0 comments

The Rise of Fashion Slop

https://www.nytimes.com/2026/07/21/opinion/fashion-slop-boring.html
1•pretext•8m ago•0 comments

Show HN: Friday – a local-first desktop AI assistant that can use tools

https://friday.haraldbregu.com/
1•haraldbregu•11m ago•0 comments

RLHF and Post-Training Course by Nathan Lambert

https://rlhfbook.com/course
1•ankitg12•13m ago•0 comments

Content Is King (1996)

https://web.archive.org/web/20010126005200/http://www.microsoft.com/billgates/columns/1996essay/e...
1•tosh•13m ago•0 comments

Mpathic's First Sale

https://infiniteloop.media/p/the-first-customer-mpathic
1•natali_gray•14m ago•0 comments

Calio – Instantly extract key information from insurance SEC filings

https://chromewebstore.google.com/detail/sec-edgar-filings-extract/mjlmlhdhcdlohompclddmcnpgdhjgeja
1•mehbish•15m ago•1 comments

Don't add a read replica until you've read this

https://incident.io/blog/dont-add-a-read-replica-until-youve-read-this
10•shintoist•18m ago•0 comments

Washington blocks Kalshi's sports prediction market over state gambling law

https://www.theblock.co/post/409011/washington-kalshi-preliminary-injunction
2•thm•20m ago•1 comments

Researchers Detect SARS-CoV-2 Components in Hamsters 365 Days After Infection

https://www.biorxiv.org/content/10.64898/2026.07.19.739454v1
1•thenerdhead•23m ago•0 comments

Is AI Curing the Loneliness Epidemic, or Profiting from It?

https://mrkt30.com/is-ai-curing-the-loneliness-epidemic-or-profiting-from-it/
2•technewssss•23m ago•0 comments

Open Meditron: An Auditable Pipeline for Clinical LLMs

https://arxiv.org/abs/2605.16215
1•instagraham•26m ago•0 comments

POSIX on WebAssembly, or "What is an OS anyway" [video]

https://www.youtube.com/watch?v=O0buO7Brqlo
1•indrora•27m ago•0 comments

Elixir Cluster 101

https://jola.dev/posts/elixir-cluster-101
1•shintoist•27m ago•0 comments

The Age of Comprehension Debt

https://medium.com/@efeminella/the-age-of-comprehension-debt-d16ce9f776bd
2•ankitg12•28m ago•0 comments

A Locomotive Named Big Boy Is Making Grown Men Cry

https://www.wsj.com/lifestyle/a-locomotive-named-big-boy-is-making-grown-men-cry-0f965e12
1•impish9208•28m ago•1 comments

Mechanism of Vibe Coding

https://neural-nexus.net/mechanism-constraints/
1•ankitg12•29m ago•0 comments

GitHub Git github.com: Permission denied error with existing deploy keys

1•unixfox•30m ago•3 comments

Agentic-sage – a local board for parallel coding sessions (no auto-merge)

https://github.com/muslewski/agentic-sage
1•muslewski•31m ago•0 comments

Qnetic build largest test facility for 200 kWh flywheel energy storage

https://www.heise.de/en/news/Qnetic-build-world-s-largest-test-facility-for-200-kWh-flywheel-ener...
3•doener•32m ago•0 comments

AI Spend Is a Labor Cost Now

https://mamonas.dev/posts/ai-spend-labor-cost/
2•konmam•34m ago•0 comments

Essence of Architecture

https://www.ufried.com/blog/essence_of_architecture_4/
2•abrbhat•37m ago•0 comments

I reviewed 7 free AI tools for small businesses – feedback welcome

https://iaboost.es/
1•xibi•37m ago•0 comments

I coded from my phone while cycling from Berlin to Venice, here's my infra

https://github.com/flaviolivolsi/officina
2•flaviolivolsi•38m ago•0 comments

How Kim Kardashian Indirectly Brought Home Nedjemankh (2021)

https://egyptianstreets.com/2021/10/25/how-kim-kardashian-indirectly-brought-home-nedjemankh/
1•thunderbong•40m ago•0 comments

Will YC ever increase its capital on offer?

1•ndrh•40m ago•1 comments

Bright Data ltd: "Smart TV"s become a part of a bot-net

https://gts.cryptography.dog/@ansuz/statuses/01KY20YH74D2QD3FJMQFMGY4FY
1•ColinWright•41m ago•0 comments

Escape IntelliJ: Scala and Kotlin LSPs on Emacs Eglot

https://jointhefreeworld.org/blog/articles/emacs/emacs-eglot-scala-kotlin/index.html
1•jjba23•41m ago•0 comments