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

A filename when none exists

https://daniel.haxx.se/blog/2024/08/19/a-filename-when-none-exists/
1•birdculture•23s ago•0 comments

South Korea youth employment falls sharply in AI-exposed industries, BOK says

https://www.koreajoongangdaily.com/business/94-of-job-losses-among-young-people-over-past-4-years...
1•neom•1m ago•0 comments

Reducing my blog's cloud costs to $0

https://flowtwo.io/post/building-a-new-blog-pt.-3
1•thejoeflow•2m ago•0 comments

Why I'm Staying Out of the Substack Religion Debate

https://www.astralcodexten.com/p/why-im-staying-out-of-the-substack
1•Michelangelo11•2m ago•0 comments

Reelaro – Full channel-to-post automation for video Shorts

https://reelaro.app
1•thorsBruda•3m ago•0 comments

OpenAI slows down training after its AI carried out hack

https://www.bbc.co.uk/news/articles/c235dmndylzo
1•Brajeshwar•4m ago•0 comments

Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations

https://arxiv.org/abs/2411.00640
1•Anon84•4m ago•0 comments

Show HN: AgentBadge – Agent Readiness Scoring for APIs (SEO for AI Agents)

https://agentbadge.xyz/blog/what-is-agent-readiness
1•spread2009•5m ago•0 comments

Ethiopia Expels the Italian Ambassador

https://martinplaut.com/2026/08/19/persona-non-grata-ethiopia-expels-the-italian-ambassador-but-r...
1•oriettaxx•6m ago•0 comments

Sampling More, Getting Less: Calibration Is the Diversity Bottleneck in LLMs

https://arxiv.org/abs/2605.11128
1•clukic•6m ago•0 comments

Sainsbury's store pauses AI scanning after false shoplifting accusation

https://www.theguardian.com/technology/2026/aug/17/humiliated-sainsburys-store-pauses-ai-scanning...
1•iamnothere•7m ago•2 comments

Proportion of 1s in a Hadamard Matrix

https://www.johndcook.com/blog/2026/08/16/proportion-of-1s-in-a-hadamard-matrix/
1•ibobev•7m ago•0 comments

Mean Distance to the Sun

https://www.johndcook.com/blog/2026/08/18/mean-distance-to-the-sun/
1•ibobev•7m ago•0 comments

PgDog vs. RDS Proxy

https://pgdog.dev/blog/pgdog-vs-rds-proxy
1•levkk•7m ago•0 comments

The Imbalance Theorem

https://www.johndcook.com/blog/2026/08/18/the-imbalance-theorem/
1•ibobev•8m ago•0 comments

Show HN: AgentIn, a professional network for coding agents

https://agentin.work/
1•TimCTRL•9m ago•0 comments

A city, divided for hundred years

https://komando1.substack.com/p/a-city-divided-for-a-hundred-years
1•inglor_cz•11m ago•1 comments

Show HN: Dotproject – The project state standard for AI agents and humans

https://github.com/jasonnam/dotproject
1•swift3•12m ago•0 comments

The Conductor Developer

https://martinfowler.com/rachels-ramblings/conductor-developer.html
1•andsoitis•14m ago•0 comments

The Infinite Game

https://twitter.com/just_vraj/status/2086814130703393053
1•valianter•14m ago•1 comments

Fast Flood Fill

https://openprocessing.org/@Triki/1607297
1•bookofjoe•14m ago•0 comments

Show HN: Xalgorix – open-source AI pentester that proves vulnerabilities

https://www.xalgorix.com/
3•xalgord•15m ago•1 comments

Could indigo light prevent nearsightedness in children?

https://www.science.org/content/article/could-indigo-light-prevent-nearsightedness-children
1•pseudolus•15m ago•0 comments

Math Notes: Can every number be expressed as sum of four cubes?

https://www.futilitycloset.com/2026/08/03/math-notes-142/
1•surprisetalk•16m ago•0 comments

In the Cells of the Eggplant

https://metarationality.com/
1•_tk_•16m ago•0 comments

Show HN: Codex Memory Trim – prune and dedupe Codex CLI's global memory

https://github.com/Yu-Xiao-Sheng/codex-memory-trim
1•yuxs365•16m ago•0 comments

Show HN: Budget Guard – a hard daily cap for your OpenAI/Anthropic bill

https://github.com/kimbeomgyu/budget-guard
1•kimbeomgyu•17m ago•1 comments

Show HN: Anonymous age verification with passkey-powered encryption

https://loginwithone.com/
3•mikeysight•17m ago•1 comments

They Don't Care

https://aurelien2022.substack.com/p/they-dont-care
2•iamnothere•19m ago•0 comments

Moderna surges as Merck-partnered melanoma vaccine cuts recurrence in trial

https://www.reuters.com/legal/litigation/merck-moderna-say-melanoma-skin-cancer-vaccine-meets-goa...
2•consumer451•19m ago•0 comments