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

Anthropic wants to develop its own drugs

https://www.theverge.com/ai-artificial-intelligence/961311/anthropic-claude-science-ai-drug-devel...
1•cdrnsf•34s ago•0 comments

Damaged Earth Catalog

https://damaged.bleu255.com/
1•Duanemclemore•1m ago•1 comments

Big Tech Has Suddenly Flipped on the AI Jobs Wipeout Scenario

https://www.wsj.com/tech/ai/ai-workers-tech-ceos-job-losses-afc71e15
1•Brajeshwar•2m ago•0 comments

Accusation, Trust, and the Future of Vulnerability Disclosure

https://www.lawfaremedia.org/article/accusation--trust--and-the-future-of-vulnerability-disclosure
1•ano-ther•4m ago•0 comments

Apple Predicted Siri AI in 1987

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

Predicting Build Cache Time Savings with Quick Connect

https://bitrise.io/blog/post/predicting-build-cache-time-savings-with-quick-connect
1•viktorbenei•6m ago•0 comments

Has China Obtained The World’s Most Important Machine?

https://www.economist.com/china/2026/07/05/has-china-obtained-the-worlds-most-important-machine
2•karakoram•7m ago•1 comments

HN: Project Aetheris – Open-source fluid dynamics to replace chemical cooling

https://github.com/PureWaterArtist/VortexArt88-
2•VortexArt88•7m ago•0 comments

Don't give Fable all the power

https://starts.live/blog/dont-give-fable-all-the-power
2•sgraphics8•8m ago•0 comments

Flock Defense "No Expectation of Privacy in Public" Is Wrong

https://ipvm.com/reports/flock-no-privacy-public
2•jhonovich•9m ago•0 comments

Fin: A Jellyfin and Subsonic client for the terminal

https://tangled.org/tsiry-sandratraina.com/fin
2•birdculture•9m ago•0 comments

Marc Andreessen Says One Job Is Mostly Safe from AI: Venture Capitalist

https://gizmodo.com/marc-andreessen-says-one-job-is-mostly-safe-from-ai-venture-capitalist-200059...
2•davidw•9m ago•0 comments

Record-Breaking Ocean Drilling Reveals Why Japan's 2011 Tsunami Was So Deadly

https://www.sciencedaily.com/releases/2026/06/260625060220.htm
2•karakoram•10m ago•0 comments

Canadian spy agency hacked drug traffickers, extremists and a ransomware gang

https://techcrunch.com/2026/07/06/canadian-spy-agency-says-it-hacked-drug-traffickers-extremists-...
2•pier25•11m ago•0 comments

AI surveillance is being supercharged – and it will chill social progress

https://www.theguardian.com/commentisfree/2026/jul/06/ai-surveillance-policy
2•diogenes_atx•11m ago•0 comments

AI that detects conflicts 72 hours early(validated against Ukraine2022)

https://github.com/eshanth23/sentinel
2•eshanth22•11m ago•0 comments

The Fun Shortage Is Real, and It's Making America Miserable

https://www.bloomberg.com/news/features/2026-07-02/why-hotels-theme-parks-and-summer-camps-are-ha...
2•pavel_lishin•13m ago•0 comments

How to Make an Agent Know It Screwed Up

https://justsomebody.dev/blog/how-to-make-an-agent-know-it-screw-up/
2•rafal_opilowski•13m ago•0 comments

Show HN:I Made a Mac Native Excalidraw (Open Sourced)

https://github.com/zpphxd/whitespace
2•z_phxd•14m ago•0 comments

Chrome Extensions, 22M Users, One Undisclosed Offense Each

https://www.hermandaniel.com/blog/20260705-40-chrome-extensions/
2•kekqqq•14m ago•0 comments

Supporting wildland firefighters and their families when tragedy strikes

https://wffoundation.org/
2•mooreds•15m ago•0 comments

The Download: South Korea's hottest bachelors, and advancing eye transplants

https://www.technologyreview.com/2026/07/06/1140172/the-download-south-korea-ai-chipworkers-eye-t...
2•joozio•16m ago•0 comments

Essential Items for Your Hurricane Supply Kit and Generator Safety

https://www.nesthealth.com/hurricane-supply-kit
2•mooreds•16m ago•0 comments

Microsoft once tried to use MS SQL Server in windows file system

https://deepsystemstuff.com/how-microsoft-once-tried-to-use-ms-sql-server-in-windows-file-system/
3•theanonymousone•17m ago•2 comments

Protecting your Supabase projects from NPM supply chain attacks

https://supabase.com/blog/protecting-your-supabase-projects-from-npm-supply-chain-attacks
2•thinkingemote•17m ago•1 comments

A whole suite of privacy tools that run in the browser

https://metamarshal.com/apps
2•milindsoorya•17m ago•0 comments

The Supreme Court Just Lit a Fuse Under Flock's License Plate Camera Empire

https://www.yahoo.com/news/politics/articles/supreme-court-just-lit-fuse-130900307.html
4•bilsbie•20m ago•0 comments

US judge rejects Elon Musk bid set aside Twitter fraud verdict

https://www.reuters.com/world/us-judge-rejects-elon-musk-bid-set-aside-twitter-fraud-verdict-2026...
5•enlightpixel•21m ago•0 comments

Microsoft, AWS and Anthropic are spending billions – and not on better models

https://thenewstack.io/microsoft-frontier-forward-deployed/
3•Brajeshwar•22m ago•0 comments

Microsoft Lays Off Nearly 5K Employees Across Xbox, Commercial Sales

https://techcrunch.com/2026/07/06/microsoft-lays-off-nearly-5000-employees-across-xbox-commercial...
4•karakoram•22m ago•1 comments