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

I've Spent 25 Years Studying Loneliness. AI Is About to Make It Worse

https://fortune.com/2026/05/23/loneliness-researcher-ai-companions-social-disconnection-warning/
2•Brajeshwar•3m ago•0 comments

'Future of work' on agenda as NZ govt digital leaders head to Microsoft US HQ

https://www.rnz.co.nz/news/political/596121/future-of-work-on-agenda-as-nz-govt-digital-leaders-h...
4•billybuckwheat•7m ago•0 comments

Garden Grove chemical threat: 40000 evacuated as overheated tank faces explosion

https://www.cnn.com/2026/05/22/us/chemical-spill-orange-county-california
1•amelius•7m ago•0 comments

Edit components and host your website

https://slatehut.com
1•isandeep1995•12m ago•0 comments

Show HN: Runners? This One for You

https://runnerapp.pro/
1•dortal•12m ago•0 comments

Prompts are technical debt too

https://www.seangoedecke.com/prompts-are-technical-debt-too/
1•saikatsg•13m ago•0 comments

Code review is not about catching bugs

https://www.davidpoll.com/2026/02/code-review-is-not-about-catching-bugs/
1•ville•14m ago•0 comments

GateGraph – a gate that decides if an AI agent action may proceed before it runs

https://github.com/humancoreai/Gategraph
1•humancore•17m ago•0 comments

Air France and Airbus found guilty of manslaughter over 2009 plane crash

https://www.bbc.com/news/articles/czd2qmdvmq6o
3•baal80spam•19m ago•0 comments

Planescape: Torment, Part 1: From the Tabletop

https://www.filfre.net/2026/05/planescape-torment-part-1-from-the-tabletop/
1•birdculture•21m ago•0 comments

Claude doesn't know what time it is

https://blog.danielyj.com/blog/please-give-it-a-clock
3•bear_with_me•28m ago•1 comments

European households waste > 70 kg of food per capita yearly

https://www.sciencedirect.com/science/article/pii/S0956053X26002060
1•rustoo•30m ago•0 comments

Google's Gmail to Offer 1GB Email Storage? (2004)

https://m.slashdot.org/story/44639
3•chistev•30m ago•0 comments

Free Quick Fix Design Tools

https://quickfix.tools/design/
1•mlongo•30m ago•1 comments

Ask HN: Why disparage AI while attributing ideas to AI when written with it?

1•amichail•30m ago•6 comments

Show HN: nsS3ui – A non sucking GUI for S3

1•isuleman•32m ago•2 comments

Mercor AI post-training for generalist experts – referral

https://work.mercor.com/jobs/list_AAABnd0_i7HkvuPZUt1LkbpI/generalist-expert
1•elsadek•32m ago•0 comments

Python 1.0.0 is out (1994)

https://groups.google.com/g/comp.lang.misc/c/_QUzdEGFwCo
1•downbad_•34m ago•0 comments

Show HN: Vibe-coded Steam, but in the browser

https://gameghost.manus.space/
5•astlouis44•34m ago•0 comments

GitHub Copilot App

https://github.com/github/app
2•saikatsg•36m ago•1 comments

Reid (Hoffman) AI (2025)

https://2025.siliconvalley.video/speaker/reid-ai/
1•gnabgib•37m ago•0 comments

Using games/cards to learn new skills

1•dominikz•38m ago•0 comments

CLI Printing Press

https://printingpress.dev/
1•archb•41m ago•0 comments

The Particle Comes Alive: Modeling a Particle in Thermal Bath; Langevin Dynamics

https://chillphysicsenjoyer.substack.com/p/the-particle-comes-alive
2•crescit_eundo•45m ago•0 comments

Data Fundamentals Primer for Learning LLM

https://algo-rhythm.dev/en/data/
9•vlumm•46m ago•1 comments

Execs Are Deploying Digital Twins to Do Their Work

https://www.wsj.com/tech/ai/execs-are-deploying-digital-twins-to-do-their-work-9547b375
3•Brajeshwar•46m ago•0 comments

Data Centers Now Consume 6% of US Electricity–and the Backlash Has Begun

https://singularityhub.com/2026/05/22/data-centers-now-consume-6-of-electricity-in-the-us-and-the...
3•cdrnsf•46m ago•0 comments

Agent Is Still a Hardcoded Workflow. It Is Not a Digital Employee Yet

https://kimura.yumiwillems.com/p/your-agent-is-still-a-hardcoded-workflow
3•BehaviorGraph•47m ago•0 comments

When Steve Jobs Grew Up

https://www.thefp.com/p/steve-jobs-leadership-transformation
3•Michelangelo11•49m ago•0 comments

NegPy – Open-source (GPL-3) film negative converter

https://github.com/marcinz606/NegPy
1•marcinz606•51m ago•0 comments