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

Crypto holder loses $283M to scammer impersonating wallet support

https://bsky.app/profile/web3isgoinggreat.com/post/3mcn26h32wp2q
1•unforgivenpasta•45s ago•0 comments

AI-Powered Diabetes Analysis with GitHub Copilot and Claude Skills [video]

https://www.youtube.com/watch?v=on5R6PWj8Wg
1•shanselman•3m ago•0 comments

No Chess on a Dead Planet

https://indianexpress.com/article/sports/chess/climate-activists-protests-hold-up-tata-steel-ches...
1•akbarnama•5m ago•0 comments

Show HN: Vanslist – Craigslist for tech freelancers, no fees

https://vanslist.com
1•netgeniuskid•6m ago•0 comments

Show HN: Turkish Sieve Engine – GPU-Accelerated Prime Number Generator

https://github.com/bilgisofttr/turkishsieve
1•bilgisoft•6m ago•0 comments

Tell HN: Google Trust and Safety is a joke

2•tokyobreakfast•12m ago•0 comments

The relentless rule of my fitness tracker

https://timharford.com/2025/10/the-relentless-rule-of-my-fitness-tracker/
5•Arnt•23m ago•0 comments

Aldrich Ames built a career on betraying trust

https://www.economist.com/obituary/2026/01/15/aldrich-ames-built-a-career-on-betraying-trust
1•petethomas•24m ago•0 comments

Show HN: macOS Screenshot Organizer

https://www.shotsnap.ai/
1•libiny•25m ago•0 comments

'We'll Sue': White House's Warning to CBS Is Sign of a New Media Status Quo

https://www.nytimes.com/2026/01/17/business/media/cbs-news-trump-interview.html
1•stopbulying•25m ago•2 comments

jQuery 4.0.0 Released

https://blog.jquery.com/2026/01/17/jquery-4-0-0/
3•OuterVale•26m ago•0 comments

SkillHub – NPM for AI agent rules, share team standards across 13 AI tools

https://github.com/cloudvalley-tech/skillhub
1•zxh•46m ago•1 comments

Show HN: StarFetch – A lightweight, modern system fetch tool in Rust

https://github.com/Linus-Shyu/StarFetch_Core
1•LinusShyu•50m ago•1 comments

Show HN: Intuitive TUI for Ghostty Terminal Configuration

https://github.com/intaek-h/ghofig
1•intaek•52m ago•0 comments

Show HN: A self-custody medical records prototype (lessons learned)

https://github.com/Mzhvnn-tch/sehati-apps
1•SERSI-S•57m ago•1 comments

Show HN: Hekate – A Zero-Copy ZK Engine Overcoming the Memory Wall

2•y00zzeek•57m ago•6 comments

U.S. Court Order Against Anna's Archive Spells More Trouble for the Site

https://torrentfreak.com/u-s-court-order-against-annas-archive-spells-more-trouble-for-the-site/
15•t-3•58m ago•5 comments

Lopado­temacho­selacho­galeo­kranio­leipsano­drim­hypo­trimmato­silphio­karab

https://en.wikipedia.org/wiki/Lopado%C2%ADtemacho%C2%ADselacho%C2%ADgaleo%C2%ADkranio%C2%ADleipsa...
27•firloop•1h ago•9 comments

Erdos 281 solved with ChatGPT 5.2 Pro

https://twitter.com/neelsomani/status/2012695714187325745
24•nl•1h ago•2 comments

Claude Coding on Manager's Schedule

1•michaelhoney•1h ago•0 comments

Ask HN: What are some LLM shibboleths?

1•EGreg•1h ago•0 comments

TLS stripping on-device under Windows XP

https://kianbradley.com/2024/01/14/tls-on-xp.html
4•k-ian•1h ago•1 comments

David Webb, prominent Hong Kong shareholder activist, dies at 60

https://www.seattletimes.com/business/david-webb-prominent-hong-kong-shareholder-activist-dies-at...
2•gnabgib•1h ago•0 comments

Geometric Transformer: Emergent Connectivity via High-Dimensional Manifold

https://zenodo.org/records/18285921
1•MrPan•1h ago•0 comments

OSS Document Templates – Opinionated repo doc templates for open-source projects

https://github.com/Code-Cause-Collective/repo-oss-doc-templates
1•Brysonbw•1h ago•0 comments

How scientists are using Claude to accelerate research and discovery

https://www.anthropic.com/news/accelerating-scientific-research
7•gmays•1h ago•1 comments

Trump wants nations to pay $1B to stay on his peace board

https://www.reuters.com/world/trump-wants-nations-pay-1-billion-stay-his-peace-board-report-says-...
1•oenton•1h ago•3 comments

The impact of interactive violence on children (2000) [pdf]

https://www.govinfo.gov/content/pkg/CHRG-106shrg78656/pdf/CHRG-106shrg78656.pdf
1•SpicyLemonZest•1h ago•1 comments

Ask HN: is it's ok to do engagement farming here?

1•Sayyidalijufri•1h ago•2 comments

What's on HTTP?

https://whatsonhttp.com/
1•elixx•1h ago•0 comments