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

Designer: Passed 1000 Commits

1•kaizenb•1m ago•0 comments

Companies' AI Bills Are Bigger Than Ever – and Coming Due

https://www.bloomberg.com/opinion/articles/2026-06-04/the-ai-boom-s-next-test-is-the-roi-worth-th...
1•petethomas•1m ago•0 comments

Radicle Garden: hosted always-on nodes for Radicle

https://radicle.dev/2026/06/02/announcing-radicle-garden
1•lftherios•2m ago•0 comments

Turning YouTube into Cloud Storage [video]

https://www.youtube.com/watch?v=l03Os5uwWmk
1•brandonli28•6m ago•0 comments

Retired SF firefighter dies from lung cancer after Blue Shield denies claims

https://abc7news.com/post/retired-san-francisco-firefighter-ken-jones-dies-lung-cancer-being-deni...
1•iancmceachern•7m ago•0 comments

Persistent Memory for Coding Agents

https://www.agent-memory.dev/
1•ankitg12•9m ago•0 comments

Hscli – A Scriptable Help Scout CLI for Terminals, CI, and AI Agents

https://wavyx.github.io/hscli/
1•wavyx•10m ago•0 comments

AgentRein – Our agent charged $5k by mistake, so we built a rollback enginer

https://www.agentrein.com/
1•AgentReinAi•11m ago•0 comments

The Complete Website Growth Strategy: SEO, GA4, Search Console, and Google Ads

https://medium.com/@allahverdiyev.tural/the-complete-website-growth-strategy-seo-ga4-search-conso...
1•turalall•13m ago•0 comments

Octopus genome and evolution of cephalopod neural, morphological novelties [pdf]

https://www.nature.com/articles/nature14668
1•thunderbong•14m ago•0 comments

Zig Structs of Arrays (2024)

https://andreashohmann.com/zig-struct-of-arrays/
1•Tomte•15m ago•0 comments

H-1B Crackdown on Indian Workers Erodes a Texas Real Estate Boom

https://www.bloomberg.com/features/2026-dallas-h1b-housing-market
1•petethomas•17m ago•0 comments

Time for a re-think of long-term antidepressant use

https://adelaide.edu.au/about/news/2026/time-for-a-re-think-of-long-term-antidepressant-use/
1•XzetaU8•19m ago•0 comments

Popular Weight-Loss Drug Found to Slow Biological Aging in Landmark Human Trial

https://scitechdaily.com/popular-weight-loss-drug-found-to-slow-biological-aging-in-landmark-huma...
1•SubiculumCode•19m ago•0 comments

'An equal and habitable world is possible' Vision for planetary survival

https://www.theguardian.com/environment/2026/jun/04/world-inequality-lab-equality-academics-plane...
1•defrost•20m ago•1 comments

Law professors prefer AI over peer answers 75% of the time [pdf]

https://law.stanford.edu/wp-content/uploads/2026/06/salinas_et_al.pdf
1•jlaneve•21m ago•0 comments

Typeface Specimens of Houston Mono

https://arslan.io/2026/05/31/typeface-specimens-of-houston-monotm/
1•wapasta•29m ago•0 comments

Is Respectful Feedback Dead?

2•likelybyte•32m ago•1 comments

Floating Point: The Origin Story

https://thechipletter.substack.com/p/floating-point-the-origin-story
1•klelatti•33m ago•0 comments

Opting Out of the AI Boom

https://www.bloomberg.com/opinion/newsletters/2026-06-03/opting-out-of-the-ai-boom
2•m-hodges•33m ago•0 comments

Optimistic Provide: How We Made IPFS Content Publishing 10x Faster

https://probelab.io/blog/optimistic-provide/
1•dennis-tra•35m ago•0 comments

Embodied Cognition and Agentic AI

https://lemire.me/blog/2026/05/28/embodied-cognition-and-agentic-ai/
1•signa11•36m ago•0 comments

Mixfont: State-of-the-art Font Generation AI Model

https://www.npmjs.com/package/mixfont
2•polaroid•36m ago•0 comments

Free Birth Chart, Today's Sky and Synastry Calculator – AstrologyWiki

https://www.astrologywiki.com/
1•Hardd•37m ago•0 comments

Telus Digital Breach Exposes Data

https://www.techradar.com/pro/security/telus-digital-confirms-breach-hackers-allegedly-stole-almo...
3•redmug•37m ago•0 comments

My Software North Star

https://kristoff.it/blog/north-star/
1•signa11•38m ago•0 comments

Privacy Is Not Dead: Beware the All-or-Nothing Mindset

https://www.privacyguides.org/articles/2025/02/17/privacy-is-not-dead/
3•Cider9986•39m ago•0 comments

The community-first software era

https://werd.io/the-community-first-software-era/
1•benwerd•44m ago•0 comments

A discovery about GCC's unidirectional rotation algorithm

https://devblogs.microsoft.com/oldnewthing/20260603-00/?p=112378
1•soheilpro•44m ago•0 comments

Trustcraft: How we build AI products at Vanta

https://www.vanta.com/resources/how-we-build-ai-products-at-vanta
1•hamelj•45m ago•0 comments