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

GitHub Copilot Switches to Token-Based Billing for Developers

https://www.aiuniverse.news/the-shift-to-usage-based-ai-billing-arrives-for-developers/
2•aiuniversenews•2m ago•0 comments

Windows quality update: Progress we've made since March

https://blogs.windows.com/windows-insider/2026/05/01/windows-quality-update-progress-weve-made-si...
3•jovial_cavalier•9m ago•0 comments

Word Embedding Is Magic

https://joker666.github.io/blog/2025-11-12-word-embedding-is-magic
1•joker666•9m ago•0 comments

Google-Free Phone Is IP68-Rated and Has a Replaceable Battery

https://www.yankodesign.com/2026/05/01/this-google-free-phone-is-ip68-rated-and-has-a-replaceable...
2•exiguus•12m ago•0 comments

Approaching Zero Bugs?

https://daniel.haxx.se/blog/2026/04/30/approaching-zero-bugs/
2•wrxd•13m ago•0 comments

Enabling a new model for healthcare with AI co-clinician

https://deepmind.google/blog/ai-co-clinician/
2•haskellandchill•15m ago•0 comments

FBI cyber boss: China's hacker-for-hire ecosystem 'out of control'

https://www.theregister.com/2026/04/30/fbi_cyber_boss_chinas_hackerforhire/
1•Bender•15m ago•0 comments

TI Calculator Monopoly Offers Lessons for Educators in the Age of Generative AI

https://www.promarket.org/2024/04/08/tis-calculator-monopoly-offers-lessons-for-educators-in-the-...
1•jamesgill•21m ago•0 comments

Show HN: CD-DA Reader, Rust library to read audio CD data

https://github.com/Bloomca/rust-cd-da-reader
1•bloomca•22m ago•0 comments

Keyboard Sounds Pro – Now Available on macOS

https://keyboardsounds.pro/
1•fisc•23m ago•0 comments

Beijing Is Not Playing a Long Game

https://sharptext.net/2026/beijing-is-not-playing-the-long-game/
1•skmurphy•25m ago•3 comments

Amazon Powers ICE. Its Workers Aren't Happy

https://www.motherjones.com/politics/2026/05/amazon-powers-ice-its-workers-arent-happy/
8•cdrnsf•25m ago•0 comments

Ask HN: When will GitHub allow CoPilot AI programmer for new customers again?

2•roschdal•26m ago•1 comments

Does Trade Cause Peace?

https://www.ft.com/content/d141cf41-e47a-4657-9f6b-ed26e6c59ac6
1•paulpauper•27m ago•0 comments

Should We Separate the Art from the Artist?

https://opentodebate.substack.com/p/should-we-separate-art-from-the-artist
2•paulpauper•27m ago•0 comments

Rich People Didn't Look Like This Before

https://www.nytimes.com/2026/04/30/opinion/plastic-surgery-rich-face.html
1•paulpauper•28m ago•0 comments

Show HN: Building self-evolving AI Agents without training

https://getreflect.starlight-search.com
2•akshayballal95•28m ago•0 comments

It's Not a Values Crisis, It's a Housing Crisis

https://maxmautner.com/2026/04/30/housing-crisis-not-values-crisis.html
1•mslate•29m ago•0 comments

Show HN: Aide-memory – persistent memory for AI coding agents and teams

https://www.aide-memory.dev/blog/launch
2•ahmedmeky•32m ago•0 comments

Flue Sandbox Agent Framework

https://flueframework.com
2•kalendos•32m ago•0 comments

Ask HN: If there're so many advanced vibecoders mad at GitHub, where's everyone?

3•foundatron•34m ago•1 comments

When your board member / VC partner leaves?

https://www.motivenotes.ai/p/when-your-vc-leaves-you-are-fundraising
1•swapniljain•34m ago•0 comments

Federation Has a European Legal Problem

https://connectedplaces.online/federation-has-a-european-legal-problem/
2•HotGarbage•35m ago•0 comments

My $5K smart bed needs to shut the hell up

https://www.theverge.com/column/921654/optimizer-eight-sleep-ai-summaries-health-wellness
2•jerlam•38m ago•0 comments

Ask HN: Who wants to be fired? (May 2026)

3•evo_9•39m ago•2 comments

Where to buy a non-Apple, non-Google smartphone

https://www.theregister.com/2026/05/01/buy_a_foss_fondleslab/
2•Bender•40m ago•0 comments

Metropolis 1998 Brings Classic SimCity-style City Building back to life

https://www.generationamiga.com/2026/05/01/metropolis-1998-brings-classic-simcity-style-city-buil...
2•YesBox•40m ago•0 comments

Kanye West Bought an Architectural Treasure Then Gave It a Violent Remix (2024)

https://www.newyorker.com/magazine/2024/06/17/kanye-west-tadao-ando-beach-house-malibu
2•tolerance•40m ago•0 comments

Man versus Horse Marathon

https://en.wikipedia.org/wiki/Man_versus_Horse_Marathon
1•gmays•43m ago•0 comments

Credit cards are vulnerable to brute force attacks

https://metin.nextc.org/posts/Credit_Cards_Are_Vulnerable_To_Brute_Force_Kind_Attacks.html
30•kodbraker•44m ago•21 comments