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•12mo ago

Comments

panstromek•12mo 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•12mo 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•12mo 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_•12mo 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_•12mo 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•12mo 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•12mo 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

Can you stop beans from making you gassy?

https://www.seriouseats.com/how-to-reduce-bean-gas-tested-11883862
1•jstrieb•1m ago•0 comments

Show HN: The Order of the Agents – Make Codex and Claude Create the Perfect PRD

https://github.com/btahir/agent-order
1•bilater•3m ago•0 comments

RFC: Oden: The Server-First, JavaScript-Esque Runtime

https://rfchub.com/phobos/rfc5-oden-the-server-first-javascript-esque-runtime
1•tlhunter•7m ago•0 comments

The U.K. Smoking Ban Is Illiberal

https://www.theatlantic.com/ideas/2026/04/case-against-uk-smoking-ban/686949/
1•JumpCrisscross•7m ago•0 comments

Building Semantic Version Control in Rust

https://therohansharma.com/semantic-version-control-rust
1•lukastyrychtr•8m ago•0 comments

Logs say success. The system says otherwise

https://blog.bridgexapi.io/why-your-logs-say-everything-worked-even-when-it-didnt
1•Bridgexapi•9m ago•1 comments

Show HN: Good AI Task – a tool for asking AI what it can and can't do

https://goodaitask.com
1•jmt710•10m ago•0 comments

Nicholas Carlini – Black-hat LLMs [video]

https://www.youtube.com/watch?v=1sd26pWhfmg
6•simonebrunozzi•14m ago•0 comments

Show HN: Useknockout open source background removal API 40× cheaper -remove.bg

https://github.com/useknockout/api
3•tlorents•14m ago•0 comments

Show HN: AI Visibility Monitor – Track if your site gets cited by GPT/Claude

https://github.com/WorkSmartAI-alt/ai-visibility-monitor
3•balance006•15m ago•0 comments

Check Cloudflare D1, R2, Workers usage – see remaining limits for today/month

https://dialtoneapp.com/cloudflare
3•fcpguru•17m ago•1 comments

LLM-Rosetta: Zero-Dep API Translator for OpenAI, Anthropic, Google and Streaming

https://github.com/Oaklight/llm-rosetta
2•Oaklight•21m ago•0 comments

Artifacts Are Alive (and Photographs Are Dead)

https://worksonmymachine.ai/p/artifacts-are-alive-and-photographs
3•Stwerner•23m ago•1 comments

Show HN: Mapping Sonnet's thinking process via flame charts

https://adamsohn.com/lambda-variance/
2•dataviz1000•24m ago•0 comments

You're about to feel the AI money squeeze

https://www.theverge.com/ai-artificial-intelligence/917380/ai-monetization-anthropic-openai-token...
4•negura•24m ago•1 comments

Adding a team was the wrong strategic decision

https://learnings.aleixmorgadas.dev/p/adding-a-team-was-the-wrong-strategic
2•milkglass•25m ago•0 comments

The Stanford Freshmen Who Want to Rule the World

https://www.theatlantic.com/ideas/2026/04/stanford-students-power/686920/
5•apparent•27m ago•1 comments

Zerodep: Performant single-file, zero-dep Python modules (protobuf, YAML, etc.)

https://github.com/Oaklight/zerodep
2•Oaklight•31m ago•0 comments

Self-Hosted AI Red Team Tools

https://aetherverseintel.gumroad.com/l/vpzqnk
2•valuria•35m ago•1 comments

Agentic AI Chip Design Built a Full RISC-V Core

https://spectrum.ieee.org/ai-chip-design
2•rbanffy•36m ago•0 comments

Microsoft Reportedly Looking at Rebasing Azure Linux on Fedora

https://www.phoronix.com/news/MS-Azure-Linux-Fedora-Based
3•rbanffy•37m ago•0 comments

With TPU 8, Google Makes GenAI Systems Better, Not Just Bigger

https://www.nextplatform.com/compute/2026/04/24/with-tpu-8-google-makes-genai-systems-much-better...
3•rbanffy•37m ago•0 comments

Revocation of X.509 Certificates

https://blog.apnic.net/2026/04/24/revocation-of-x-509-certificates/
2•jandeboevrie•38m ago•0 comments

Show HN: Auto lock your Mac via phone proximity (No Apple Watch)

4•dabbygabby•39m ago•2 comments

America's Geothermal Breakthrough Could Unlock a 150-Gigawatt Energy Revolution

https://oilprice.com/Alternative-Energy/Geothermal-Energy/Americas-Geothermal-Breakthrough-Could-...
7•sleepyguy•39m ago•0 comments

The Nintendo Switch Switch (2019)

https://blog.cynthia.re/post/nintendo-switch-ethernet-switch
2•birdculture•40m ago•0 comments

Show HN: A faster, drop-in replacement for Tailscale's DERP relay

https://hyper-derp.dev/blog/hyper-derp-announcement/
4•KRuskowski•41m ago•1 comments

Show HN: Phinite – The OS layer (eval, observe, govern, A2A native)

https://www.phinite.ai/
2•PhiniteAI•43m ago•0 comments

Show HN: Perfect Fit – A minimalist B&W timing puzzle

https://play.google.com/store/apps/details?id=com.FathaGames.PerfectFit&hl=en_US
2•mrfatha•44m ago•0 comments

#009: The Flavor of the AI Interface

https://metedata.substack.com/p/009-the-flavor-of-the-ai-interface
2•young_mete•46m ago•0 comments