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

'Every dollar is mobile': California's rich snap up New Zealand 'golden visas'

https://www.ft.com/content/1cf8821e-7ffa-4620-89f9-f56c11a6298e
1•petethomas•3m ago•0 comments

What Is Work Like for a Low-Income Worker in China – Inside a Factory [video]

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

Breachquery.com – Continuous Breach Monitoring and Response Intelligence

https://www.breachquery.com/
1•azonez•11m ago•0 comments

Evading Chain-of-Thought Monitoring Through Model Poisoning

https://arxiv.org/abs/2608.02820
1•sbulaev•18m ago•0 comments

I've spent 4 years building an offline first FOSS novel writing app: Hammer

https://hammer.ink/
1•Wavesonics•22m ago•1 comments

Ship Safe, an open source security scanner for coding agents

https://github.com/asamassekou10/ship-safe
2•asamassekou•22m ago•0 comments

Show HN: Sift – MCP aggregator that exposes 2 tools instead of hundreds

https://github.com/Narasimha1997/sift
1•Narasimha1997•24m ago•0 comments

Pinal County Sheriff Announces Plan to End Flock, Citing Fourth Amendment

https://www.jens2cents.com/p/too-intrusive-pinal-county-flock
2•sssilver•29m ago•0 comments

Show HN: Wallfacer – A terminal session manager for Claude Code, and more

https://github.com/pradipta/wallfacer
3•pradiptasarma•32m ago•1 comments

Qdoba Pulls Jalapenos as US Officials Probe Salmonella Outbreak

https://www.bloomberg.com/news/articles/2026-08-05/qdoba-pulls-jalapenos-as-us-officials-probe-sa...
1•petethomas•42m ago•0 comments

Nikita Bier steps down as X's head of product

https://techcrunch.com/2026/08/05/nikita-bier-steps-down-as-xs-head-of-product/
1•firasd•43m ago•0 comments

Governments are making a dangerous bet on the AI boom

https://www.economist.com/leaders/2026/08/05/governments-are-making-a-dangerous-bet-on-the-ai-boom
32•andsoitis•44m ago•6 comments

DeepSeek Plans 'Significant' Price Increase for Its AI Services

https://www.bloomberg.com/news/articles/2026-08-06/deepseek-plans-significant-price-increase-for-...
3•petethomas•44m ago•0 comments

Device that harvests water from thin air wins the James Dyson Award (2016)

https://www.cawater-info.net/all_about_water/en/?p=4978
1•peter_d_sherman•45m ago•0 comments

Open source tools for Quantum resistance security Post Quantum Protection

https://github.com/SCDcomputing/PostQuantumProtection
1•CyberSpin•47m ago•0 comments

Compliant Mechanisms Lecture Series [video]

https://www.youtube.com/watch?v=j1lT1RtKnms&list=PLWeErkRyxkhKL_pjYBCR2jYcvAh5PaXoP
1•o4c•50m ago•0 comments

FDA approves first mRNA flu shot, from Moderna

https://www.nbcnews.com/health/health-news/fda-approves-1st-mrna-flu-shot-moderna-rcna590599
2•OutOfHere•53m ago•2 comments

Google's Top AI Brains Are Leaving–and Launching Their Own AI Startup

https://www.wired.com/story/jeff-dean-google-discovery-loop-startup/
1•dnikitan97•54m ago•0 comments

SpaceX First Report Card

https://askmelon.com/beta/articles/2026-08-05T0100-eighteen-billion-in-ninety-days
1•alvations•55m ago•0 comments

Accelerating biomass loss from forest disturbances across Europe

https://www.nature.com/articles/s41561-026-02032-y
1•littlexsparkee•57m ago•0 comments

'Only one conclusion': study suggests life on Earth arose twice

https://www.sciencealert.com/radical-study-suggests-life-on-earth-arose-from-non-living-matter-twice
2•arto•57m ago•0 comments

Broadcaster Wins Broad US Blocking Injunction Covering Non-Existing Pirate Sites

https://torrentfreak.com/broadcaster-wins-broad-u-s-blocking-injunction-covering-pirate-sites-tha...
1•gslin•1h ago•0 comments

Microsoft is serious about fixing Windows, and it's doing things right this time

https://www.windowscentral.com/microsoft/windows-11/i-tested-5-major-changes-and-improvements-com...
1•thunderbong•1h ago•4 comments

LinuxViz – 3D Linux Kernel Architecture Explorer

https://tomasantunes.github.io/LinuxViz/
4•tomasantunes89•1h ago•1 comments

Black lung rates in Appalachia are high as the 1970s, thousands of miners sick

https://www.npr.org/2026/08/05/nx-s1-5894884/appalachia-black-lung-coal-miners-silica-dust
9•Jimmc414•1h ago•1 comments

Show HN: Is It an OS?

https://iiao.algor.ist
1•indydevs•1h ago•0 comments

QoD: Is Lucid in the early stages of failure?

https://www.thetruthaboutcars.com/cars/news-blog/question-of-the-day-is-lucid-in-the-early-stages...
1•RickJWagner•1h ago•0 comments

Libraries Are Leading the Fight for Physical Media Ownership

https://www.arl.org/blog/consumers-are-worried-about-the-loss-of-physical-media-ownership-librari...
2•donohoe•1h ago•0 comments

Show HN: MusicMonitor – Turn your extra monitor into a Spotify now-playing view

https://github.com/j-sofia/MusicMonitor
2•j-sofia•1h ago•1 comments

The Investors Whose SpaceX Shares Vanished Before They Could Cash In

https://www.wsj.com/finance/stocks/spacex-ipo-spv-investors-2698a174
7•JumpCrisscross•1h ago•0 comments