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

Show HN: Contribute to GitHub Anonymously

https://github.com/livrasand/gitGost
1•livrasand•3m ago•1 comments

Smalloc: A Simple Memory Allocator

https://github.com/zooko/smalloc
1•todsacerdoti•4m ago•0 comments

MySQL vs. PostgreSQL Performance: throughput and latency, reads and writes

https://binaryigor.com/mysql-vs-postgresql-performance.html
1•birdculture•5m ago•0 comments

Marketplace to share remote shell access

https://commosta.io
1•gkm25•5m ago•0 comments

US says Canada will regret decision to allow Chinese EVs into their market

https://www.reuters.com/business/autos-transportation/us-says-canadas-decision-allow-imported-chi...
1•voxadam•6m ago•0 comments

Golfing APL/K in 90 Lines of Python

https://aljamal.substack.com/p/golfing-aplk-in-90-lines-of-python
1•aburjg•8m ago•0 comments

Show HN: Agentify Speak: Make Codex Speak After a Turn (Mac)

1•agentifysh•10m ago•0 comments

Euergetism

https://en.wikipedia.org/wiki/Euergetism
1•judicious•13m ago•0 comments

Letterbird(Substack alternative) – newsletter platform recent launch

https://www.letterbird.io/
1•aryalgaurav135•15m ago•1 comments

Ask HN: LLM Poisoning Resources

1•totallygeeky•17m ago•0 comments

'Dilbert' Was Always MAGA

https://www.nytimes.com/2026/01/16/opinion/dilbert-scott-adams-maga.html
2•mikhael•17m ago•0 comments

Show HN: Tiny Toy Debugger

https://github.com/mitjafelicijan/toy-debugger
1•mitjafelicijan•18m ago•0 comments

Achieving Performance on AMD MI355 – In Just 14 Days

https://www.modular.com/blog/achieving-state-of-the-art-performance-on-amd-mi355----in-just-14-days
1•visheshdembla•19m ago•0 comments

I'm not a good enough engineer to code with LLMs

https://kian.wtf/posts/ai_coding_thoughts
1•kianN•19m ago•0 comments

Investing in Merge Labs

https://openai.com/index/investing-in-merge-labs/
1•T-A•19m ago•0 comments

OpenAI testing ads in ChatGPT free and Go tiers

https://twitter.com/OpenAI/status/2012223373489614951
3•mgreg•20m ago•0 comments

Observation Timelines for the Potential Lunar Impact of Asteroid 2024 YR4

https://arxiv.org/abs/2601.10666
1•bikenaga•21m ago•1 comments

Show HN: Universe University Entrance Exam

https://github.com/fumi2026/cs-entrance-exam-2026
1•fumi2026•21m ago•0 comments

Show HN: Gpu.st – GPU over SSH

https://gpu.st/
2•JasonpDev•22m ago•1 comments

Tips for Better Image Generation? I need help!

1•gweets•22m ago•0 comments

The wealth of the top% reaches a record $52T

https://www.cnbc.com/2025/10/03/the-wealth-of-the-top-1percent-reaches-a-record-52-trillion.html
14•thelastgallon•24m ago•5 comments

Building a MCP Client in Google Apps Script

https://justin.poehnelt.com/posts/mcp-client-apps-script/
2•justinwp•24m ago•1 comments

2026.03: Technology Doings

https://stratechery.com/2026/technology-doings/
1•feross•24m ago•0 comments

AI hype is 80% real

https://sealedabstract.com/posts/AI-hype/
1•mayoff•27m ago•0 comments

Show HN: Open-Source TypeScript SDK for John Deere's Agricultural APIs

https://github.com/ProductOfAmerica/deere-sdk
1•deere-sdk•27m ago•0 comments

Show HN: Routing with OSM, PgRouting and MapLibre

https://github.com/bytefish/PgRoutingExperiments
2•bytefish•28m ago•0 comments

Why Observability Requires a Distributed Column Store (2021)

https://www.honeycomb.io/blog/why-observability-requires-distributed-column-store
1•tosh•29m ago•0 comments

Trump threatens new tariffs on countries opposed to Greenland takeover

https://www.bbc.co.uk/news/articles/c9qpy952xvno
8•treadump•30m ago•2 comments

Trump wants tech companies to foot the bill for new power plants because of AI

https://www.cnbc.com/2026/01/16/trump-wants-tech-companies-to-foot-the-bill-for-new-power-plants-...
4•ironyman•30m ago•0 comments

Squishy Go

https://puyogo.app/en/
2•kqr•33m ago•0 comments