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

Why Is It Bad to Use Fallacies on Purpose?

https://blog.apaonline.org/2026/11/24/why-is-it-bad-to-use-fallacies-on-purpose/
1•Tomte•2m ago•0 comments

AccessDPRK

http://mynorthkorea.blogspot.com/
1•Tomte•2m ago•0 comments

The Commodore logo in pure CSS, from its 1965 construction card

https://github.com/tanaydin/c64Logo
1•tanaydinsirin•3m ago•0 comments

Effective Swarm Riding for Engineers

https://www.paradigm.xyz/writing/swarms
1•bluesilver07•9m ago•0 comments

What is an MCP gateway, and when do you need one?

https://izylifesolutions.com/articles/what-is-an-mcp-gateway-and-when-you-need-one/
1•giuseppecassata•12m ago•0 comments

Linguists explain why some words sound like what they mean

https://www.uio.no/english/research/research-news/articles/2026/why-does-the-word-huge-sound-so-l...
1•giuliomagnifico•13m ago•0 comments

A Programming Style Guide

https://github.com/facundoolano/style-guide
2•facundo_olano•16m ago•1 comments

Treasury CIO Is Vibe Coding a 'Civilization' Clone During Treasury Dept. Hack

https://www.404media.co/sam-corcos-legatum-treasury-cio-is-vibe-coding-a-civilization-clone-durin...
2•thm•16m ago•0 comments

What LLMs Do to PostgreSQL and DBAs

https://www.depesz.com/2026/11/09/what-llms-do-to-postgresql-and-dbas/
1•0x54MUR41•17m ago•0 comments

Telegram restricts message formatting for premium users

2•dimamik•18m ago•0 comments

Generalized Riemann Hypothesis proof in Lean 4, in 76k lines (down from 17M)

https://leanprover.zulipchat.com/#narrow/channel/658556-Riemann-Hypothesis/topic/Cleaning.20up.20...
2•birdculture•23m ago•0 comments

Show HN: Memora – self-hosted, file-first personal AI assistant

https://github.com/lian84/memora
1•lian84•31m ago•0 comments

Show HN: Open Deal Kit – free agents for the steps of buying a business

https://github.com/devaland-ai/open-deal-kit
1•devaland•35m ago•0 comments

Ispromptsafe.com

https://ispromptsafe.com
1•traktorn•35m ago•0 comments

Show HN: HobbyLM-Embed, a from-scratch embedding model that runs locally

https://huggingface.co/harims95/hobbylm-embed-140m
1•prajhan1•37m ago•0 comments

Why the Future Doesn't Need Us (2000)

https://www.wired.com/2000/04/joy-2/
2•sph•41m ago•0 comments

Skala (By the Creator of iStat Menus)

https://bjango.com/mac/skala/
1•frizlab•43m ago•0 comments

An open laptop, a crowded Orange Line train, and a tipster

https://www.niemanlab.org/2026/11/an-open-laptop-a-crowded-orange-line-train-and-a-tipster/
1•thm•44m ago•0 comments

The Mick Jagger Interview [video]

https://www.youtube.com/watch?v=qiBgj8pk0fA
1•thm•45m ago•0 comments

How we got GPUI into the browser [video]

https://www.youtube.com/watch?v=4fj9CynHK64
1•vovavili•50m ago•0 comments

MikroTik: Forcing DNS through Pi-hole with automatic failover

https://rz01.org/routeros-pihole/
1•exitnode•50m ago•0 comments

Intel One Mono font

https://github.com/intel/intel-one-mono
25•saikatsg•51m ago•15 comments

Interview: On OpenStreetMap Syria

https://blog.opencagedata.com/post/openstreetmap-interview-osm-syria
1•altilunium•53m ago•0 comments

jjack: A CLI and TypeScript library to help jj users manage PR stacks on GitHub

https://github.com/david-crespo/jjack
1•g0xA52A2A•55m ago•0 comments

Codex CLI gives its coding agent 26 ChatGPT account tools by default

https://getbelay.dev/reports/codex-apps/
2•allexsendev•55m ago•1 comments

Pullgym – An RL and eval env that scores agents on honest error bars

https://github.com/kekeandzeyu/pullgym
1•kekeandzeyu369•55m ago•0 comments

Gridpin – Offline geocoder, a country in a file

https://gridpin.dev/
2•altilunium•56m ago•0 comments

A Python course in the browser from print() to a tiny GPT

https://paulspythoncourse.com/
3•bouwles•57m ago•0 comments

AI Has Changed VulnCheck's Exploit Delivery

https://www.vulncheck.com/blog/ai-has-changed-vulncheck
1•albin0lobster•59m ago•0 comments

Building an Internal Company Agent: What We Got Right and Wrong

https://oioannou.com/blog/internal-company-agent-lessons/
1•fagnerbrack•1h ago•0 comments