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

Comments

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

FDA Approves First-Ever Gene Therapy for Treatment of Genetic Hearing Loss

https://www.fda.gov/news-events/press-announcements/fda-approves-first-ever-gene-therapy-treatmen...
1•JeanKage•45s ago•0 comments

France's Mistral Built a $14B AI Empire by Not Being American

https://www.forbes.com/sites/iainmartin/2026/04/16/how-frances-mistral-built-a-14-billion-ai-empi...
2•rzk•1m ago•0 comments

Httpxyz One Month In

https://tildeweb.nl/~michiel/httpxyz-one-month-in.html
1•roywashere•1m ago•0 comments

Ask HN: AI is like a hyper-motivated 16-year old genius – how to manage?

1•axeldunkel•2m ago•0 comments

Show HN: Launch Your Product. Get Seen Weekly

1•kalashvasaniya•3m ago•0 comments

Show HN:Renda Converts Claude Design HTML Zips into Instagram/Twitter PNGs

https://tryrenda.com/
1•Chips20•3m ago•0 comments

Show HN: Web Client for Hermes Agent

https://github.com/lotsoftick/hermes_client
1•lotsoftick•4m ago•0 comments

Show HN: OpenClaw Web Client

https://github.com/lotsoftick/openclaw_client
1•lotsoftick•5m ago•0 comments

Yahoo asking for subscription payment to send and receive emails

1•whyleym•6m ago•1 comments

Leaked results of Mythos' audit of the Rust stdlib

https://github.com/Swival/security-audits/tree/main/rust-stdlib
2•stavros•11m ago•0 comments

Understanding UMAP

https://pair-code.github.io/understanding-umap/
2•monneyboi•14m ago•0 comments

Jester Linux – A beginner-friendly desktop OS powered by NixOS and Lix

https://jesterlinux.org/blog/hello-world/
1•aprl•15m ago•0 comments

Foldergram – Self-hosted folder-based Instagram-style photo and video gallery

https://github.com/foldergram/foldergram
1•sebakubisz•15m ago•0 comments

Automate your contract process, the Docusign nightmare

https://www.getprobo.com/blog/2026-04-24-how-we-automated-our-client-contract-process
1•arthurmyx•16m ago•1 comments

Java: The Documentary (Trailer)

https://www.youtube.com/watch?v=cwLYS_xDvSw
2•Tomte•18m ago•0 comments

4TB of voice samples just stolen from 40k AI contractors at Mercor

https://app.oravys.com/blog/mercor-breach-2026
2•Oravys•18m ago•0 comments

Ask HN: Can you tell the difference between Claude Sonnet and Opus?

1•muddi900•20m ago•1 comments

Ask HN: Is it a good idea to add a Design your download page?

1•gray_wolf_99•23m ago•0 comments

TidesDB – Fast, persistent, scalable key-value storage for modern systems

https://tidesdb.com
1•alexpadula•23m ago•1 comments

Show HN: Implit – A CLI that catches AI-hallucinated NPM packages

https://github.com/Neurall-build/implit
1•neurall-build•27m ago•0 comments

Shellora: SSH terminal, AI help, and server tools

https://holding.vc/shellora/
1•yaseral•28m ago•0 comments

Can We Vibe Code a Smart Home Device with Matter?

https://dunkels.com/adam/vibe-code-smart-home-matter-device/
2•adunk•33m ago•0 comments

Samsung Galaxy S24 and S25: April update causes battery problems

https://www.heise.de/en/news/Samsung-Galaxy-S24-and-S25-April-update-causes-battery-problems-1127...
1•aureliusm•34m ago•0 comments

Show HN: Agent Context – let your AI coding tools see your reference projects

https://github.com/gmarland/Agent-Context
2•gamerdrome•36m ago•0 comments

Ask HN: Should HN have a new top category – Prompt HN?

1•jharohit•36m ago•0 comments

A hallucination engine. Typed pseudorandom data via LLM

https://pypi.org/project/grievous-mcp/
1•basyt•43m ago•1 comments

Oracle cutting thousands in latest layoff round, continues to ramp AI spending

https://www.cnbc.com/2026/03/31/oracle-layoffs-ai-spending.html
2•sparin9•44m ago•1 comments

Ask HN: What domain have you been sitting on for a while?

2•msuniverse2026•45m ago•0 comments

Healthcare Price Transparency

https://marginalrevolution.com/marginalrevolution/2026/04/on-health-care-price-transparency-from-...
1•barry-cotter•49m ago•0 comments

Moleskine's AI Lord of the Rings collection can only mock

https://cjleo.com/blog/moleskine-ai-lord-of-the-rings-collection-can-only-mock/
2•lentil_soup•56m ago•0 comments