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

Nvidia CEO Says He Would Cut Off Buyers Who Build Unsafe AI

https://www.bloomberg.com/news/articles/2026-10-14/nvidia-ceo-says-he-would-cut-off-customers-who...
1•mfiguiere•1m ago•0 comments

Symmetries in Boolean Scan

https://ap29600.github.io/boolean_scans.html
2•g0xA52A2A•4m ago•0 comments

Show HN: Visual Scripting for Golang

https://symphony.q3k.app
1•jaitaiwan•5m ago•0 comments

The Double Headed Stack Allocator

https://blog.demofox.org/2026/10/03/the-double-headed-stack-allocator/
4•g0xA52A2A•5m ago•0 comments

Show HN: TowerPanic – a family party game on a small FastAPI realtime engine

https://towerpanic.com/
2•ms209495•9m ago•0 comments

Performance Goals That Survive the Roadmap

https://wakamoleguy.com/p/performance-goals-2026
1•wakamoleguy•12m ago•0 comments

Kalshi CEO says state-led oversight of US prediction markets would push them out

https://www.coindesk.com/policy/2026/10/14/kalshi-ceo-says-state-led-oversight-of-u-s-prediction-...
1•WaitWaitWha•13m ago•0 comments

Bipartisan coalition of states sues OpenAI over user safety

https://www.politico.com/news/2026/10/14/openai-user-safety-lawsuits-01119138
2•reasonableklout•13m ago•0 comments

State attorneys general seize on AI as Washington stalls

https://www.politico.com/news/2026/10/09/attorneys-general-ai-regulation-01112328
2•reasonableklout•14m ago•0 comments

DOJ announces charges in first nationwide tax fraud enforcement operation [video]

https://www.youtube.com/watch?v=s4sAQPXj0MU
2•Bender•15m ago•0 comments

Ask HN: How do you find good developer tools quickly?

1•ritualdevin•15m ago•0 comments

Show HN: Give (low vRAM) local sLLMs codebase-wide context with SQLite (attempt)

https://github.com/govindgcoder/arcKode
2•iamgovindg•16m ago•0 comments

US arrests Saudi employee of OpenAI for allegedly bugging its offices

https://www.ft.com/content/2c3b583a-3ddc-4920-a350-9698c119435c
1•Alien1Being•16m ago•0 comments

Saudi National Arrested for Installing Surreptitious Recording Device at OpenAI

https://www.justice.gov/opa/pr/saudi-national-arrested-installing-surreptitious-audio-recording-d...
1•Alien1Being•17m ago•0 comments

16-bit fully functional DIY magnetic core memory

https://www.youtube.com/watch?v=OJ1WYyO2jdY
1•oliculipolicula•21m ago•0 comments

For Walmart, Replacing Humans with Robots Is a Multibillion-Dollar Struggle

https://www.wsj.com/business/logistics/walmart-automation-robots-warehouses-65f016b2
1•gmays•26m ago•0 comments

Lgit: Source Control for the AI Era

https://nicobrenner.github.io/lossy-git/
1•nico•29m ago•0 comments

Show HN: I'll Call You Later, an interactive 3D browser short film

https://film.jashtechno.com
2•Jashwanth_13•30m ago•0 comments

Linux kernel devs drop obligatory confession of AI tool usage

https://www.theregister.com/ai-and-ml/2026/10/14/linux-kernel-devs-drop-obligatory-confession-of-...
2•ernsheong•31m ago•0 comments

Thinking Machines Ships Dimuon Optimizer

https://tinker-docs.thinkingmachines.ai/tinker/optimizers/
1•boldi•35m ago•0 comments

Management, LLMs, and the Modern Engineer

https://getsmall.xyz/post/cmv8v2ms60g87f70ls4g3zqsg
1•trezm•38m ago•0 comments

Ask HN: Only one link appearing on HN?

3•datas•39m ago•7 comments

Show HN: Single-server DDoS defense, no CDN – try to take it down

http://95.216.153.78
2•NuwanN•42m ago•1 comments

Magic: The Gathering Card Compiler

https://chiplis.com/ironsmith/
1•nicolas-siplis•43m ago•0 comments

Call for stories: human–AI collaboration in recent mathematics

https://terrytao.wordpress.com/2026/10/14/call-for-stories-human-ai-collaboration-in-recent-mathe...
1•smilelamp•45m ago•0 comments

How Oncolytic Virus Therapy Is Changing Cancer Treatment

https://www.cancerresearch.org/immunotherapy-by-treatment-types/oncolytic-virus-therapy
1•gradus_ad•48m ago•0 comments

Let's Make Video Games Like It's 1994

https://www.ciroduran.com/2026/10/game-maker-1994-i/
2•speckx•49m ago•0 comments

AI Safety Is Not a Corporate Plot

https://www.astralcodexten.com/p/ai-safety-is-not-a-corporate-plot
4•Analemma_•50m ago•3 comments

Fluxcut shows your product in professional demo video format

1•loveTech•52m ago•0 comments

Show HN: Shazbot – A sandboxed SSH tunnel manager for the Mac menu bar

https://zardecki.dev/blog/why-i-built-shazbot.html
1•AngryDad67•55m ago•1 comments