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

Comments

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

Tom Thumb's Marriage: An Unexpectedly Modern "Fairy Wedding"

https://worldhistory.substack.com/p/an-unexpectedly-modern-fairy-wedding
1•crescit_eundo•1m ago•0 comments

Show HN: Tintcd – directory-aware terminal theming for PowerShell

https://github.com/ymyke/tintcd
2•myyke•2m ago•0 comments

How to Ruin All of Package Management

https://nesbitt.io/2025/12/27/how-to-ruin-all-of-package-management.html
1•birdculture•2m ago•0 comments

Recent discoveries on the acquisition of the highest levels of human performance

https://www.science.org/doi/10.1126/science.adt7790
1•manidoraisamy•4m ago•0 comments

Show HN: Lindr – Deterministic personality scoring for LLM outputs

https://www.lindr.io/
1•dyllonj•5m ago•0 comments

Going immutable on macOS, a usage of Nix-Darwin

https://carette.xyz/posts/going_immutable_macos/
1•LucidLynx•6m ago•0 comments

The "setup tax" on AWS H100s is killing iterative research

1•miyamotomusashi•6m ago•0 comments

Transforming Traumatizing into Trauma-Informed and Trauma-Integrating Cultures

https://pocketproject.org/integration-labs-2026/
1•rendx•8m ago•0 comments

San Francisco mayor sneaks reparations bill to give black resident $5M

https://www.msn.com/en-sg/news/other/san-francisco-mayor-sneaks-through-reparations-bill-that-cou...
1•blufish•8m ago•2 comments

Go-panikint: Go compiler that panics on arithmetic and truncation issues

https://github.com/trailofbits/go-panikint
1•ingve•8m ago•0 comments

Finnish authorities seize vessel following sea cable disruption

https://yle.fi/a/74-20202087
1•Hamuko•9m ago•0 comments

EpicEnv: Overlay Environment Support

https://github.com/danthegoodman1/EpicEnv
1•dangoodmanUT•10m ago•1 comments

"Fireball" vs. "Make it go boom": Building a Semantic Search for D&D

https://centamori.com/index.php?slug=dungeons-dragons-vector-search&lang=en
2•centamiv•12m ago•1 comments

Stop Trying to Replace Your SaaS Products with AI (2024)

https://staysaasy.com/management/2024/09/15/replacing-tools.html
1•thisismytest•19m ago•0 comments

The office block where AI 'doomers' gather to predict the apocalypse

https://www.theguardian.com/technology/ng-interactive/2025/dec/30/the-office-block-where-ai-doome...
1•notagoodidea•21m ago•0 comments

LLMRouter: An Open-Source Library for LLM Routing

https://github.com/ulab-uiuc/LLMRouter
1•simonpure•21m ago•0 comments

Detect Go's silent arithmetic bugs with go-panikint

https://blog.trailofbits.com/2025/12/31/detect-gos-silent-arithmetic-bugs-with-go-panikint/
1•conslit•23m ago•1 comments

DarkSpectre: 8.8M users infected via malicious browser extensions over 7 years

https://www.koi.ai/blog/darkspectre-unmasking-the-threat-actor-behind-7-8-million-infected-browsers
3•dnslavin•23m ago•1 comments

Gnumeric

https://gnome.pages.gitlab.gnome.org/gnumeric-web/
1•luismedel•24m ago•0 comments

China mandates 50% domestic equipment rule for chipmakers

https://www.reuters.com/world/china/china-mandates-50-domestic-equipment-rule-chipmakers-sources-...
5•naves•25m ago•0 comments

Mixed War Evidence

1•Josf•25m ago•0 comments

Show HN: End-to-End Static Type Checking: PostgreSQL to TypeScript

https://npgsqlrest.github.io/blog/end-to-end-static-type-checking-postgresql-typescript.html
1•vbilopav•26m ago•0 comments

How we stopped worrying and bought an Electron Microscope [video]

https://www.youtube.com/watch?v=zfPYij2-ry0
1•hmelder•26m ago•1 comments

Worktrunk: Git worktree management for parallel AI agent workflows

https://worktrunk.dev/
1•pryz•28m ago•0 comments

UN: Pact for the Future

https://www.un.org/pact-for-the-future/en/about-pact
1•janandonly•28m ago•0 comments

Sunset $600 MRR app from App Store

https://apps.apple.com/us/app/drylendar-sobriety-tracker/id6756030804
1•francoisboulais•28m ago•0 comments

Show HN: I built an AI tool that generates YouTube thumbnails in seconds

https://www.youtubethumbnailgenerator.app/
1•samuelaidoo45•29m ago•0 comments

The Pheix project published postmortem review following the latest release

https://pheix.org/embedded/post-rtm-engineering-review
2•pheix•34m ago•1 comments

BMW Recalls 36,922 X3s over Steering Software Glitch

https://www.bmwblog.com/2025/12/19/2025-2026-bmw-x3-recall-steering-software/
2•krona•34m ago•0 comments

Claude wrote a functional NES emulator using my engine's API

https://carimbo.games/games/nintendo/
2•delduca•36m ago•1 comments