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

Who controls powerful AI? Anthropic has a plan for long after its leaders depart

https://www.reuters.com/technology/who-controls-powerful-ai-anthropic-has-plan-long-after-its-lea...
1•tartoran•35s ago•0 comments

Knicks Championship-Ring Phishing Test Was a Security Own Goal

https://brothke.medium.com/the-knicks-championship-ring-phishing-test-was-a-security-own-goal-e83...
1•benrothke•54s ago•0 comments

Apple launches M6 MacBook Pro and iMac, pitches faster on-device AI

https://www.reuters.com/business/retail-consumer/apple-launches-m6-macbook-pro-imac-pitches-faste...
1•tartoran•1m ago•0 comments

Marissa Mayer Can't Keep Pretending 'Gender Doesn't Matter'

https://www.404media.co/marissa-mayer-nyt-interview/
1•lladnar•2m ago•0 comments

An Inbox for Everything: Notes from Building One

https://zehfernandes.com/posts/an-inbox-for-everything
1•zehfernandes•3m ago•0 comments

Show HN: ADAP – An open protocol for AI Agent delegated authority

https://github.com/Hardalion/agent-delegated-authority
1•achardalias25•4m ago•0 comments

I built Tendbble AI – looking for feedback from the community

https://tendbble.ai/
1•Tendbble•5m ago•0 comments

MiniLake Is a Local Databricks API Emulator with SQL, Delta Lake and Spark

https://dmux.github.io/minilake/
1•kermatt•6m ago•0 comments

The New Food Movement

https://www.theatlantic.com/culture/2026/10/american-sustenance-omnivore-dilemma/688643/
1•Tomte•6m ago•0 comments

Agent Gateway in Bifrost: One gateway for models, tools and agents

https://www.getmaxim.ai/bifrost/blog/introducing-agent-gateway-in-bifrost-one-gateway-for-models-...
1•aanthonymax•7m ago•0 comments

Play Cyberpunk 2077 in the Browser

https://cyberpunk2077.lol/
2•tchanukvadze•9m ago•0 comments

Show HN: Spring AI Privacy Guardrails – PII, tool permissions, content checks

https://github.com/ultramancode/spring-ai-privacy-guardrails
2•ultramancode•10m ago•0 comments

Alibaba's Qwen AI caught trying to contact server in China

https://www.theregister.com/ai-and-ml/2026/10/26/alibabas-qwen-ai-caught-trying-to-contact-server...
3•p4ul•11m ago•0 comments

The Pentagon, the pressure is on to find a home for a new spaceport

https://arstechnica.com/space/2026/10/senior-commander-says-space-force-needs-new-spaceport-by-2030/
1•rbanffy•11m ago•0 comments

Show HN: Mouse-PHP a Minimalist PHP Framework with Good DX for Spas

https://github.com/drawfig/mouse-php
1•drawfig•11m ago•0 comments

The US Government Is Hiding Secret Court Ruling About How It Spies on Americans

https://www.wired.com/story/the-us-government-is-hiding-a-secret-court-ruling-about-how-it-spies-...
3•helterskelter2•12m ago•0 comments

Show HN: Commitverse – GitHub as a universe where every repo is a city

https://krapcys1-maker.github.io/commitverse/
1•krapcys•12m ago•0 comments

Hello? Where Is Everybody?

https://brainbaking.com/post/2026/10/hello-where-is-everybody/
2•Brajeshwar•12m ago•0 comments

Just put some HTML on the web

https://anderegg.ca/2026/10/26/just-put-some-html-on-the-web
2•Brajeshwar•12m ago•0 comments

Claude Code's Source Got Leaked. Here's What's Worth Learning

https://thoughts.jock.pl/p/claude-code-source-leak-what-to-learn-ai-agents-2026
2•joozio•13m ago•0 comments

Show HN: XodeVault, an end-to-end encrypted secrets vault you can self-host

https://xodevault-env-demo.onrender.com
1•LucioCarrera•14m ago•0 comments

Duckdb.net 1.5.6.1: Reading Data Up to 12× Faster

https://www.giorgi.dev/database/duckdb-net-1-5-6-1-data-reader-performance/
1•birdculture•14m ago•0 comments

Effects of Mind-Body Exercises on Pain in Chronic Nonspecific Low Back Pain

https://pmc.ncbi.nlm.nih.gov/articles/PMC13679579/
3•chavasorani•14m ago•0 comments

Show HN: Egres: A Postgres-compatible database for heavy, multi-tenant workloads

https://manishrjain.com/egres/
1•mrjn•14m ago•1 comments

Show HN: Discord-CLI – a headless Discord CLI that prints JSON and exits

https://github.com/1solomonwakhungu/discord-cli
1•1solomoniw•15m ago•0 comments

Smelt: An open-source, Neovim-like coding agent in Rust and Lua

https://smeltagent.dev/
2•rmarquis•17m ago•0 comments

As humans write less code: workloads shift from human to agent verification

https://www.metabase.com/blog/from-human-to-agent-verification
1•zazuke•17m ago•0 comments

Show HN: Bouncer, an MCP proxy that denies sends to addresses the agent read

https://github.com/Ezed9/mcp-bouncer
1•Nishit9•18m ago•0 comments

Prompt Patterns That Compound

https://patrickmccanna.net/grow-your-agentic-prompt-one-section-at-a-time/
1•0o_MrPatrick_o0•18m ago•0 comments

IMDB Alternatives

https://selfhostcat.com/imdb-alternative/
2•surprisetalk•18m ago•0 comments