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

EPL – a programming language where every keyword is plain English

https://www.google.com/url?q=https://github.com/abneeshsingh21/EPL&source=gmail&ust=1780737352628...
1•abneesh_builds•1m ago•0 comments

N8n-style tool chains for AI agents – custom design, or reinforced by what works

https://github.com/pssah4/stigmergy
1•pssah4•2m ago•0 comments

Customize keyboard shortcuts in Claude Code

https://code.claude.com/docs/en/keybindings
1•ankitg12•3m ago•0 comments

Show HN: GoPortfolio – Portfolio Tracking and Retirement Planning Platform

https://goportfolio.cloud/
1•enklopper•9m ago•0 comments

Show HN: Lowfat – pluggable CLI filter that saved 91.8% of my LLM tokens

https://github.com/zdk/lowfat
1•zdkaster•11m ago•0 comments

Some billionaires pay too little tax

https://economist.com/finance-and-economics/2026/06/04/some-billionaires-pay-too-little-tax
2•andsoitis•13m ago•2 comments

Unicode Cyrillic Letter Multiocular O

https://en.wikipedia.org/wiki/Cyrillic_O_variants
4•s3tz•14m ago•2 comments

Bit Rot Doesn't Always Increase Entropy

https://bughunters.google.com/blog/bit-rot-doesnt-always-increase-entropy
2•ddos•16m ago•0 comments

Robert Crumb: from American counterculture to the French countryside

https://www.artbasel.com/news/robert-crumb-cartoonist-provence
1•Michelangelo11•17m ago•0 comments

Samsung to Refund 20% of All Purchases in South Korea in Onuri Gift Certificates

https://en.sedaily.com/finance/2026/06/05/samsung-to-refund-20-percent-of-purchases-in-onnuri-gift
1•Markoff•20m ago•1 comments

We Shipped a Feature in 2 Days That Was Scoped for a Week (Week 4 Friday Rou

https://theaileverageweekly.com/posts/how-we-shipped-a-feature-in-2-days-that-was-scoped-for-a-we...
1•talvardi7•21m ago•0 comments

Supply chain attack alert: .github/setup.js

3•antihero•22m ago•0 comments

A faster bump allocator for rust

https://owen.cafe/posts/stumpalo/
3•414owen•25m ago•0 comments

Show HN: Concord – Discord in Terminal

https://github.com/chojs23/concord
2•n3ozz•26m ago•0 comments

Pulling a New Proof from Knuth's Fixed-Point Printer

https://research.swtch.com/fp-knuth
1•KnuthIsGod•26m ago•0 comments

TSMC working hard to meet chip demand, would 'like' to hike prices

https://www.reuters.com/world/china/tsmc-boss-upbeat-outlook-ai-boom-shows-no-sign-easing-2026-06...
3•giuliomagnifico•27m ago•0 comments

Memory Still Matters in the Age of ChatGPT

https://www.dcaulfield.com/memorisation-chatgpt
1•cauliflower99•30m ago•0 comments

Japan proposes rebuilding ageing nuclear plants to meet power demand

https://www.reuters.com/business/energy/japan-plans-rebuild-ageing-nuclear-plants-boost-power-sup...
4•leonidasrup•33m ago•0 comments

Nikon D3200 IR Conversion

https://mitxela.com/projects/d3200_ir_conversion
1•Lunar5227•34m ago•0 comments

Chat is infinite scroll for work

https://www.dtlarson.com/thousand-prompts
2•derek-larson•34m ago•0 comments

Trump directs hundreds of millions of dollars to support coal

https://www.reuters.com/legal/litigation/trump-unveil-700-million-coal-support-plan-using-emergen...
6•leonidasrup•38m ago•1 comments

Show HN: Run Llama.cpp In-Process from Java with Project Panama FFM

https://deemwar-products.github.io/mochallama/
4•deemwar•39m ago•0 comments

Debris with telemetry: cybersecurity and Kessler syndrome

https://www.thespacereview.com/article/5234/1
1•fanf2•40m ago•0 comments

Anthropic Urges Global Pause in AI Development, Flags 'Self-Improvement' Risk

https://www.wsj.com/tech/ai/anthropic-urges-global-pause-in-ai-development-flags-self-improvement...
7•andsoitis•41m ago•3 comments

Show HN: CLI for scoring OpenAPI for LLM legibility

https://github.com/jentic/jentic-api-scorecard
3•seanblanchfield•46m ago•0 comments

Clodo (Not Claudo)

https://en.wikipedia.org/wiki/CLODO
1•largolagrande•47m ago•1 comments

XML and JSON in 2026

https://www.tbray.org/ongoing/When/202x/2026/06/01/XML-and-JSON-in-2026
1•protomolecool•47m ago•0 comments

Show HN: LLM memory without context bleed; 100% precision vs. <10% vector search

https://tenureai.dev/
2•decorner•48m ago•1 comments

Entanglement Builds Space-Time. Now "Magic" Gives It Gravity

https://www.quantamagazine.org/entanglement-builds-space-time-now-magic-gives-it-gravity-20260603/
7•rbanffy•48m ago•1 comments

Magnetometers Power GPS-Free Indoor Positioning

https://spectrum.ieee.org/magnetometers-hidonix-astranav-gps-alternative
2•rbanffy•49m ago•0 comments