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

What's the Point of Theory in Biology?

https://nikomc.com/essays/theory.html
1•mailyk•1m ago•0 comments

The Free Lunch Is Over (2005) [pdf]

https://www.cs.utexas.edu/~lin/cs380p/Free_Lunch.pdf
1•tosh•1m ago•0 comments

The problem with the P/E ratio

https://asymco.com/2026/05/26/the-problem-with-the-p-e-ratio/
1•ndr42•1m ago•0 comments

High-VRAM GPUs aren't the future of local AI

https://www.xda-developers.com/high-vram-gpus-future-local-ai-unified-memory-mixture-experts/
1•berlianta•2m ago•0 comments

Best Way to Vibe Code?

1•ethigent•4m ago•0 comments

Moving my blog stack to Europe (kind of)

https://philippdubach.com/posts/moving-the-blog-stack-to-europe-kind-of/
1•7777777phil•5m ago•0 comments

Show HN: I made a PoC of a website for French medical students

https://csrf.4lima.de/medquest/index.php
1•JPLeRouzic•5m ago•0 comments

Ask HN: What is your favourite tech talk?

1•chistev•5m ago•0 comments

The Cost of Owning a Home

https://ericturner.dev/posts/cost-of-home-ownership/
3•ggcr•6m ago•0 comments

Rectangles All the Way Down (Dyalog '18) [video]

https://www.youtube.com/watch?v=mK2WUDIY4hk
1•tosh•7m ago•0 comments

Show HN: NeuroFlow 55.8x video inference speedup for Vision Transformers PyTorch

https://github.com/ynnk-research/-NeuroFlow
1•ynnk•7m ago•0 comments

Could Polymarket Influence an Election?

https://www.thenerve.news/p/polymarket-guide-betting-trump-prediction-market-venezuela-farage-uk-...
1•speckx•7m ago•0 comments

How to Build a Fast Website (Front End)

https://hegecoin.com/blog/how-to-build-a-ridiculously-fast-website/
1•itsdayagain•9m ago•0 comments

The Wrong Number: Why the FCC's Robocall Strategy Is Destined to Fail

https://brothke.medium.com/the-wrong-number-why-the-fccs-robocall-strategy-is-destined-to-fail-bb...
1•benrothke•9m ago•0 comments

Anthropic set to close $30B funding at over $900B valuation

https://finance.yahoo.com/sectors/technology/articles/anthropic-set-close-30-billion-203545596.html
1•smooke•10m ago•0 comments

The Future of Advertising Is in Personalized Website Layouts

https://blog.greenpants.net/the-future-of-advertising-is-in-personalized-website-layouts/
1•Greenpants•10m ago•0 comments

Is "colorectal cancer" rising in "young people"?

https://dynomight.net/crc-rates/
1•surprisetalk•11m ago•0 comments

Show HN: Testbump – Automate SemVer by running old tests on new code

https://github.com/ivoputzer/testbump
2•ivoputzer•11m ago•0 comments

The Case for California's Billionaire Wealth Tax

https://www.nytimes.com/interactive/2026/05/26/opinion/wealth-tax-california-billionaire.html
1•tortilla•11m ago•0 comments

AVTR-1 A free, open-source, open weights real time avatar model

https://github.com/avaturn-live/avtr-1
1•ser_man•12m ago•1 comments

What Color is Your Function? (2015)

https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
3•tosh•12m ago•0 comments

Polar: Agentic RL on Any Harness at Scale

https://arxiv.org/abs/2605.24220
1•Brajeshwar•13m ago•0 comments

Uber, Lyft drivers in Massachusetts form first US ride-share union

https://www.reuters.com/business/world-at-work/uber-lyft-drivers-massachusetts-form-first-us-ride...
4•onemoresoop•13m ago•0 comments

Show HN: Vibeshub – Git for your vibe code transcripts

https://vibeshub.ai/
1•bhavya6187•14m ago•0 comments

Pentagon spars with SpaceX over Starlink price hike during Iran war

https://www.reuters.com/business/aerospace-defense/pentagon-spars-with-spacex-over-starlink-price...
1•tartoran•14m ago•0 comments

GitHub Copilot is experiencing degraded performance

https://www.githubstatus.com/incidents/xflkh26pm7vv
2•Mattwmaster58•14m ago•1 comments

How the West Could Turn a Trickle of Water into an Endless Supply

https://reasonstobecheerful.world/water-recycling-interview/
1•speckx•17m ago•0 comments

Supreme Court sides with Trump fight tied to speech curbs on immigration judges

https://www.reuters.com/world/supreme-court-sides-with-trump-fight-tied-speech-curbs-immigration-...
2•tartoran•17m ago•0 comments

The Theroretical Upper Limits of the Stock Market

https://jackmaguire.org/blog/theoretical-upper-limit-us-stock-market/
1•magicroot75•18m ago•0 comments

Germany news: Childfree adults to pay more for elder care

https://www.dw.com/en/germany-news-childfree-adults-to-pay-more-for-elder-care/live-77292208
23•randycupertino•18m ago•8 comments