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

A small, self-hosted HTTP API that turns HTML, URLs and JSON into PDF/A-3a

https://pdf-ua-api.bambamboole.com/
1•robin_reala•1m ago•0 comments

Show HN: Meadow Mind – a 7B diffusion LLM plays Gym games with zero training

https://github.com/Hey-Meadow/meadow-mind
1•akaiHuang•1m ago•0 comments

Flock Blocks Itself from Wayback Machine: How Companies Can Erase Their History

https://ipvm.com/reports/flock-wayback
1•jhonovich•2m ago•0 comments

SplitShot

https://splitshot.co/
1•kolachalama•3m ago•0 comments

GeoLibre 1.0

https://geolibre.app/
2•jonbaer•3m ago•0 comments

Using biotelemetry to assess drone effects on whale sharks

https://esajournals.onlinelibrary.wiley.com/doi/10.1002/ecs2.70575
1•PaulHoule•3m ago•0 comments

CC-Ledger: Cost Controls for Claude Code

https://ccledger.dev
1•tejpalv•4m ago•1 comments

Beware the Benedict Bot

https://firstthings.com/beware-the-benedict-bot/
1•cratermoon•5m ago•0 comments

Insurers aren't the main villain of the U.S. health care system

https://www.noahpinion.blog/p/insurers-arent-the-main-villain-of
3•paulpauper•6m ago•0 comments

The $20 fix that solved traffic deaths

https://www.youtube.com/watch?v=tMBR3ur1egk
1•amai•6m ago•0 comments

The Progressive Movement, 1898-1914

https://arnoldkling.substack.com/p/the-progressive-movement-1898-1914
1•paulpauper•6m ago•0 comments

Show HN: SlopGuard, a GitHub App that quarantines AI slop PRs and issues

https://slopguard.app
1•blue-b•8m ago•0 comments

You can't fix a broken process by bolting AI on top of it

https://roganov.me/blog/token-irresponsibility/
2•IFC_LLC•8m ago•0 comments

Immigration Laws Are Made to Be Broken

https://www.betonit.ai/p/immigration-laws-are-made-to-be-broken
1•paulpauper•9m ago•0 comments

Following acquisition by OpenAI, Tart is still proprietary software

https://github.com/openai/tart/pull/1238
1•whimblepop•10m ago•0 comments

Every breaking change in the July MCP spec, and how to migrate

https://mcpmigrate.dev/blog/mcp-spec-2026-07-28-migration-guide
1•dougwalseth•12m ago•0 comments

How JPL Keeps the 13-Year-Old Curiosity Rover Doing Science

https://spectrum.ieee.org/curiosity-rover-jpl-mars-science
3•pseudolus•12m ago•0 comments

The Fifth Shift: Saronic's autonomous vessels are a revolution in naval warfare

https://arenamag.com/articles/the-fifth-shift
1•crescit_eundo•14m ago•0 comments

Anthropic Bulks Up Its Enterprise Partner Program Amid IPO Plans

https://www.wsj.com/cio-journal/anthropic-bulks-up-its-enterprise-partner-program-amid-ipo-plans-...
1•gmays•15m ago•0 comments

A key remapping daemon for Linux

https://github.com/rvaiya/keyd
1•joooscha•15m ago•1 comments

Twenty Year Old Unicorn Goes AI-First Without Mass AI Layoffs

https://shiftmag.dev/ai-first-izabel-jelenic-infobip-10156/
2•dxs•16m ago•0 comments

WWDC26: Run local agentic AI on the Mac using MLX [video]

https://www.youtube.com/watch?v=wykPErJ8M-8
3•jorisw•18m ago•1 comments

Reddit's home screen now forces a "for you" feed that cannot be turned off

https://old.reddit.com/r/bugs/comments/1u26ydd/comment/oqvhjvc/
4•jazzypants•18m ago•1 comments

Show HN: Tiny project memory for coding agents

https://github.com/Seven128/project-tiny-context-harness
1•SevenQin•18m ago•0 comments

WWDC 2026: Five Things That Matter

https://systemhyperlink.com/wwdc-2026-five-things-that-actually-matter/
2•timothybsmith•19m ago•0 comments

Improved Tracking of Brownian Milk Globules

https://chillphysicsenjoyer.substack.com/p/improved-tracking-of-brownian-milk
1•crescit_eundo•20m ago•0 comments

Nordstjernen Web Browser 1.0.3

https://github.com/nordstjernen-web/nordstjernen/releases/tag/1.0.3
2•andreasrosdal•21m ago•0 comments

Microsoft restricts Claude Fable for employees over data retention concerns

https://www.theverge.com/report/947575/microsoft-claude-fable-5-restricted-internally
5•speckx•21m ago•0 comments

Elixir for a Bluesky DataPlane: the choice we didn't expect

https://bitcrowd.dev/why-elixir-bluesky-dataplane/
2•s3cur3•22m ago•0 comments

Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

https://arxiv.org/abs/2606.03979
1•gmays•22m ago•0 comments