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

Show HN: Browser SplitView Master – view up to 16 websites in one Chrome window

https://chromewebstore.google.com/detail/browser-splitview-master/ngkcpcmnmbdchbejbgiegaiagpljkkhj
1•mysticmetal•1m ago•0 comments

Skills vs. MCP tools for AI agents: When to use which

https://blog.logrocket.com/skills-vs-mcp-tools-agent-guide/
1•qikouki•7m ago•0 comments

Community, Censorship, and Why Hope Still Matters: Naomi Kritzer Interview

https://forceandfable.com/2026/04/06/whyhopestillmatters_naomikritzerinterview/
2•bryanrasmussen•8m ago•0 comments

Dyson CameraJet: The only toothbrush with a camera and a jet

https://www.dyson.com/discover/news/latest/introducing-camerajet
1•samaysharma•11m ago•0 comments

Pelliamonds

https://achromath.substack.com/p/pelliamonds
1•vismit2000•16m ago•0 comments

AI safety is designed in the West, and failing users everywhere

https://restofworld.org/2026/ai-safety-bias/
1•thm•19m ago•0 comments

Fungible Memories for Automated Technology Mapping and Retargeting: PLDI'26 Talk [video]

https://www.youtube.com/watch?v=TgqyyV7GqC4
1•matt_d•21m ago•0 comments

Just Bury Your Trash

https://worksinprogress.co/issue/just-bury-your-trash/
3•barry-cotter•26m ago•0 comments

Amazon, Synopsys to cut more than 275 Bay Area tech jobs

https://www.sfchronicle.com/tech/article/amazon-synopsys-tech-layoffs-22413103.php
3•vismit2000•28m ago•0 comments

VRML Virtual Reality Modeling Language (1995)

https://www.w3.org/MarkUp/VRML/
1•sssilver•30m ago•0 comments

New Jersey eases restrictions on residential solar panels

https://gothamist.com/news/a-whole-new-world-new-jersey-eases-restrictions-on-residential-solar-p...
3•geox•35m ago•0 comments

Back to Focus: a macOS app that nudges you when you drift

https://apps.apple.com/us/app/back-to-focus/id6802041602?mt=12
1•suyogedth•36m ago•0 comments

The Emergent Symbolic Structure of Artificial Neural Networks

https://arxiv.org/abs/2608.29530
15•schmuhblaster•40m ago•0 comments

A one-second timer in a closed modem binary was capping my ISP at 14.4k

https://dialup.litenet.tel/research/v34-modem/
1•szeremeta•41m ago•0 comments

"Enshittification" Isn't Real

https://www.a16z.news/p/enshittification-isnt-real
3•kwar13•44m ago•0 comments

M-DISC – DVD/Blu-ray compatible discs that may last up to 1000 years

https://en.wikipedia.org/wiki/M-DISC
2•gurjeet•46m ago•0 comments

Shingles vaccine linked to lower risk of heart attack and stroke, study finds

https://www.theguardian.com/science/2026/aug/26/shingles-vaccine-lower-risk-heart-attack-stroke-s...
3•croes•48m ago•0 comments

Serious Confession to Make

https://substack.com/profile/546269798-taha/note/c-327816410
2•nomoreklueless•51m ago•0 comments

GeoJSON Map Viewer

https://tools.simonwillison.net/geojson
1•vismit2000•54m ago•0 comments

The first signs of dark matter particles may have been spotted

https://www.newscientist.com/article/2587086-the-first-signs-of-dark-matter-particles-may-finally...
2•acjohnson55•55m ago•0 comments

WebFPGA

https://webfpga.io/
17•gurjeet•1h ago•6 comments

Games look real now. We're in the future

https://twitter.com/r00t404t/status/2094871766304751799
4•razodactyl•1h ago•1 comments

Yume – A game launcher for PC and emulators

https://komorebidesigns.dev/
3•DevRen•1h ago•2 comments

FixMonorepo – Fix a monorepo by splitting it into single-file repos

https://github.com/twigg-vc/fixmonorepo
3•andrebianchessi•1h ago•2 comments

mst3k-anything

https://github.com/jgbrwn/mst3k-anything
1•indigodaddy•1h ago•0 comments

How is AWS console so broken?

1•anuptalwalkar•1h ago•1 comments

Testing Grok 4.6's Enhanced Biology Safeguards

https://blog.latch.bio/p/analyzing-grok46-safeguards
2•fourfire•1h ago•0 comments

Shopify's agent-commerce category filter didn't filter on any of 190 stores

https://shelfglance.com/research/ucp-category-filter
1•BruceM2007•1h ago•0 comments

Conduct react interviews with a shared coding workspace

https://www.reactpair.com/
1•vijayst•1h ago•0 comments

Huawei Became China's Nvidia [video]

https://www.youtube.com/watch?v=Jbq4wrZn-DI
1•deterministic•1h ago•0 comments