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: Dentistry, Software Engineering and Health Informatics

1•CoffeeDeSanta•1m ago•0 comments

Is the Standard Model overfitting or am I curve-fitting?

2•albert_roca•8m ago•1 comments

Cursor CEO warns vibe coding builds 'shaky foundations'

https://fortune.com/2025/12/25/cursor-ceo-michael-truell-vibe-coding-warning-generative-ai-assist...
1•_____k•9m ago•0 comments

Show HN: I created interactive buttons for chatbots

1•itsm0rty•10m ago•0 comments

White Christmas Rabbit Hole

https://www.loganseaburg.com/blog/whitest-christmas
1•expensive_news•10m ago•0 comments

Show HN: CLI to share secrets using one-time public keys

https://github.com/scosman/secret_share
1•scosman•10m ago•0 comments

AI reflections from a top.1% ChatGPT user

https://stocktalknewsletter.substack.com/p/ai-reflections-from-a-top-01-chatgpt
1•pcprincipal•13m ago•0 comments

Explaining Britain's Industrial Revolution: The Major Theories

https://frompovertytoprogress.substack.com/p/explaining-britains-industrial-revolution
1•paulpauper•14m ago•0 comments

In defense of slop: When costs fall, average quality does too

https://newsletter.rootsofprogress.org/p/in-defense-of-slop
2•paulpauper•16m ago•0 comments

Orchestrating 5000 Workers Without Distributed Locks: Rediscovering TDMA

1•Horos•16m ago•0 comments

We removed 80% of our agent's tools

https://vercel.com/blog/we-removed-80-percent-of-our-agents-tools
1•oscarfr•20m ago•1 comments

All I Want for Xmas Is Your Secrets: LangGrinch Hits LangChain (CVE-2025-68664)

https://cyata.ai/blog/langgrinch-langchain-core-cve-2025-68664/
3•shahartal•24m ago•1 comments

The Time Spiral:How Quantum Error Correction Enabled Faster-Than-Light Signaling

1•EGreg•25m ago•0 comments

Ollama token exfiltration still present in latest release

1•ajtazer•29m ago•1 comments

Duckstation now supports the original SCPH-1002 PlayStation GPU

https://github.com/stenzek/duckstation/commit/b55f4041bf02b2bf7f0711b7f83e8b6a1971cd42
1•bane•29m ago•1 comments

Show HN: Whisper.nvim – local speech to text in Neovim

https://github.com/Avi-D-coder/whisper.nvim
1•Avi-D-coder•30m ago•2 comments

The Company That Wants to Be the Last One You'll Ever Need

https://blog.hermesloom.org/p/the-company-that-wants-to-be-the
1•sigalor•31m ago•1 comments

Räuchermann

https://en.wikipedia.org/wiki/R%C3%A4uchermann
1•martialg•32m ago•0 comments

The Birth of a New Platform

https://vivekhaldar.com/articles/birth-of-a-new-platform/
1•gandalfgeek•32m ago•0 comments

What are you building in AI?

1•udit_50•32m ago•0 comments

Show HN: Usync – A fast, unified file copy tool written in Rust

https://github.com/BSD-Yassin/usync
2•rlamarenjoyer•33m ago•1 comments

Show HN: After 37 failed interviews, I built the prep tool I wish I had

1•ilyasseisov•33m ago•0 comments

How to recognise a genuine password request

https://eclecticlight.co/2025/12/18/how-to-recognise-a-genuine-password-request/
1•naves•34m ago•0 comments

Show HN: Pyfrontkit Update

1•Edybrown•39m ago•0 comments

India Is on a Himalayan Building Spree to Prepare for a Clash with China

https://www.wsj.com/world/asia/india-is-on-a-himalayan-building-spree-to-prepare-for-a-clash-with...
2•JumpCrisscross•40m ago•1 comments

EV sales in Norway increased from 1% of sales in 2010 to 96% in early 2025

https://www.balkanweb.com/en/Norway-the-first-country-to-use-only-electric-vehicles/
3•bookofjoe•41m ago•1 comments

The 'doorman fallacy': why careless adoption of AI backfires so easily

https://theconversation.com/the-doorman-fallacy-why-careless-adoption-of-ai-backfires-so-easily-2...
3•scentoni•41m ago•0 comments

LLM Learning Resources

https://nocomplexity.com/documents/fossml/LLMLearning.html
1•runningmike•46m ago•1 comments

Tight grocery budget for the holidays? Try a "recession recipe"

https://www.marketplace.org/story/2025/11/24/her-recession-recipe-videos-are-a-hit-in-this-economy
1•mooreds•46m ago•1 comments

Misusing Chesterton's Fence (2022)

https://www.econlib.org/misusing-chestertons-fence/
1•yagizdegirmenci•46m ago•0 comments