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•9mo ago

Comments

panstromek•9mo 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•9mo 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•9mo 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_•9mo 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_•9mo 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•9mo 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•9mo 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

Why Founder-Led Sales for AI Services Doesn't Scale Like SaaS

https://www.aienablementinsider.com/p/why-founder-led-sales-for-ai-services-doesn-t-scale-like-saas
1•dylancollins•1m ago•0 comments

Photonic Chips Are Coming Faster Than Anyone Expected [video]

https://www.youtube.com/watch?v=9tqOPS6x9l8
2•fla•2m ago•0 comments

Reflecting on My Relationship with Comics in 2024

https://riteshbabudotcom.wordpress.com/2025/01/20/reflecting-on-my-relationship-with-comics-in-2024/
1•sijmen•3m ago•0 comments

White House Posts Altered Photo Showing Arrested Minnesota Protester Crying

https://www.nytimes.com/2026/01/22/us/politics/nekima-armstrong-photo-white-house.html
3•nicpottier•4m ago•0 comments

Why triaged stepped care is the future of insomnia treatment

https://medium.com/@6thMind/why-triaged-stepped-care-is-the-future-of-insomnia-treatment-and-how-...
1•smanuel•4m ago•0 comments

Show HN: JN – A filebased CLI notetaker by me (written in Nim)

https://github.com/joereynolds/jn
1•professorlamp•5m ago•0 comments

Hellenistic War-Elephants and the Use of Alcohol Before Battle

https://www.cambridge.org/core/journals/classical-quarterly/article/hellenistic-warelephants-and-...
1•perihelions•8m ago•0 comments

CHERIoT RTOS: An OS for Fine-Grained Memory-Safe Compartments

https://dl.acm.org/doi/10.1145/3731569.3764844
2•blakepelton•9m ago•1 comments

Show HN: Ask your repos what shipped in plain English

1•inferno22•10m ago•1 comments

Anecdote Origin: Knowing Where to Tap

https://quoteinvestigator.com/2017/03/06/tap/
1•mhb•11m ago•0 comments

Is liberal democracy in terminal decline?

https://www.ft.com/content/b4d2c7a3-587d-440f-a7a9-7e5e85b93a88
3•alephnerd•12m ago•0 comments

Tesla fined for repeatedly failing to help UK police over driving offences

https://www.bbc.co.uk/news/articles/c0r44zpprg7o
10•6LLvveMx2koXfwn•14m ago•0 comments

We got a new Linux distro in 2026 and it's incredible [video]

https://www.youtube.com/watch?v=JmgvSdEIK8c
2•owenpalmer•17m ago•0 comments

Trade wind regimes during the Great Barrier Reef coral bleaching season

https://wcd.copernicus.org/articles/7/109/2026/
1•PaulHoule•18m ago•0 comments

KORG phase8 – Acoustic Synthesizer

https://www.korg.com/us/products/dj/phase8/
2•bpierre•18m ago•0 comments

Zero Training One-Shot Neural Networks

https://github.com/117l11/Bilinear-Neural-Transform
1•117l11•18m ago•0 comments

AgentHub – the only SDK you need to connect to LLMs

https://github.com/Prism-Shadow/AgentHub
1•PrismShadow•18m ago•1 comments

Show HN: Commet, a billing engine and MoR for usage-based SaaS and AI products

https://sandbox.commet.co
1•TeamCommet1•19m ago•1 comments

Artemis II

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/Orion/Artemis_II
2•slowcooked12_•20m ago•0 comments

CLI for the New Commodore C64 Ultimate

https://github.com/cybersorcerer/c64u
1•austinallegro•20m ago•0 comments

Microsoft chief Satya Nadella warns AI boom could falter without wider adoption

https://www.ft.com/content/2a29cbc9-7183-4f68-a1d2-bc88189672e6
5•internet_points•20m ago•1 comments

The Great Divergence

https://www.persuasion.community/p/the-great-divergence
1•garbawarb•22m ago•0 comments

Exploring 7 remote development platforms to code without downloading anything

https://diploi.com/blog/remote_development_platforms
1•javierpresnsr•24m ago•0 comments

Claude Code is everywhere at Microsoft

https://www.theverge.com/tech/865689/microsoft-claude-code-anthropic-partnership-notepad
3•Maven911•26m ago•0 comments

What Oscar Wilde Told Melanie Trump

https://zoneofsulphur.substack.com/p/what-oscar-wilde-told-melania-trump
1•Zone_of_Sulphur•26m ago•0 comments

Can AI Pass Cornell CS2112?

https://www.youtube.com/watch?v=56HJQm5nb0U
1•logicprog•26m ago•0 comments

Exposing Privileged Ports with Podman (2024)

https://blog.jdboyd.net/2024/05/exposing-privileged-ports-with-podman/
1•speckx•26m ago•0 comments

Why my Rust benchmarks were wrong, or how to use std:hint:black_box? (2022)

https://gendignoux.com/blog/2022/01/31/rust-benchmarks.html
1•aw1621107•27m ago•1 comments

Who's Your Daddy?

https://zoneofsulphur.substack.com/p/whos-your-daddy
1•Zone_of_Sulphur•28m ago•0 comments

TrustTunnel: Open-source VPN protocol by AdGuard

https://trusttunnel.org/
2•jrnkntl•29m ago•1 comments