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

What the FTC got wrong in the Google antitrust investigation

https://danluu.com/ftc-google-antitrust/
1•yosefk•1m ago•0 comments

Show HN: I built a forensic accounting engine for divorce

1•cd_mkdir•2m ago•0 comments

Going Through Snowden Documents, Part 3

https://libroot.org/posts/going-through-snowden-documents-part-3/
2•libroot•4m ago•0 comments

The Battle to Stop Clever People Betting

https://twitter.com/nishikoripicks/status/2003793503495594126
1•MrBuddyCasino•4m ago•0 comments

Blue Marble: Next Generation Base Map with Topography and Bathymetry

https://science.nasa.gov/earth/earth-observatory/blue-marble-next-generation/base-topography-bath...
1•bryanrasmussen•9m ago•0 comments

Chrome plugin: Select text on any webpage and instantly search in AI providers

https://chromewebstore.google.com/detail/select-to-search/cphfmdllmpidlnockhipnmlboainodcb
1•rorschach_3•9m ago•1 comments

Spotify Class Action Lawsuit Alleging Discovery Mode Is a 'Pay-for-Play Scheme'

https://www.forbes.com/sites/conormurray/2025/11/05/spotify-hit-with-class-action-lawsuit-allegin...
2•plmpsu•17m ago•0 comments

Ask HN: What's the simplest mechanism that prevents Q&A platforms from decaying?

1•saradev2025•18m ago•1 comments

Flightradar Santa Flight

https://www.flightradar24.com/R3DN053/3d9fb50a
1•mazokum•18m ago•0 comments

We built an AI to analyze 100 biomarkers, then realized it has no intuition

1•adityasinghnx•19m ago•0 comments

A Curl 2025 Review

https://daniel.haxx.se/blog/2025/12/23/a-curl-2025-review/
1•signa11•19m ago•0 comments

Show HN: Personalised Video Message from Santa

https://www.santagram.art/
1•revorad•27m ago•0 comments

Need Advice: Stripe Webhooks Bleeding Between Two SaaS Products

1•hikerell•35m ago•2 comments

Inspect provenance and quarantine info in Providable, a Christmas present

https://eclecticlight.co/2025/12/25/inspect-provenance-and-quarantine-info-in-providable-a-christ...
1•frizlab•39m ago•0 comments

(My) Second Year of the Linux Desktop (For Gaming)

https://blog.matthewbrunelle.com/my-second-year-of-the-linux-desktop-for-gaming/
2•signa11•49m ago•0 comments

No pain, no game: how South Korea turned itself into a gaming powerhouse

https://www.theguardian.com/world/2025/dec/25/south-korea-video-game-powerhouse
2•n1b0m•49m ago•0 comments

OpenTinker

https://open-tinker.github.io/opentinker-page/
1•zsqzz•54m ago•0 comments

Psychological Wellbeing Predicts Later Self Control, but Not Vice Versa

https://journals.sagepub.com/doi/10.1177/19485506251385007
1•N_Lens•1h ago•1 comments

The context window ate your instructions

https://laulau.land/context-window-ate-your-instructions/
1•keturakis•1h ago•0 comments

Ask HN: HarmonyOS Open Source Development

2•rumpelstiel•1h ago•0 comments

The Stars of Bethlehem

https://songofurania.com/episode/025
2•antognini•1h ago•0 comments

Geo Is a Cargo Cult Hype Built on One 2023 Paper

https://wskpf.com/takes/geo-is-premature-optimization
3•amosWeiskopf•1h ago•0 comments

Nobody knows how large software products work

https://www.seangoedecke.com/nobody-knows-how-software-products-work/
1•vismit2000•1h ago•0 comments

Show HN: Echoslate– Fast native todo/Kanban tracker for programmers (.NET 8 WPF)

https://github.com/pjmavcom/echoslate/releases/tag/4.0.4.0
1•pjmavcom•1h ago•0 comments

They made me an offer I couldn't refuse (1997)

https://jens.mooseyard.com/1997/04/13/they-made-me-an-offer-i-couldnt-refuse/
1•birdculture•1h ago•0 comments

Read and review Markdown files in a dead simple viewer

https://github.com/peaske7/readit
1•jayShimada•1h ago•0 comments

GitAds

https://gitads.dev/
1•sorcix•1h ago•0 comments

Against SemVer

https://www.natemeyvis.com/against-semver/
1•vinhnx•1h ago•0 comments

Microsoft wants to replace its C and C++ codebase

https://www.theregister.com/2025/12/24/microsoft_rust_codebase_migration/
1•vinhnx•1h ago•1 comments

Paleotronic's 12 Years of Retro-Christmas Returns Again

https://paleotronic.com/2023/12/24/paleotronics-12-years-of-retro-christmas-returns-again-2/
2•empressplay•1h ago•0 comments