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

Quicksand

https://en.wikipedia.org/wiki/Quicksand
2•cl3misch•4m ago•0 comments

Most people seeking green cards must now apply from outside US

https://www.bbc.com/news/articles/cgrpz4l1klgo
2•Lyngbakr•9m ago•0 comments

COMP 115: Databases

https://geophile.com/115/
1•tosh•12m ago•0 comments

Prompt engineering is dead, but Claude still tries

https://blog.exe.dev/prompt-engineering-is-dead
1•helloplanets•13m ago•0 comments

Human factors comparison of a procedural and nonprocedural query language (1981)

https://dl.acm.org/doi/10.1145/319628.319656
1•tosh•17m ago•0 comments

Cool New AI Meetup

https://greenvilleAI.coffee/
1•andytratt•21m ago•0 comments

Stanislav Kurilov

https://en.wikipedia.org/wiki/Stanislav_Kurilov
1•chistev•26m ago•0 comments

Gudlaugur Fridporsson

https://en.wikipedia.org/wiki/Gu%C3%B0laugur_Fri%C3%B0%C3%BE%C3%B3rsson
1•chistev•27m ago•0 comments

Modulejail: Proactively shrink a Linux host's kernel-module attack surface

https://github.com/jnuyens/modulejail
1•thunderbong•28m ago•0 comments

Kalshi and Polymarket Are Spoiling Reality TV Shows

https://variety.com/2026/tv/news/kalshi-polymarket-spoilers-reality-studios-1236756590/
1•thm•32m ago•0 comments

We ended up with Palantir and how to replace it

https://berthub.eu/articles/posts/some-notes-on-palantir/
2•ahubert•33m ago•0 comments

Ask HN: Where AI Researchers Congregate?

1•kosolam•33m ago•0 comments

More Dads Are Scaling Back at the Office for Kids and Housework

https://www.wsj.com/lifestyle/careers/more-dads-are-scaling-back-at-the-office-for-kids-and-house...
1•Anon84•36m ago•0 comments

Technical Coaching: A Side-Quest for Architects

https://www.youtube.com/watch?v=2cqgDKN48ak
1•RebootStr•44m ago•0 comments

The AI Superstars Who Say a 'Vibe Slop' Crisis Is Coming

https://www.wsj.com/tech/ai/vibe-coding-slop-ai-tools-e6a99394
1•doener•45m ago•0 comments

Show HN: Directionally bad – a newsletter about risks of AI centralization

https://deaination.substack.com/p/directionally-bad-issue-002
2•sultee•47m ago•0 comments

Supply chain attacks and OSS sustainability go hand in hand

https://twitter.com/mitchellh/status/2057567975826395606
1•tosh•50m ago•0 comments

Dario and Daniela Amodei on Oprah [video]

https://www.youtube.com/watch?v=w5dJqHilu5s
1•kerim-ca•54m ago•0 comments

Did Google's AI agents build an operating system for $916?

https://www.normaltech.ai/p/did-googles-ai-agents-really-build
1•smartmic•54m ago•0 comments

What spec-driven development gets wrong

https://www.augmentcode.com/blog/what-spec-driven-development-gets-wrong
2•fagnerbrack•1h ago•1 comments

The AI Great Leap Forward (A Warning)

https://mamund.substack.com/p/the-ai-great-leap-forward-a-warning
2•fagnerbrack•1h ago•0 comments

- -dangerously-skip-reading-code – olano.dev

https://olano.dev/blog/dangerously-skip/
1•fagnerbrack•1h ago•0 comments

Post-Primary-Care

https://fulghum.io/post-primary-care
1•jordanf•1h ago•0 comments

Obsidian: The free and flexible app for your private thoughts

https://obsidian.md/
1•doener•1h ago•0 comments

The success of 'natural language programming'

https://brooker.co.za/blog/2025/12/16/natural-language.html
2•jruohonen•1h ago•0 comments

One solution for Maine's struggling fishing industry? Give fillets away for free

https://www.npr.org/2026/05/23/nx-s1-5756374/food-fish-maine-portland-donations
1•defrost•1h ago•0 comments

Ask HN: Anyone catch the bug in codex with /goals?

1•Justlayme•1h ago•0 comments

3 years on from laying off over 1k, Hasbro encouraging survivors to not unionize

https://www.pcgamer.com/gaming-industry/3-years-on-from-laying-off-over-1-000-people-hasbro-and-w...
3•Michelangelo11•1h ago•0 comments

The Documentary That Drops You into a Class War [with Murder] [video]

https://www.youtube.com/watch?v=IlId4uqzUfA
1•burnt-resistor•1h ago•0 comments

The Pkg.go.dev API

https://go.dev/blog/pkgsite-api
1•tjek•1h ago•0 comments