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

Lessons from a High-Fertility Subculture

https://worksinprogress.co/issue/chabad-life/
1•surprisetalk•1m ago•0 comments

Ingesting Postgres Shards into a Data Warehouse with Kafka and Debezium

https://engineering.touchbistro.com/ingesting-postgres-shards-into-a-redshift-data-warehouse-with...
1•3booda•1m ago•0 comments

Google's AI and Economy Atlas v1.0: Mapping Gemini Usage in the Economy [pdf]

https://ai.google/static/documents/GoogleATLASv1.pdf
1•gilbetron•2m ago•1 comments

Is open-weight AI banned yet?

https://isopenweightaibannedyet.com/
1•kartikarti•2m ago•0 comments

Show HN: NoSignups – directory of open-source tools that run in-browser

https://nosignups.net
1•BraveOPotato•3m ago•0 comments

Robot snakes searched for Venezuela earthquake survivors in collapsed buildings

https://arstechnica.com/gadgets/2026/07/robot-snakes-searched-for-venezuela-earthquake-survivors-...
1•Brajeshwar•4m ago•0 comments

Sometimes Being First Means Seeing the End Before Anyone Else

https://www.quantamagazine.org/jacob-tsimerman-wins-2026-fields-medal-for-andre-oort-conjecture-p...
1•artninja1988•5m ago•0 comments

A free, browser-based soccer management SIM league built by a solo dev

https://www.simulationpremierleague.com/
1•Beaviss•7m ago•1 comments

Our PS5 Bounty

https://fulu-foundation.ghost.io/why-cant-we-run-ai-on-gaming-consoles-announcing-our-ps5-bounty/
2•bilekas•7m ago•0 comments

I'm Running a Programming Contest

https://eieio.games/blog/im-running-the-icfp-programming-contest/
1•speckx•8m ago•0 comments

LLMs can hide text in other text of the same length

https://arxiv.org/abs/2510.20075
1•dash2•9m ago•0 comments

Wreckage of Pan Am plane that shaped aviation safety found 74 years on

https://www.bbc.com/news/articles/cdrvyllxj71o
2•signa11•9m ago•0 comments

User Journey Mapping: We Want It to Be Shit

https://pawelbrodzinski.substack.com/p/user-journey-mapping-we-want-it-to
1•flail•9m ago•0 comments

Show HN: Closedloop – isolated, temporary email for closed groups, on your cloud

https://closedloop.email
1•mmaarrccoo•10m ago•0 comments

Show HN: Open-Source for AI tool status checker

https://notjustyou.dev
1•dobby_lee•11m ago•0 comments

ICFP Programming Contest 2026

https://icfpcontest2026.com/
1•gregsadetsky•11m ago•0 comments

Ten Thousand Agents (2025)

https://notes.npilk.com/ten-thousand-agents
2•npilk•12m ago•0 comments

The Coalition of the Embarrassed

https://vincenttauzia817111.substack.com/p/the-coalition-of-the-embarrassed
1•andsoitis•14m ago•0 comments

Show HN: AI tool for learning Python from scratch

https://github.com/KubiKDB/AI-Tools-For-Learning
1•superquizonline•14m ago•0 comments

Show HN: Static AI artifact platform for own AWS account

https://github.com/michidk/shimesu
1•michidk•15m ago•0 comments

Facebook Verified

https://about.fb.com/news/2026/07/introducing-facebook-verified/
1•ChrisArchitect•15m ago•0 comments

Rick the Rat rides the subway to NYC Restaurant Week restaurants

https://nycrestaurantweek.app
1•chadnewbry•16m ago•0 comments

Oracle drops 1,449 security patches like it's the new normal

https://www.theregister.com/security/2026/07/23/oracle-drops-1449-security-patches-like-its-the-n...
2•oogali•17m ago•0 comments

AI Study Workspace

https://www.unifeyn.app/
1•securemepro•17m ago•0 comments

The Fediverse Was Right

https://blog.lvmbdv.dev/posts/the-fediverse-was-right/
1•speckx•18m ago•0 comments

The Fabled Flatbreads of Uzbekistan

https://www.aramcoworld.com/articles/2015/the-fabled-flatbreads-of-uzbekistan
1•jxub•18m ago•0 comments

All PlayStation Network services are experiencing issues

https://status.playstation.com
2•kmfrk•20m ago•0 comments

Government orders GitHub to remove Bluetooth-based chat app Bitchat: Jack Dorsey

https://www.thehindu.com/news/national/government-orders-github-to-remove-bluetooth-based-chat-ap...
4•rootkea•20m ago•0 comments

Whack-a-drone

https://www.theverge.com/report/969725/fcc-drone-ban-odyssey-robot-galiview-etak-randolph-howard-...
1•Brajeshwar•20m ago•0 comments

Built a new community for people who love sharing and improving ideas

https://old.reddit.com/r/PitchYourIdeas/
1•ImOnHere•22m ago•0 comments