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

Comments

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

Sad Story of My Google Workspace Account Suspension

https://zencapital.substack.com/p/sad-story-of-my-google-workspace
1•zenincognito•8s ago•0 comments

Center This Div – A CSS centering game with a 0.0001px threshold

https://center-this-div.vercel.app
1•raxxo•53s ago•0 comments

Wandering Journeyman

https://en.wikipedia.org/wiki/Wandering_journeyman
2•akyuu•5m ago•0 comments

Neovim 0.12: What's New [video]

https://www.youtube.com/watch?v=xSiQP23ZZhI
1•davidkunz•6m ago•0 comments

Ask HN:Locked on Selfcontrolled Google Family Link Parental Control System

1•limondas•9m ago•0 comments

MCP Shield – Audit MCP servers for supply chain attacks before installing them

https://github.com/GaboITB/mcp-shield
1•Gabocryp•10m ago•0 comments

Nvidia embraces optical scale-up as copper reaches limits

https://www.theregister.com/2026/04/05/nvidia_optical_scale_up/
1•giuliomagnifico•12m ago•0 comments

A Machine Became a Metaphor

https://worldhistory.substack.com/p/how-a-machine-became-a-metaphor
1•crescit_eundo•13m ago•0 comments

Show HN: Sshifu – Give SSH access in 1 command. Teleport/Smallstep alternative

https://github.com/azophy/sshifu
1•azophy_2•15m ago•0 comments

All-smi: Command-line utility for monitoring GPU/TPU/NPU hardwares

https://github.com/lablup/all-smi
1•serialx•16m ago•0 comments

tteg – Free stock image search, no API key

1•Kushalzen•16m ago•0 comments

YT shorts: Founders after 20h of vibe coding and 0 Customer [video]

https://www.youtube.com/shorts/DEIMkKX1rlc
1•riley-i•18m ago•0 comments

Virtual Mars Traverse: Every inch of Curiosity rover's path since 2012 landing

https://www.rovers.land/
1•bookofjoe•20m ago•0 comments

Ask HN: Why isn't FPGA adoption exploding now that LLMs can write HDL?

1•dsrtslnd23•22m ago•0 comments

Sourcehut seems to be under attack again, Git service is down

https://status.sr.ht/
1•xz18r•22m ago•0 comments

Agency Agents Review

https://jonno.nz/reviews/agency-agents/
1•jonnonz•24m ago•0 comments

Forking frenzy ensues after launch of Euro-Office

https://www.theregister.com/2026/04/02/eurooffice_forks_onlyoffice/
1•rbanffy•25m ago•0 comments

Lock-Free Deadlock

https://qouteall.fun/qouteall-blog/2025/About%20circular%20reference#lock-free-deadlock
1•qouteall•32m ago•0 comments

Man-Computer Symbiosis (1960)

https://www.organism.earth/library/document/man-computer-symbiosis
2•mellosouls•33m ago•1 comments

SpaceX and OpenAI: The Mega IPO Grift [video]

https://www.youtube.com/watch?v=iOyFja87uyw
1•throw0101c•34m ago•1 comments

Everything must be high-value added work. But

https://blog.alaindichiappari.dev/p/everything-must-be-high-value-added
3•alainrk•35m ago•1 comments

China Edges Past U.S. in Global Approval Ratings

https://news.gallup.com/poll/707945/china-edges-past-global-approval-ratings.aspx
3•KnuthIsGod•43m ago•0 comments

The End of ARR

https://saasmetrics.rip/
2•arnon•45m ago•2 comments

The Hack That Exposed Syria's Security Failures

https://www.wired.com/story/inside-the-hack-that-exposed-syrias-security-failures/
2•joozio•46m ago•0 comments

Brykk – Family safety app with zero servers, built on iCloud

https://www.brykk.app/
1•nharing•53m ago•0 comments

Every dependency you add is a supply chain attack waiting to happen

https://benhoyt.com/writings/dependencies/
3•birdculture•58m ago•0 comments

Ask HN: I built WhyOps: A decision-aware observability for AI agents. Thoughts?

2•dishant0406•59m ago•1 comments

Growing a better world together with AI

https://koenvangilst.nl/lab/ai-and-the-future-of-engineering
1•vnglst•1h ago•1 comments

Artemis II Live Tracker – Real-Time NASA Mission Telemetry

https://artemislivetracker.com/
1•EvgeniyZh•1h ago•1 comments

Friendica – A Decentralized Social Network

https://friendi.ca/
2•janandonly•1h ago•0 comments