frontpage.
newsnewestaskshowjobs

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

The Beelink Mate Pro

https://taoofmac.com/space/reviews/2026/08/01/2130
1•rcarmo•57s ago•0 comments

Presigned URLs are technically a security vuln

https://www.tigrisdata.com/blog/presigned-urls-security-vuln/
1•ErenayDev•2m ago•0 comments

Grace

https://rodrigoalvesvieira.com/2026/08/01/grace
1•ravieira•3m ago•0 comments

Busy Beaver Holdouts Lists

https://wiki.bbchallenge.org/wiki/Holdouts_lists
1•frozenseven•4m ago•0 comments

Harry Potter and the Chamber of Secrets

https://en.wikipedia.org/wiki/Harry_Potter_and_the_Chamber_of_Secrets
1•chistev•4m ago•0 comments

The 14 Steps it takes to open my office door with a new phone

https://shub.club/writings/2026/august/14-steps-to-open-a-door/
4•forthwall•9m ago•0 comments

The Wheels We Keep Reinventing

https://blainsmith.com/articles/reinventing-the-wheel/
1•birdculture•12m ago•0 comments

Show HN: Copy any website pixel perfect

https://github.com/HarKro753/claude-copy
1•Harro123•15m ago•0 comments

How the Heck Does JPEG Work?

https://perthirtysix.com/how-the-heck-does-jpeg-work
2•safehuss•25m ago•0 comments

Show HN: Check technical fit for B2B prospects without questionnaires

https://tryscoped.com/demo
1•ininew•27m ago•1 comments

Coldcard's $38M (so far) exploit shakes faith in self-custody

https://www.coindesk.com/business/2026/07/31/coldcard-s-usd38-million-so-far-exploit-shakes-faith...
5•wslh•34m ago•1 comments

If technology got better, why did everything get worse?

https://www.sammystraus.com/#if-technology-got-better-why-did-everything-get-worse
4•sammy0910•34m ago•1 comments

Book sellers raise alarm over 'horrific' destruction of rare titles to feed AI

https://www.theguardian.com/technology/2026/aug/02/australian-book-sellers-alarm-destruction-rare...
4•billybuckwheat•35m ago•1 comments

Using Meta AI via WhatsApp for OpenCode

https://github.com/amita-seal/wa-metaai
1•amita2•36m ago•0 comments

AI's real threat to jobs isn't job loss, it's lower paychecks, new research says

https://www.businessinsider.com/ai-could-lower-workers-pay-job-market-impact-2026-7
2•theanonymousone•42m ago•0 comments

Ask HN: How are you using AI to learn?

4•mfalcon•43m ago•2 comments

We're 15-year-olds tired of switching study apps, so we built our own

https://reviscio.com/
1•Luka_Takki•44m ago•2 comments

Retired man plants trees on forgotten land, now it's Sao Paulo's largest park

https://timesofindia.indiatimes.com/world/rest-of-world/in-2003-a-retired-man-planted-trees-on-fo...
7•rmason•44m ago•1 comments

YC founder asks desperate job seekers to tattoo themselves for an interview

https://sfstandard.com/2026/07/30/lemonlime-tattoo-job-interview/
7•theanonymousone•45m ago•0 comments

Show HN: A Google Reader like discovery engine for long-form blogs

https://boredreading.com/
1•khet•45m ago•0 comments

India's monsoon rains in danger as UN chief warns planet is 'on fire'

https://www.theguardian.com/environment/2026/jul/31/india-monsoon-el-nino-hot-dry-conditions-mete...
4•howard941•46m ago•0 comments

FDA panel supports broadening access to peptides popular on the gray market

https://www.npr.org/2026/07/23/nx-s1-5903202/fda-peptides-restrictions
2•gmays•48m ago•0 comments

Show HN: Lumaris – AI biotech intelligence briefs (sample: EGFR resistance)

https://lumaris.nanocorp.app/reports/egfr-resistance-nsclc-2026
1•lumaris_intel•50m ago•0 comments

Drifting SpaceX rocket heading for collision with Moon

https://www.theguardian.com/science/2026/jul/31/spacex-rocket-moon-collision
2•qprofyeh•52m ago•0 comments

Cosmic String

https://en.wikipedia.org/wiki/Cosmic_string
2•whythismatters•52m ago•0 comments

Show HN: I made a music player inspired by late 90s peer-to-peer sharing

https://jdanwire.jordanscales.com/
1•jordanscales•58m ago•0 comments

GPT‑5.6 fuses frontier intelligence with frontier efficiency

https://openai.com/index/gpt-5-6-frontier-intelligence-efficiency/
1•882542F3884314B•59m ago•0 comments

Seedance 2.5

https://seed.bytedance.com/en/blog/one-take-creation-flexible-referencing-introducing-seedance-2-5
2•njaremko•1h ago•0 comments

PaperOS: A native Linux E Ink OS running on BOOX hardware

https://www.reddit.com/r/Onyx_Boox/comments/1vcdkmh/paperos_a_native_linux_e_ink_os_now_running_on/
3•carlosjobim•1h ago•0 comments

Rescue Boat Crews Show Signs of Brain Injuries, but Coast Guard Isn't Looking

https://www.nytimes.com/2026/07/30/us/coast-guard-rescue-boat-surfmen-brain-injury.html
1•bookofjoe•1h ago•2 comments