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

Capital Must Seek Delight

https://contraptions.venkateshrao.com/p/capital-must-seek-delight
1•jger15•1m ago•0 comments

Panopticon

https://en.wikipedia.org/wiki/Panopticon
1•soupspaces•2m ago•0 comments

We've made the world too complicated

https://user8.bearblog.dev/the-world-is-too-complicated/
1•James72689•4m ago•0 comments

Ghq: Remote repository management made easy

https://github.com/x-motemen/ghq
1•unvalley•4m ago•0 comments

We Pay Salesforce 83% More Than Last Year. But Stopped Using Notion

https://www.saastr.com/why-we-pay-salesforce-83-more-than-last-year-but-stopped-using-notion-enti...
1•tablet•4m ago•0 comments

ToolEasy – Free Online Tools for Everyday Tasks

https://tooleasy.org/
1•yimiqidage001•10m ago•0 comments

Show HN: Orchid Mantis – PoC Zero Knowledge Proof of Exploit (ZKPoX) Framework

https://github.com/unprovable/orchidmantis
1•unprovable•11m ago•0 comments

Note-taking software,Novel ideas

1•huaqing•16m ago•0 comments

Meet the Sad Wives of AI

https://www.wired.com/story/meet-the-sad-wives-of-ai/
2•pypt•24m ago•2 comments

Are We XLibre Yet? · X11Libre/Xserver Wiki

https://github.com/X11Libre/xserver/wiki/Are-We-XLibre-Yet%3F
1•xbmcuser•24m ago•0 comments

Six Million Selections Later: How the DMA Is Giving People Browser Choice

https://blog.mozilla.org/netpolicy/2026/05/11/six-million-selections-later-how-the-dma-is-giving-...
2•naves•29m ago•0 comments

Making Deep Learning Go Brrrr from First Principles

https://horace.io/brrr_intro.html
1•tosh•29m ago•0 comments

Electronics engineer – neurotech – London (hybrid/remote)

https://netholabs.com/electronics_engineer_812
1•catubc•32m ago•1 comments

Why Stanford Says AI Agents Become Marxist

https://www.flyingpenguin.com/why-stanford-says-ai-agents-become-marxist/
2•feigewalnuss•38m ago•0 comments

Palestinians forced to demolish own homes to make way for Israeli theme park

https://www.theguardian.com/world/2026/may/16/palestinians-demolish-family-homes-jerusalem-kings-...
3•hebelehubele•39m ago•0 comments

A message from kurdistan – my love for China and DeepSeek

https://old.reddit.com/r/DeepSeek/comments/1tadbm6/a_message_from_kurdistan_my_love_for_china_and/
1•chewz•41m ago•0 comments

Your VPS Is a Sitting Duck

https://github.com/rockballslab/vps-secure
1•rockballslab•43m ago•0 comments

Is Bitwarden Getting Enshitified?

https://www.fastcompany.com/91542655/bitwarden-scrubs-always-free-and-inclusion-values-from-its-w...
2•bobek•50m ago•1 comments

Experience Layer for AI

https://cortexdb.ai/blog/v1
1•prmalik•53m ago•0 comments

Pretext – pure-arithmetic text measurement for proportional fonts

https://somnai-dreams.github.io/pretext-demos/
2•Teever•58m ago•0 comments

TunnelForge, a L2TP client for Android 12

https://github.com/evokelektrique/tunnel-forge
1•femdiya•58m ago•0 comments

The Whitepaper Thunderdome: HAGE vs. Storage Is Not Memory

https://medium.com/@vektormemory/the-whitepaper-thunderdome-hage-vs-storage-is-not-memory-8a76fd6...
1•vektormemory•1h ago•0 comments

Why birth rates are falling everywhere all at once

https://www.ft.com/content/fba35eca-df3a-4ad6-b42d-eb08eb7c9ad3
2•quick_brown_fox•1h ago•0 comments

Trump warns Taiwan against declaring independence

https://www.bbc.com/news/articles/ce8p61v7l68o
2•vrganj•1h ago•1 comments

$2B Conflict: Sam Altman "Side Hustles" Are Now Center of a Legal Warzone

https://www.gadgetreview.com/the-2-billion-conflict-sam-altmans-side-hustles-are-now-the-center-o...
1•g42gregory•1h ago•0 comments

Sense Humans with WiFi – Ruview

https://cognitum.one/RuView#capabilities
1•unixhero•1h ago•0 comments

Goodbye Travel Agents, Hello AI Agents

https://blog.denv.it/posts/goodbye-travel-agents-hello-ai-agents/
3•denysvitali•1h ago•0 comments

Do High-Quality EDC Knives Justify Their Price Gap?

https://www.paragon-knives.com/
1•bgzlsxaz•1h ago•0 comments

Jjw: A Workspace Manager for Jj

https://aran.dev/posts/introducing-jjw-jj-workspace-manager/
1•aranw•1h ago•0 comments

Show HN: New release of jd-GUI-duo 2.0.112 is out

https://github.com/nbauma109/jd-gui-duo/releases/tag/2.0.112
1•nbauma109•1h ago•0 comments