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: Memcode AI goes open source with Claude Code inspired coding agent

https://github.com/memcode-ai/memcode
2•timerwin•1m ago•0 comments

Hello

1•pranavgawas-pro•8m ago•0 comments

Act like it is science

https://marginalrevolution.com/marginalrevolution/2026/08/act-like-it-is-science.html
1•thedreammachine•13m ago•0 comments

md-whispr

https://twitter.com/stanlalanne/status/2086675864276566196
1•sharpshootersl•16m ago•1 comments

AI Coding Clients Are Reading Each Other's Personal Instructions

https://runtimewire.com/article/ai-coding-clients-are-reading-each-other-s-personal-instructions
1•ryanmerket•19m ago•0 comments

Copy-paste email templates for chasing overdue invoices

https://invoice-email-template.surge.sh/
1•lmv_builds•24m ago•0 comments

Take-home assessments to be banned in school AI overhaul

https://www.smh.com.au/national/nsw/take-home-assessments-to-be-banned-in-radical-hsc-overhaul-20...
1•Alien1Being•24m ago•0 comments

HCCL: Collective Communication for Meta Training and Inference Accelerators

https://arxiv.org/abs/2608.00358
1•matt_d•25m ago•0 comments

Migrate from GitHub Container Registry (GHCR) to Vercel Container Registry (VCR)

https://vercel.com/kb/guide/migrate-ghcr-to-vcr
1•flashbrew•25m ago•0 comments

Docker Compose concepts map to Vercel

https://vercel.com/kb/guide/docker-compose-concepts-on-vercel
1•flashbrew•26m ago•0 comments

Training neural nets on Apple Neural Engine via reverse-engineered private APIs

https://github.com/maderix/ANE
1•dyzone•31m ago•0 comments

Show HN: Blueferry, iMessage on Linux

https://github.com/erikwb/blueferry
2•erikwb•32m ago•0 comments

The Philippines' big offshoring industry is growing despite AI

https://www.economist.com/asia/2026/08/06/the-philippines-big-offshoring-industry-is-growing-desp...
3•nlpnerd•32m ago•1 comments

A second-hand bookstore's mysterious orders

https://www.rnz.co.nz/life/books/wellington-second-hand-book-store-s-mysterious-orders
2•tigerlily•34m ago•0 comments

The Rise of the Unstoppable American Tourist

https://www.wsj.com/economy/the-rise-of-the-unstoppable-american-tourist-485f025b
1•thm•37m ago•0 comments

How do programming languages impact token efficiency and correctness?

https://danluu.com/pl-tokens/
1•matt_d•41m ago•0 comments

As AI grips world, the thrill of collecting vintage computers is growing

https://apnews.com/article/vintage-computers-silicon-valley-technology-apple-history-43d28a08d77c...
2•geox•45m ago•0 comments

Ask HN: TS Compiler

3•apple_george•49m ago•0 comments

Trellis – A Workspace Management Tool for Multi-Package Gleam Projects

https://github.com/tylerbutler/trellis
3•TheWiggles•51m ago•0 comments

Spy cameras on Navy drones sent data to China

https://www.telegraph.co.uk/news/2026/08/09/spy-cameras-on-navy-drones-secretly-sent-data-to-chin...
4•NewCzech•54m ago•0 comments

New AI models still reproduce racial and gender stereotypes in medicine

https://news.flinders.edu.au/blog/2026/08/09/new-ai-models-still-reproduce-racial-and-gender-ster...
4•giuliomagnifico•55m ago•1 comments

Harry Potter fans force diversion of power link to avoid 'Dobby's grave'

https://www.bbc.com/news/articles/cy8mgpl27dpo
2•pibaker•58m ago•0 comments

Ask HN: Is this normal HN ranking?

2•unclebucknasty•1h ago•1 comments

Long-Run Effects of H-1B Immigration on the U.S. Economy (July 2026)

https://www.nber.org/papers/w35560
26•ryzvonusef•1h ago•4 comments

Daily global sea surface temperatures break records for the time of year

https://climate.copernicus.eu/copernicus-marine-and-copernicus-climate-change-daily-global-sea-su...
4•jacquesm•1h ago•0 comments

Horolog – a self-hosted, open-source alternative to Reclaim.ai

https://github.com/ujjwalredd/horolog
2•ujjwalreddyks•1h ago•0 comments

Auto mode is now the default in Claude Code

https://claude.com/blog/auto-mode-default-in-claude-code
47•sbehere•1h ago•7 comments

DisplayWave: A simple and free tool for Mac external monitor control

https://github.com/kah-ve/DisplayWave
2•warpbin•1h ago•1 comments

Negative-Interest Tech Debt

https://jesseduffield.com/Negative-interest-tech-debt/
2•Tomte•1h ago•0 comments

FieldFleet – a self-hostable field operations platform

https://taskfleetai.github.io/fieldfleet/
2•iguardo•1h ago•0 comments