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

Show HN: I Built a Carbles Game

https://carbles.app/
1•bmcd•1m ago•0 comments

Trump administration has spent nearly $4B to cancel offshore wind farms

https://techcrunch.com/2026/08/07/trump-administration-has-spent-nearly-4b-to-cancel-offshore-win...
1•higginsniggins•2m ago•0 comments

Show HN: Zero-token memory retrieval for Pi

https://github.com/skorotkiewicz/zero-mem
1•modinfo•2m ago•0 comments

(Warren) Buffett indicator – a measure of valuations

https://en.wikipedia.org/wiki/Buffett_indicator
1•gurjeet•3m ago•0 comments

Simon Claims Polynomial-Time Quantum Algorithm for Lattice Problems

https://postquantum.com/security-pqc/simon-quantum-algorithm-lattice-pqc/
1•cevi•5m ago•0 comments

Timeline of the OpenAI accidental attack against Hugging Face

https://simonwillison.net/2026/Aug/7/openai-timeline/
1•bonsai_spool•6m ago•0 comments

Debugging Information for Inlined Functions

https://lwn.net/Articles/1083985/
1•pykello•6m ago•0 comments

Troxler's Fading

https://en.wikipedia.org/wiki/Troxler%27s_fading
2•thunderbong•12m ago•0 comments

Tearable UI

https://pushmatrix.github.io/tearable/
1•yen223•12m ago•0 comments

Towards a Risk Assessment of Malicious Skill Files in Coding Agents

https://arxiv.org/abs/2608.05223
1•sbulaev•12m ago•0 comments

I got a browser running inside the terminal and let Claude Code control it

https://www.reddit.com/r/vibecoding/comments/1vifa9f/i_got_a_browser_running_inside_the_terminal_...
1•syumei•13m ago•0 comments

A browser golf career SIM with no back end, just LocalStorage

https://www.rainydaygc.com/
1•mdstrobe•16m ago•0 comments

I'm Pulling ColorCopy from the macOS App Store

https://www.abeautifulsite.net/posts/im-pulling-colorcopy-from-the-macos-app-store/
2•claviska•18m ago•0 comments

AI struggles to patch vulns without adult supervision

https://www.theregister.com/ai-and-ml/2026/08/06/ai-struggles-to-patch-vulns-without-adult-superv...
3•Bender•26m ago•0 comments

'Humans will be a rounding error on the internet' says Cloudflare exec

https://www.theregister.com/networks/2026/08/07/humans-will-be-a-rounding-error-on-the-internet-s...
4•Bender•27m ago•0 comments

The Bit Player: My Father with Steve Zissou

https://www.theparisreview.org/blog/2026/07/27/the-bit-player-my-father-with-steve-zissou/
2•Thevet•28m ago•0 comments

Creative Slack

https://herbertlui.net/creative-slack/
2•herbertl•28m ago•0 comments

Skip the Punishment

https://nik.art/skip-the-punishment/
2•herbertl•29m ago•0 comments

NASA to keep its 48-year-old Voyager 2 probe running for yet another year

https://www.space.com/space-exploration/voyager/nasa-figured-out-how-to-keep-its-48-year-old-voya...
3•wglb•30m ago•0 comments

This Filesystem Is Born to Fail

https://hackaday.com/2026/08/07/this-filesystem-is-born-to-fail/
2•tambourine_man•30m ago•0 comments

Complexity Budget

https://htmx.org/essays/complexity-budget/
2•andai•45m ago•0 comments

Show HN: Salestrics – An open MCP server and CRM for AI-native revenue teams

https://www.salestrics.com/
1•abuhl98•47m ago•0 comments

Waymo should be afraid of Uber

https://taikhooms.substack.com/p/a953443f-0ecb-41c3-88d9-c7bdadcbace0
2•Taikhoom2010•55m ago•0 comments

An ultramassive white dwarf half Earth's size may hold a rare oxygen-neon core

https://phys.org/news/2026-08-ultramassive-white-dwarf-earth-size.html
3•wglb•57m ago•1 comments

Mushroom behind 'tiny people' hallucinations identified

https://phys.org/news/2026-08-qa-mushroom-tiny-people-hallucinations.html
3•wglb•59m ago•1 comments

Now Am29000 emulator in JavaScript with machine code windowed OS from 1996

https://nanochess.org/am29000_emulator.html
2•nanochess•59m ago•1 comments

An AppSec checklist for when finding vulnerabilities is the cheap part

https://konvu.com/checklists/ai-application-security
1•paulbleicher•1h ago•1 comments

The Nixpkgs core team has disbanded

https://discourse.nixos.org/t/the-nixpkgs-core-team-has-disbanded/79413
69•Meleagris•1h ago•17 comments

Mitsubishi joins the humanoid robot race, at a 1k unit per month pace

https://electrek.co/2026/08/07/mitsubishi-joins-the-humanoid-robot-race-at-a-1000-unit-per-month-...
3•Bender•1h ago•0 comments

Stanford CS Student Veers Off Beaten Path to Pursue Stanford Degree

https://www.instagram.com/reel/DbtCfCGxwPd/
3•liamnorm•1h ago•0 comments