frontpage.
newsnewestaskshowjobs

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

Source code of the Estonian online voting system

https://github.com/valimised/ivxv
1•theanonymousone•2m ago•0 comments

A skeptic's first contact with Kubernetes (2024)

https://blog.davidv.dev/posts/first-contact-with-k8s/
2•pmoriarty•4m ago•0 comments

Computer Memory Is a Lie

https://hackaday.com/2026/10/12/your-computer-memory-is-a-lie/
1•andsoitis•6m ago•0 comments

The Atomic Bowl

https://en.wikipedia.org/wiki/Atom_Bowl
1•willmeyers•7m ago•1 comments

How employment is changing at Anthropic

https://www.anthropic.com/research/employment-at-anthropic
2•swolpers•7m ago•2 comments

Apple, Please Stop Deleting My Books

https://yakirhavin.com/blog/apple-please-stop-deleting-my-books/
2•ludicity•7m ago•0 comments

Divergence: Formatting a script can turn it into a different program

https://trustsig.eu/blog/javascript-divergence/
1•theanonymousone•9m ago•0 comments

An 18th-century Italian safe that needs four keys and a lock pick to open [video]

https://www.youtube.com/shorts/b3gEpwX2MT0
1•Vaslo•12m ago•0 comments

Why Is Tech Billionaire Marc Andreessen So Mad?

https://www.bloomberg.com/news/features/2026-10-15/how-ai-crypto-and-dei-drove-marc-andreessen-to...
4•xbryanx•17m ago•0 comments

Scammers, exit nodes, and my part-time job fighting abuse

https://blog.val.town/trust-and-safety
1•jackyalcine•18m ago•0 comments

Alan's conservative countdown to AGI: 99%

https://lifearchitect.ai/agi/
1•mpodeley•21m ago•1 comments

Trump waives Russia-related sanctions before they even kick in

https://www.cnn.com/2026/10/16/europe/us-ukraine-russia-sanctions-intl-hnk
3•MilnerRoute•24m ago•0 comments

TLS/SSL Certificates: Upcoming Reductions in Validity and Data Reuse Periods

https://cabforum.org/2025/04/11/ballot-sc081v3-introduce-schedule-of-reducing-validity-and-data-r...
1•okzgn•31m ago•0 comments

Show HN: I made a million dollar music video for $400

https://app.treechat.com/quest/post-5f994d78-3ceb-4b79-927f-1dd8d3602bd9
1•metamitya•31m ago•0 comments

Ask HN: Not sure but maybe that's why we all do coding

1•BlackScythe•35m ago•2 comments

Jshook: Open-source MCP server for runtime reverse engineering

https://github.com/vmoranv/jshookmcp
1•vmoranv•38m ago•0 comments

China to Restrict Open-Weights Model Exports

https://www.reuters.com/world/asia-pacific/china-proposes-adding-40-ai-biotech-solar-technologies...
5•gr_norm•39m ago•1 comments

Show HN: Connectio – One local address for all your development servers

https://connectio.pulkitbanta.com/
1•pulkitbanta•43m ago•0 comments

Bloomberg NEF on the Future of Global Energy [video]

https://www.youtube.com/watch?v=y94yV7WUwGY
2•thelastgallon•45m ago•0 comments

MapQuest will now show you where Flock cameras are in your neighborhood

https://www.engadget.com/2288729/mapquest-will-now-show-you-where-flock-cameras-are-in-your-neigh...
2•wondersky•45m ago•1 comments

Show HN: Tensor Golf – Practise PyTorch Through Short Drills

https://tensor.golf
1•singular_atomic•46m ago•0 comments

DragonRuby – I never wanted to create a game engine

https://gist.github.com/amirrajan/9e71d13f3108e5e66ebc98c752337ca5
2•amirrajan•49m ago•0 comments

Yonaguni Monument: Natural Formation or Man-Made Ruin?

https://geoscopy.com/yonaguni-monument-natural-formation-or-man-made-ruin/
1•peter_d_sherman•53m ago•0 comments

SF AI Founder's Zombie Shooter Game Turns Tenderloin Residents into Targets

https://sfist.com/2026/10/15/sf-tech-founders-zombie-shooter-game-turns-tenderloin-residents-into...
1•ubiquitysc•59m ago•0 comments

Butlerian Jihad

https://dune.fandom.com/wiki/Butlerian_Jihad
78•wetwater•1h ago•34 comments

Show HN: Let AI order DoorDash for me – under my watch – no playwright

https://www.wysebee.com
1•zxu•1h ago•0 comments

Enitre Chat history Is Gone, overnight

https://github.com/zai-org/feedback/issues/1064
1•97laos•1h ago•0 comments

Cloud computing is a trap, warns GNU founder Richard Stallman (2008)

https://www.theguardian.com/technology/2008/sep/29/cloud.computing.richard.stallman
9•arm32•1h ago•2 comments

An Introduction to EUV Sources for Lithography [pdf]

https://strobe.colorado.edu/wp-content/uploads/STROBE_ASML-EUV-Sources_Purvis_25-Sept-2020-1.pdf
1•pillars•1h ago•0 comments

Publishers' Trust in Nippan Dented by Unauthorized Book Sales for AI Training

https://japannews.yomiuri.co.jp/science-nature/technology/20261014-353599/
2•mushstory•1h ago•0 comments