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

Anthropic co-founder to present AI encyclical alongside Pope Leo XIV

https://www.vaticannews.va/en/pope/news/2026-05/pope-leo-xiv-first-encyclical-magnifica-humanitas...
1•cucho•4m ago•0 comments

Don't Sign in with Google

https://twitter.com/the_smart_ape/status/2055941633179283523
2•DeusExMachina•4m ago•0 comments

Built an API client with age-encrypted vault for secrets

https://github.com/xaaha/hulak
1•xaaha•8m ago•1 comments

Meta Reassigns 7k Employees to Focus on A.I

https://www.nytimes.com/2026/05/18/technology/meta-reassigns-7000-employees-ai.html
2•xnx•9m ago•1 comments

MIT 14.12 Economic Applications of Game Theory, Fall 2025

https://www.youtube.com/watch?v=WRibE2nt8wM
2•mdp2021•11m ago•0 comments

Key landmark regulations against 'forever' toxins removed by Trump admin

https://www.cnn.com/2026/05/18/health/trump-pfas-rollback-wellness
2•zzzeek•12m ago•0 comments

Intern gets inspired by Bun to rewrite codebase into assembly

https://twitter.com/KashyapVisharad/status/2055239392147718394
1•sundarurfriend•14m ago•1 comments

Canceled by Hinge

https://www.theatlantic.com/ideas/2026/03/hinge-banning-dating-apps-matchgroup/686445/
2•8f2ab37a-ed6c•16m ago•1 comments

APIMatic – Type-safe SDKs for 7 languages from an OpenAPI spec

https://www.apimatic.io
1•m3h•16m ago•1 comments

Click

https://clickclickclick.click/
2•andrewzeno•19m ago•0 comments

Manchester Code Made Bits Behave

https://spectrum.ieee.org/manchester-code-ieee-milestone
1•jnord•19m ago•0 comments

Super-Adaptable Mayhem 10 Swarming Drone Evolved from the Switchblade

https://www.twz.com/air/super-adaptable-mayhem-10-swarming-drone-evolved-from-the-switchblade
2•breve•21m ago•0 comments

My blog was hacked and Claude and I just fixed it

https://lengrand.fr/my-blog-was-hacked-and-claude-and-i-just-fixed-it/
1•jlengrand•22m ago•0 comments

An asteroid discovered days ago will narrowly miss Earth – RNZ News

https://www.rnz.co.nz/news/world/595636/an-asteroid-discovered-days-ago-will-narrowly-miss-earth
4•colinprince•24m ago•0 comments

If AI can translate instantly, why learn another language?

https://theconversation.com/if-ai-can-translate-instantly-why-learn-another-language-280310
1•0in•24m ago•0 comments

A New Look for Express

https://expressjs.com/en/blog/2026-05-18-a-new-look-for-express/
1•patrikcsak•25m ago•0 comments

Musk says Tesla unsupervised FSD will be 'widespread' in the US by year-end

https://electrek.co/2026/05/18/musk-unsupervised-fsd-widespread-us-end-of-year-smart-mobility-sum...
2•breve•25m ago•0 comments

Human Bottlenecks

https://borretti.me/article/human-bottlenecks
2•jger15•27m ago•0 comments

Starship's Twelfth Flight Test

https://www.spacex.com/launches/starship-flight-12
2•bookmtn•28m ago•0 comments

Updated Debian 13: 13.5 released

https://www.debian.org/News/2026/20260516
1•doener•28m ago•0 comments

Show HN: FlashAttention-2 in Cute, from Scratch

https://blog.echen.io/p/flashattention-2-in-cute-from-scratch/
1•echen314•29m ago•1 comments

Tech bros say AI can be your best friend. Experts explain why it can't

https://www.rnz.co.nz/life/wellbeing/tech-bros-say-ai-can-be-your-best-friend-experts-explain-why...
3•billybuckwheat•29m ago•0 comments

AI-Governed EV Charging Could Extend Battery Life Nearly 23%

https://www.thedrive.com/news/ai-governed-ev-charging-could-extend-battery-life-nearly-23
3•breve•29m ago•0 comments

Show HN: Handoff – preserve coding context when agents run out of tokens

https://github.com/TStansel/handoff
1•tstansel•30m ago•0 comments

EPA and HHS propose rescinding parts of Biden's PFAS limits in drinking water

https://www.washingtonexaminer.com/policy/energy-and-environment/4573000/epa-hhs-propose-rescindi...
2•petethomas•30m ago•0 comments

Parallel Cities

https://vicnaum.github.io/parallel-cities/
1•bookofjoe•31m ago•0 comments

Show HN: Clawputer – A personal AI assistant with a real computer and memory

https://clawputer.app
1•iacguy•31m ago•0 comments

The Colorado River Is on the Brink of Disaster

https://www.wsj.com/us-news/climate-environment/the-colorado-river-is-on-the-brink-of-disaster-62...
2•impish9208•31m ago•1 comments

Why liquidity monitoring is insufficient for EVM execution systems

https://blog.bridgexapi.io/liquidity-lifecycle-intelligence-for-evm-execution-systems
1•Bridgexapi•34m ago•0 comments

New reality show for software engineers – episode 1 [video]

https://www.youtube.com/watch?v=6KCi8womtSA
3•jdegoes•37m ago•0 comments