frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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

Basics of Film Financing

https://www.theentertainmentexpert.com/blog-2/mc3s3cmf1f5it5kweela85gw68mpv4
1•lispybanana•3m ago•0 comments

Open source toolkit to analyze your ChatGPT/Claude usage from exports

https://github.com/noah-chelednik/llm-export-analytics
1•chedai__•6m ago•0 comments

Gamification and Streaks Improve AI Developer Productivity

https://lobsterone.ai/blog/ai-developer-streaks-gamification/
1•ankitg12•7m ago•0 comments

Private Equity Woos Personal Injury Law Firms

https://news.bloomberglaw.com/business-and-practice/private-equity-woos-personal-injury-law-firms...
1•dbcooper•13m ago•0 comments

How we contain Claude across products

https://www.anthropic.com/engineering/how-we-contain-claude
1•dsr12•14m ago•0 comments

Russian censors target Visual Novel titles on Steam

https://xcancel.com/ebihimes/status/2059363728693608573
1•HelloUsername•15m ago•0 comments

Interactive Additive Synthesis Comic

https://melatonin.dev/additive-synth-comic/what-is-a-harmonic/
1•m_kos•17m ago•0 comments

Poverty Bayes: fitting million-parameter models for pennies with serverless MCMC

https://christopherkrapu.com/blog/2026/poverty-bayes-serverless-mcmc/
1•ckrapu•24m ago•0 comments

How should we think about Starship?

https://mceglowski.substack.com/p/how-should-we-think-about-starship
1•idlewords•25m ago•0 comments

Claude Code as a Daily Driver: Claude.md, Skills, Subagents, Plugins, and MCPs

https://arps18.github.io/posts/claude-code-mastery/
1•arps18•27m ago•0 comments

A locus-coeruleus model for LLM agents (phasic and tonic attention gain)

https://github.com/mrshanebarron/lc-attention
1•iampneuma•29m ago•0 comments

Hugh Broughton: The man designing more of Antarctica than anyone else

https://www.cnn.com/2026/05/25/style/antarctica-architecture-hugh-broughton
1•testfrequency•33m ago•0 comments

Build System Reworked

https://ziglang.org/devlog/2026/#2026-05-26
1•signa11•35m ago•0 comments

The underground mega tunnels redrawing the railway map of Europe

https://www.cnn.com/2026/05/26/travel/europe-rail-base-tunnels-alps
1•tkocmathla•36m ago•0 comments

How to Make xt850 Match xt 850

https://medium.com/@s_nikolaev/how-to-make-xt850-match-xt-850-2175e701fbfe
1•snikolaev•44m ago•0 comments

Self Hosted Jukebox with NFC Cards

https://www.pedaldrivenprogramming.com/2026/05/self-hosted-jukebox-with-nfc-cards/
2•Fudgel•47m ago•0 comments

Annotate PDF: A zero-server, privacy-first PDF annatator

https://annotatepdf.io/
1•prius-lab•52m ago•0 comments

Hows the weather? A theoretically self improving weather app

https://plc.vc/42z
1•pclark•54m ago•1 comments

Nine Crypto Whales Dominate Polymarket Disputes Worth Billions

https://www.bloomberg.com/news/videos/2026-05-26/nine-crypto-whales-dominate-polymarket-disputes-...
2•igortru•55m ago•1 comments

Show HN: Programming language demand index ranked by real job listings

https://www.datamatastudios.com/languages
1•datamatastudios•58m ago•0 comments

The AI Agent Harness: The Glue That Turns LLMs into Digital Workers

https://thingswithai.org/posts/ai-agent-harness
1•UtkarshPatel13•1h ago•0 comments

Ask HN: Is magnifica humanitas a big deal?

2•alonsovm44•1h ago•2 comments

•1h ago

Show HN: Tasmap – Canva for Maps

https://tasmap.app/
1•apolkingg8•1h ago•0 comments

Show HN: Stumbleback – StumbleUpon for the bookmarks you've been hoarding

https://chromewebstore.google.com/detail/stumbleback/fkmbjmmdkpfpcnmbgnpmnkhnhecieigk
1•jimsojim•1h ago•0 comments

Tell HN: Android Chrome deletes your browsing history silently

2•grehbies•1h ago•0 comments

The Other Side of On-Call

https://i0exception.substack.com/p/the-other-side-of-on-call
1•wapasta•1h ago•0 comments

Did the Pope use AI to write about the dangers of AI?

https://www.theverge.com/ai-artificial-intelligence/937801/pope-leo-xiv-magnifica-humanitas-ai-pa...
7•droidjj•1h ago•3 comments

An invisible problem in California housing

https://jonharris665470.substack.com/p/what-the-hell-are-we-building-here
1•Inspector_guy•1h ago•0 comments

Advancing Mathematics Research with AI-Driven Formal Proof Search

https://arxiv.org/abs/2605.22763
1•mrkn1•1h ago•0 comments