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

Practical Doomsday Book

https://lcamtuf.blogspot.com/2021/08/practical-doomsday.html
1•gurjeet•11s ago•0 comments

Show HN: Posara, visual-audio with early macOS aesthetics but modernized

https://github.com/KHN190/Posara
1•knh190•2m ago•0 comments

Google Maps Scraper

https://gmapscraper.io/
1•qwikhost•8m ago•1 comments

Webc.site/math: Ultralight, fast Markdown math renderer

https://www.npmjs.com/package/@webc.site/math#en
1•rmw-link•13m ago•0 comments

How to fix a laptop that reboots randomly

https://j11g.com/how-to-fix-a-laptop-that-reboots-randomly
1•jandeboevrie•16m ago•0 comments

Google's Unique Approach to Getting Data Centers Built

https://www.wsj.com/tech/ai/googles-unique-approach-to-getting-data-centers-built-2cfae652
1•maxloh•19m ago•0 comments

"AI is someone else's GPU"

https://waterpigs.co.uk/notes/5cVMNm/
1•jruohonen•24m ago•1 comments

Show HN: Web Speed – A shared web-map registry for AI agents (MCP, open source)

https://www.getwebspeed.io/
2•Dominic_P•27m ago•1 comments

Ask HN: Is ChatGPT suppose to spit out its own instructions that easy?

1•ipster_io•33m ago•0 comments

Richard Scolyer Has Died

https://www.bbc.com/news/articles/c14yz5jg476o
2•nicwilson•34m ago•1 comments

Centuries-old logbooks reveal how bowhead whales are recovering from near-extin…

https://theconversation.com/centuries-old-logbooks-reveal-how-bowhead-whales-are-recovering-from-...
1•rbanffy•35m ago•0 comments

We Are in the Anthropocene–Now What?

https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2025EF007730
1•littlexsparkee•35m ago•0 comments

What we know about the plan to give Americans an equity stake in AI

https://www.ft.com/content/8559a3f9-86de-4a1c-8a75-6623e83e6a00
1•samvher•35m ago•1 comments

Show HN: Avibe – your AI agent lives on your machine, reachable from your phone

https://github.com/avibe-bot/avibe
1•alex_metacraft•35m ago•0 comments

Subscribe to My Substack:)

https://bionorthtech.substack.com/subscribe
1•hellocock•36m ago•0 comments

Qanah – WireGuard-Like P2P VPN

https://github.com/xlmnxp/qanah
1•xlmnxp•39m ago•0 comments

KNN early termination in Manticore Search

https://medium.com/@s_nikolaev/knn-early-termination-in-manticore-search-39e55ac18d62
1•snikolaev•40m ago•0 comments

Show HN: Agam – Activation-based memory for Claude Code, not retrieval

https://github.com/CrypticCortex/agam
1•aghoraguru•43m ago•0 comments

Nithya Raman knocks Spencer Pratt off second place in LA mayor's race

https://nypost.com/2026/06/07/us-news/nithya-raman-knocks-spencer-pratt-off-second-place-in-la-ma...
2•SilverElfin•45m ago•4 comments

Show HN: SoundScope - PS1 Audio Visualizer in your Browser

https://soundscope.greg.technology/
1•gregsadetsky•46m ago•0 comments

AI for the Operator

https://github.com/cerebrocybersolutions/cerebro-whitepaper
1•cerebrocyber•47m ago•0 comments

You Can Walk to the World Cup in New Jersey. But Should You?

https://www.nytimes.com/2026/06/07/opinion/world-cup-new-york-new-jersey-transit-walk.html
1•berns•47m ago•0 comments

Reward Hacking, the Loophole Lesson: Winning the Signal, Losing the Reason

https://medium.com/@yassien/reward-hacking-the-loophole-lesson-winning-the-signal-losing-the-reas...
1•yassien•50m ago•0 comments

Show HN: My home server got unplugged, so I built a recovery CLI

https://homebutler.dev
2•swq115•50m ago•0 comments

The deadliest poison known to AI

https://iocaine.madhouse-project.org/
1•jruohonen•54m ago•0 comments

Show HN: I put my Claude Code rate-limit burndown in the status line

https://www.aimhuge.com/blog/claude-code-status-line
3•fotoflo•55m ago•1 comments

Show HN: Organizer Timelines for everything you want to remember

https://www.useorganizer.com/
1•mcapodici•1h ago•0 comments

Flutter OTA Code Push, Shorebird Alternative Open Source Flutter Patcher

https://github.com/xuelinger2333/flutter_patcher
1•faangguyindia•1h ago•1 comments

Is this the correct interpretation? (users use too many tabs?)

https://ux.stackexchange.com/questions/123870/why-do-browsers-allow-users-to-open-more-tabs-than-...
1•LearnYouALisp•1h ago•3 comments

Nvidia/Nvidia-Nemotron-3-Ultra-550B-A55B-BF16

https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
2•geoffbp•1h ago•0 comments