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•8mo ago

Comments

panstromek•8mo 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•8mo 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•8mo 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_•8mo 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_•8mo 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•8mo 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•8mo 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

Ask HN: How is your work making the world a better place?

1•AbstractH24•40s ago•0 comments

Why I Keep Returning to Middle-Earth

https://www.nytimes.com/2025/12/19/opinion/tolkien-grief-lord-rings.html
1•handfuloflight•1m ago•0 comments

'Big Short' investor accuses AI hyperscalers of artificially boosting earnings (2025)

https://www.cnbc.com/2025/11/11/big-short-investor-michael-burry-accuses-ai-hyperscalers-of-artif...
2•1vuio0pswjnm7•2m ago•0 comments

Relationship Between Artist and Computer

https://www.atariarchives.org/artist/preface.php
1•alien0006•2m ago•1 comments

Bad Apple but it's played with cargo compilation output

https://old.reddit.com/r/rust/comments/1q3rrt0/media_bad_apple_but_its_played_with_cargo/
2•afdbcreid•3m ago•0 comments

A man who paves India's roads with old plastic (2018)

https://www.theguardian.com/world/2018/jul/09/the-man-who-paves-indias-roads-with-old-plastic
1•mooreds•5m ago•0 comments

Stop Playing Flappy Bird with Your New Year's Goals

https://suntreeapps.com/blog/posts/new-years-goals-difficulty-curve/
1•kenshi•6m ago•0 comments

Joke Father

https://jokefather.com/
1•fisenkodv•10m ago•0 comments

Enclose.horse

https://enclose.horse
1•justicz•16m ago•0 comments

Finley: Artificial Intelligence is making old guys obsolete

https://www.usatoday.com
1•cebert•19m ago•0 comments

High-level is the goal (but why?) [video]

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

Personal notes of things I need to master, as AI writes most of the code now

https://pradyumnachippigiri.dev/blogs/engineers-future
2•PraddyChippzz•21m ago•0 comments

Meta releases open data to train General AI Co-Scientists

https://huggingface.co/datasets/facebook/research-plan-gen
1•shash42•29m ago•0 comments

Show HN: PokéPath TD – Free Pokémon tower defense game

https://pokepathgame.com
1•airobus•39m ago•0 comments

Building Privacy Preserving RAG with Homomorphic Encryption

https://www.subhashdasyam.com/2025/11/building-privacy-preserving-rag-with.html
1•dxsecarch•40m ago•0 comments

Question for Engineering Leaders

https://shadowscoping.com/
2•rezat•41m ago•2 comments

Rapid Validation of Product Concepts with AI

https://luvsheth.com/p/rapid-validation-of-product-concepts
1•Reviving1514•41m ago•1 comments

Somebody Build This

1•Caritaspax•44m ago•3 comments

Who's in charge of Venezuela and what happens next?

https://www.bbc.com/news/articles/crmlz7r0zrxo
6•SilverElfin•47m ago•10 comments

Show HN: CloudSlash – Find AWS waste and generate Terraform state rm commands

1•drskyle•47m ago•0 comments

AGI Is Here

https://www.robinsloan.com/winter-garden/agi-is-here/
3•cmod•50m ago•2 comments

'Chinese Peptides' Are the Latest Biohacking Trend in the Tech World

https://www.nytimes.com/2026/01/03/business/chinese-peptides-silicon-valley.html
1•bookofjoe•51m ago•2 comments

They Said AI Would Replace You by Now

https://www.youtube.com/watch?v=dH_UvWmvny0
1•cable2600•51m ago•0 comments

Americans Choosing Cremation at Historic Rates, NFDA Report Finds

https://nfda.org/news/media-center/nfda-news-releases/id/9772/americans-choosing-cremation-at-his...
3•toomuchtodo•52m ago•1 comments

Damn Vulnerable AI Bank – Practice AI Security

https://dvaib.com
1•dxsecarch•52m ago•0 comments

Show HN: A Android Color Detection Auto Clicker with no full-screen ads

1•dopifier•53m ago•0 comments

Berlin power outages after left-wing anarchist attack on power cables

https://www.irishtimes.com/world/europe/2026/01/04/berlin-power-outages-after-left-wing-anarchist...
3•wslh•58m ago•1 comments

Don't Forget the WAL: How I Lost SQLite Data in Podman Containers

https://bkiran.com/blog/sqlite-containers-data-loss
5•thunderbong•59m ago•1 comments

Wanderly AI Travel App Waitlist

https://waitlister.me/p/wanderly
1•CuylerM•1h ago•1 comments

During Helene, I just wanted a plain text website

https://sparkbox.com/foundry/helene_and_mobile_web_performance
34•CqtGLRGcukpy•1h ago•24 comments