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

The Book of the Subgenius

https://www.vagobond.com/the-book-of-the-subgenius/
1•ZguideZ•3m ago•1 comments

The AI Agent Era Is Here

https://anci.app/ezine/2026/05_AI_Edge_For_Leaders_Flipbook_May_ANCI.html
1•rajl•4m ago•0 comments

Microsoft Doubles Down on Controversial Quantum Computing Claims

https://www.science.org/content/article/doubling-down-controversial-claims-microsoft-accelerates-...
1•igortru•6m ago•0 comments

The Claude Agent SDK Settings That Matter in Production

https://daydr3am3rz.substack.com/p/the-claude-agent-sdk-settings-that
1•_day_dr3am3r_•6m ago•1 comments

Missing worker at Los Alamos National Laboratory found dead in remote forest

https://www.latimes.com/world-nation/story/2026-06-02/missing-worker-at-high-security-lab-in-n-m-...
1•sizzle•6m ago•0 comments

An open-source, browser-based E-ink planner builder

https://planner.mycompassconsulting.com/
1•DoItForTheXP•6m ago•0 comments

Rewald

https://github.com/Akira-AA83/rewald
1•akirasan•7m ago•0 comments

UK publishers can opt-out of Google's AI search

https://www.gov.uk/government/news/cma-secures-fairer-deal-for-publishers-and-improves-google-sea...
1•edent•7m ago•0 comments

Trump signs new order to shut down bank accounts of undocumented immigrants

https://finance.yahoo.com/economy/policy/articles/trump-signs-order-shut-down-225333740.html
2•sizzle•8m ago•0 comments

"There is probably a lot of resume fraud or kickback grifts within FAANG"

https://twitter.com/ctjlewis/status/2061853042979311832
1•MrBuddyCasino•8m ago•0 comments

Free Yourself from the Copilot Tax

https://www.kronkai.com/blog/free-yourself-from-the-copilot-tax
1•deadprogram•9m ago•0 comments

GitHub Copilot Pricing Change

https://github.com/orgs/community/discussions/197089
1•5701652400•11m ago•1 comments

I made Authfluent Co., my own business

https://authfluent-co.github.io/
1•fpsgp•12m ago•1 comments

Show HN: Podlite 2.0 – a block-based markup language with typed blocks

https://podlite.org/2026/5/26/1/podlite-2-0-released
1•zagap•14m ago•0 comments

Dragonfly Energy files lawsuit against YouTube reviewer Will Prowse

https://www.sec.gov/Archives/edgar/data/1847986/000149315226026754/form8-k.htm
3•bbrookshier•17m ago•1 comments

The most beautiful formula not enough people understand

https://www.youtube.com/watch?v=fsLh-NYhOoU
1•peter_retief•17m ago•0 comments

AI Agents Enable Adaptive Computer Worms

https://arxiv.org/abs/2606.03811
1•droidjj•18m ago•0 comments

Recent improvements to the type checker – Swift Compiler

https://forums.swift.org/t/recent-improvements-to-the-type-checker/87048
1•matt_d•18m ago•0 comments

Recovering Eric Graham's 1987 Amiga Juggler raytracer source code

https://alphapixeldev.com/recovering-eric-grahams-1987-amiga-juggler-raytracer-source-code/
1•mariuz•21m ago•0 comments

Between tech hype and literary purity, I am trying to write

https://anastasiiaiurshina.substack.com/p/my-gentle-stochastic-parrots
1•iurshina•21m ago•0 comments

MiniMax M3 Review: Matching GPT-5.5 and Opus?

https://thomas-wiegold.com/blog/minimax-m3-review/
1•gkmcd•22m ago•0 comments

Build-in-public audience is not your market. I learned the the slow way

https://www.indiehackers.com/post/your-build-in-public-audience-is-not-your-market-i-learned-the-...
1•max_fs_dev•23m ago•0 comments

Dear President

https://www.nytimes.com/2026/06/02/opinion/trump-kennedy-center-arch-reflecting-pool.html
1•KnuthIsGod•24m ago•0 comments

Introduction to Data-Centric AI

https://dcai.csail.mit.edu/
1•teleforce•26m ago•0 comments

The Crowd Joins the Race to Break Elliptic Curve Cryptography

https://twitter.com/drakefjustin/status/2061793725299224676
3•fbrusch•28m ago•0 comments

Uber Caps Employee Spending on AI Tools Like Claude Code to Manage Costs

https://www.bloomberg.com/news/articles/2026-06-02/uber-caps-usage-of-ai-tools-like-claude-code-t...
2•nreece•31m ago•1 comments

With Nvidia Groq 3, the Era of AI Inference Is (Probably) Here (⌛ March 2026)

https://spectrum.ieee.org/nvidia-groq-3
1•mdp2021•34m ago•3 comments

QR Menu Generator

1•tashadir•39m ago•0 comments

Can't Find a Job After Graduation? Blame WFH, Not AI

https://www.bloomberg.com/opinion/articles/2026-06-02/can-t-find-a-job-after-graduation-blame-wfh...
1•KnuthIsGod•40m ago•1 comments

A scientific calculator in C for terminal environments

https://github.com/EmberSeed/ADVANCED-TERMINAL-CALCULATOR
3•EmberSeed•40m ago•1 comments