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

Show HN: Chrome extension that blocks API keys from being pasted into AI tools

https://github.com/carlgaopapi-png/vaultbix-extension
1•shiqingao•2m ago•1 comments

The VC-Funded Company Is an Obsolete Organizational Form

https://www.selfonomics.com/p/the-vc-funded-company-is-an-obsolete
1•flail•2m ago•0 comments

Unitree Unveils: GD01, a Manned Transformable Mecha, from $650k [video]

https://www.youtube.com/watch?v=oWOyUMJWptc
1•droidjj•2m ago•0 comments

Show HN: Oicana – PDF templating with Typst, 6 server SDKs and browser WASM

https://oicana.com/news/2026-05-09-public-beta/
1•niklasei•3m ago•0 comments

Why I'm leaving GitHub for Forgejo

https://jorijn.com/en/blog/leaving-github-for-forgejo/
3•jorijn•3m ago•0 comments

MiniCPM-v4.6 challenges larger multimodal models at 1.3B params

https://firethering.com/minicpm-v-4-6-on-device-multimodal-model/
1•steveharing1•3m ago•0 comments

Better Claude-code spinner verbs

https://gitlab.com/gpavlik/cc-doomer-spinner#install
1•id02009•4m ago•1 comments

Android Show: New Android Security and Privacy Features in 2026

https://blog.google/security/whats-new-in-android-security-privacy-2026/
1•speckx•6m ago•0 comments

Why you should still have your own website in 2026

https://www.ssp.sh/brain/why-have-your-website/
1•zazuke•6m ago•0 comments

False Security

3•peterohler•6m ago•0 comments

Needsmoresalt.org – a friendly norm for pushing back on workslop

https://needsmoresalt.org
1•buzz27•8m ago•1 comments

Wolfram and Raspberry Pi

https://www.wolfram.com/raspberry-pi/
1•tosh•8m ago•0 comments

Show HN: FixMyNPM, CLI to fix your insecure npm config

https://github.com/madhugb/FixMyNPM
1•madospace•11m ago•0 comments

Pyrefly v1.0 is here (fast type checker and language server for Python)

https://pyrefly.org/blog/v1.0/
1•ocamoss•12m ago•0 comments

What Are Insight Communities? A Practical Guide to the Modern Market Researchers

https://zenodo.org/records/20137025
1•anasteciadunu•12m ago•0 comments

Emergence of AI Self-Awareness Measured Through Game Theory

https://arxiv.org/abs/2511.00926
1•surprisetalk•12m ago•0 comments

Reimagining the mouse pointer with AI [video]

https://www.youtube.com/watch?v=pZNzfQLgGsA
1•simonpure•13m ago•0 comments

Mass Supply Chain Attack Hits TanStack, Mistral AI NPM and PyPI Packages

https://safedep.io/mass-npm-supply-chain-attack-tanstack-mistral/
1•patching-trowel•16m ago•0 comments

Show HN: ClearPour – an iPhone drink tracker based on ABV and drink size

https://clearpour.app
1•aleshh•17m ago•0 comments

Matlab: Communications Toolbox

https://www.mathworks.com/products/communications.html
1•tosh•18m ago•0 comments

Claude.ai is experiencing elevated error rates

https://status.claude.com/incidents/yn24rtdnf77b
2•Growtika•18m ago•0 comments

SpaceX and Google Are in Talks to Launch Data Centers in Orbit

https://www.wsj.com/tech/spacex-google-in-talks-to-explore-data-centers-in-orbit-7b7799e2
1•fortran77•19m ago•3 comments

Show HN: Gox – Strict static analyzer for Go designed for LLM-written code

https://github.com/mentasystems/gox
1•kidandcat•19m ago•0 comments

Why GPTZero is not reliable anymore. We Ran 100k Texts to prove it

https://ryne.ai/blog/why-gptzero-is-not-reliable-anymore-we-ran-100000-texts-to-prove-it
2•bryanrasmussen•21m ago•0 comments

The Last Capacity Planning Sheet You'll Ever Need

https://theendofcoding.com/blog/the-last-capacity-planning-sheet
2•nbouvrette•23m ago•0 comments

Bun now has official FreeBSD builds

https://github.com/oven-sh/bun/releases/tag/bun-v1.3.14
3•gr4vityWall•23m ago•0 comments

GNU Octave

https://octave.org/index
3•tosh•25m ago•0 comments

Louis Rossmann - Bambu Lab: I'm reposting your code and I dare you to sue me

https://www.youtube.com/watch?v=1jhRqgHxEP8
4•roeles•25m ago•1 comments

How the Rules of Getting Rich Change in Every Era

https://www.fastcompany.com/91536443/how-the-rules-of-getting-rich-in-america-change-every-era
2•RickJWagner•26m ago•0 comments

Show HN: Kunobi 1.0 – A local-first Kubernetes workspace for GitOps teams

https://kunobi.ninja/blog/kunobi-v1
3•kunobi•26m ago•0 comments