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

Comments

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

I built an AI operating system for car shopping and Research

https://www.vehique.ai/
1•geboss•41s ago•1 comments

Show HN: DevProof – Verified developer portfolios using Code Complexity and AI

https://dev-proof-portfolio.vercel.app
1•dhruv0206•1m ago•0 comments

Coded my own AI router, named it Darius

https://apps.apple.com/ae/app/darius-ai/id6757723489
1•mazenkurdi•2m ago•1 comments

Statutory: A Turing-complete language in 17th-century legal English

https://github.com/scordata/statutory
1•PaulHoule•3m ago•0 comments

ADHD as a circadian rhythm disorder: evidence and implications for chronotherapy

https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1697900/full
1•clumsysmurf•6m ago•0 comments

The Quiet Surrender to AI

https://jcmartinez.dev/post/the-quiet-surrender-to-ai
1•jcmartinezdev•6m ago•0 comments

The Human Intelligence Blueprint

https://predbra.in/p/the-human-intelligence-blueprint
1•chickenhun•6m ago•0 comments

ICE Is Crashing the US Court System in Minnesota

https://www.wired.com/story/ice-crashing-us-court-system-minnesota/
4•salkahfi•7m ago•0 comments

StatusNow.dev now supports inbound monitors

https://statusnow.dev
1•nkruger•8m ago•0 comments

Train and inference GPT in 243 lines of pure, dependency-free Python

https://twitter.com/karpathy/status/2021694437152157847
1•Luc•8m ago•0 comments

The cure for selfishness? A shot of electricity to the brain

https://www.thetimes.com/uk/science/article/cure-selfishness-electricity-brain-science-c3jh3hm9k
1•bookofjoe•9m ago•1 comments

Show HN: Speech Brief – neutral summaries of public statements

https://speechbrief.com/
1•Sinfected•9m ago•0 comments

We built an AI design tool that works with your actual React components

https://www.uxpin.com/studio/blog/forge-ai-design-tool-react-components/
1•andrewUX•9m ago•0 comments

YouTube Cracks Down on Brave

https://old.reddit.com/r/brave/comments/1r1ek23/youtube_issue/
3•snapetom•9m ago•1 comments

microgpt.py

https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95
1•tosh•11m ago•0 comments

Tiles Music Player

https://emilechuffart.com/project/tiles
1•skogstokig•11m ago•0 comments

Harness engineering: leveraging Codex in an agent-first world

1•dnw•12m ago•0 comments

YouTube Revenue for 2025: $60B, Bigger Than Netflix

https://variety.com/2026/digital/news/youtube-2025-total-revenue-ads-subscriptions-alphabet-earni...
1•homarp•13m ago•0 comments

Apple's Siri revamp reportedly delayed again

https://techcrunch.com/2026/02/11/apples-siri-revamp-reportedly-delayed-again/
2•salkahfi•15m ago•0 comments

How Many Lives Has FSD (Supervised) Saved?

https://fsdlifetracker.com/
3•tengio•18m ago•4 comments

Build your own Claude Code

https://app.codecrafters.io/courses/claude-code/overview
1•vedantnene•19m ago•0 comments

Sovereign vs. Corporate Debt and Default: More Similar Than You Think

https://www.hks.harvard.edu/centers/mrcbg/programs/growthpolicy/sovereign-vs-corporate-debt-and-d...
1•toomuchtodo•20m ago•0 comments

What Your Claude Code Agents Don't Need to Be Told

https://helderberto.com/posts/what-your-claude-code-agents-dont-need-to-be-told
1•helderburato•22m ago•0 comments

Age of Empires: 25 years of pathfinding problems with C++ [video]

https://www.youtube.com/watch?v=lEBQveBCtKY
1•annexrichmond•22m ago•0 comments

Teaching Claude Code Your Standards

https://helderberto.com/posts/teaching-claude-code-your-standards
1•helderburato•22m ago•0 comments

Show HN: Know Before You Vote – O/S tool linking candidates to Epstein documents

https://github.com/wjcornelius/know-before-you-vote
2•BillCorOnBass•24m ago•0 comments

Dawson's Creek star James Van Der Beek dies aged 48

https://news.sky.com/story/dawson-creeks-james-van-der-beek-dies-aged-48-13506425
3•austinallegro•25m ago•1 comments

Apple at 50

https://computerhistory.org/apple-at-50/
2•rbanffy•26m ago•0 comments

Covering electricity price increases from our data centers

https://www.anthropic.com/news/covering-electricity-price-increases
1•ryanhn•26m ago•0 comments

Show HN: bunx quran.sh

https://github.com/smashah/quran.sh
1•smashah•27m ago•0 comments