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

Comments

panstromek•7mo 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•7mo 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•7mo 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_•7mo 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_•7mo 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•7mo 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•7mo 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: XeraSentry – Real-time Ethereum security monitoring in Python

1•Chu_Wong•23s ago•0 comments

Gogs Git service zero-day exploited since Dec. 1

https://www.scworld.com/news/gogs-git-service-exploited-since-dec-1
1•Bender•30s ago•0 comments

OWASP PTK 9.3.0 with Support

1•DenisPodgurskii•40s ago•0 comments

Malicious VSCode Marketplace extensions hid trojan in fake PNG file

https://www.bleepingcomputer.com/news/security/malicious-vscode-marketplace-extensions-hid-trojan...
1•speckx•4m ago•0 comments

Higher Ed's Dirtiest Secret

https://hollisrobbinsanecdotal.substack.com/p/teaching-quality
1•HR01•5m ago•0 comments

AI defense booms in UK and Germany as new wave of billion-dollar startups emerge

https://www.cnbc.com/2025/12/11/ai-defense-boom-in-uk-and-germany-as-new-wave-of-companies-emerge...
2•1659447091•6m ago•0 comments

Show HN: XeraSentry – Real-time Ethereum security monitoring in Python

https://lavender-clarette-17.tiiny.site
1•Chu_Wong•6m ago•0 comments

Globalfoundries receives 495M euros for foundry expansion

https://www.heise.de/en/news/Globalfoundries-receives-495-million-euros-for-foundry-expansion-111...
1•i-con•7m ago•0 comments

Zotero: Retracted item notifications with Retraction Watch integration

https://www.zotero.org/blog/retracted-item-notifications/
2•vogu66•7m ago•0 comments

Crypto mogul Do Kwon set for sentencing as victims tell of $40B stablecoin crash

https://apnews.com/article/do-kwon-terraform-court-montenegro-crypto-king-0df8b30b5f3cff2954f0a08...
1•rawgabbit•7m ago•0 comments

Dexter: An autonomous agent for deep financial research

https://github.com/virattt/dexter
1•birriel•9m ago•0 comments

Show HN: Amplift – AI agent for influencer marketing, GEO, and social listening

https://amplift.ai/
1•dora_wu•11m ago•0 comments

Show HN: Chrome Ext. for downloading HTTP responses for mocking APIs

https://mockaton.com/scraping
1•efortis•15m ago•0 comments

pg_clickhouse – PostgreSQL extension to run your analytics queries on ClickHouse

https://clickhouse.com/blog/introducing-pg_clickhouse
2•samaysharma•16m ago•0 comments

Denial of service and source code exposure in React Server Components

https://react.dev/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-comp...
8•sangeeth96•17m ago•0 comments

Show HN: Flywheel Feedback – Free feedback for projects that get 0 comments

https://www.dydomite.com/
1•chux52•17m ago•0 comments

UC Berkeley professor used secret camera to catch PhD student sabotaging rival

https://www.msn.com/en-us/news/other/uc-berkeley-phd-student-facing-felony-charges-over-46k-in-in...
2•ilamont•17m ago•1 comments

Google faces EU antitrust investigation over AI Overviews, YouTube

https://uk.news.yahoo.com/eu-launches-antitrust-probe-googles-081212770.html
1•gmays•18m ago•0 comments

My Favorite Principle

https://codestyleandtaste.com/my-favorite-principle.html
1•thunderbong•18m ago•0 comments

Ford's Car of the Future, Hatched in a Skunk Works Near Los Angeles

https://www.nytimes.com/2025/12/11/business/ford-electric-vehicles-china.html
1•cgoodmac•21m ago•0 comments

Free/open source full featured site for small restaurants and cafes

https://full.localcafe.org
1•fullstacking•23m ago•1 comments

Show HN: AI Telegram bot to track "30 plants a week" gut health goal

https://t.me/flora_quest_bot
1•sokhib-ibr•24m ago•0 comments

Archive.today Is Down

https://archive.ph/
1•gslepak•25m ago•2 comments

Something Ominous Is Happening in the AI Economy

https://www.theatlantic.com/economy/2025/12/nvidia-ai-financing-deals/685197/
2•jonbaer•25m ago•0 comments

Official MCP support for Google services

https://cloud.google.com/blog/products/ai-machine-learning/announcing-official-mcp-support-for-go...
1•jonbaer•26m ago•0 comments

Opinion: US Authorities Have Far-Reaching Access to European Cloud Data

https://www.heise.de/en/news/Opinion-US-Authorities-Have-Far-Reaching-Access-to-European-Cloud-Da...
2•doener•26m ago•0 comments

Show HN: TrafficScout – Discover high-intent Reddit threads with AI agents

https://www.trafficscout.app/
1•StealthyStart•26m ago•0 comments

Show HN: Gust –> Airflow-inspired workflow orchestration built with Elixir

https://github.com/marciok/gust
1•Marciok•27m ago•0 comments

Home Assistant Voice Preview Edition Review

https://manualdousuario.net/en/home-assistant-voice-preview-edition-foss-smart-home-review/
1•rpgbr•27m ago•0 comments

Worktrunk: Git worktree manager, designed for parallel agents

https://worktrunk.dev/
1•maximilianroos•29m ago•1 comments