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

What we changed to make one node serve 4.3M cached queries per second

https://readyset.io/case-studies/how-we-reached-43-million-qps-for-mysql-and-postgresql-workloads...
1•marceloaltmann•3m ago•0 comments

EU Chief Backs Canada's Push to Become Bloc's First Associate Member

https://www.wsj.com/world/europe/eu-chief-floats-plan-to-make-canada-first-associate-member-da300f13
1•JumpCrisscross•4m ago•0 comments

Red-teaming my own credential broker: 231 attacks, and the five that worked

https://github.com/Walex4/taper/blob/main/docs/redteam.md
1•walex4•5m ago•0 comments

The AI Wait Equation

https://xendo.bearblog.dev/the-wait-equation/
2•xendo•6m ago•0 comments

Show HN: Why is a fly so hard to swat?

https://flyswat.win/?via=hn
1•cscmsg•8m ago•1 comments

Media execs sound alarm on AI

https://www.axios.com/2026/09/16/media-execs-sound-alarm-on-ai
1•1vuio0pswjnm7•9m ago•0 comments

SeasonMap – when to travel where? visualized with climate data

https://seasonmap.app
1•alongtheflow•11m ago•1 comments

Picturing Space: Projection and Perspective

https://www.essentialvermeer.com/technique/perspective/about-perspective.html
1•hopelessluca•13m ago•0 comments

Show HN: Put an AI agent on a FaceTime audio/video call (open source, WebRTC)

https://github.com/cherthq/chert-facetime-opensource
1•garygao•13m ago•0 comments

Scaling Trust Arena: An agentic economy with a multi-million dollar prize pool

https://scalingtrust.org.uk/blog/update-on-the-scaling-trust-arena/
1•lukaspetersson•13m ago•0 comments

Show HN: An MCP server that lets AI agents create, send and analyze surveys

https://www.zigpoll.com
2•jason_zig•14m ago•0 comments

Can We Stop with the Uptime Percentages?

https://blog.jim-nielsen.com/2026/stop-with-the-uptime-percentage/
2•surprisetalk•14m ago•0 comments

Inside Meta's AI Infrastructure Lab in Menlo Park [video]

https://www.youtube.com/watch?v=okSHoVPrf8o
2•helloplanets•14m ago•0 comments

Show HN: Cleanroom, a coding agent with a notebook for decisions and learning

https://github.com/Ag3497120/cleanroom
1•pakupaku•15m ago•0 comments

How GCC Eliminates Unnecessary Integer Division

https://leetarxiv.substack.com/p/how-gcc-eliminates-unnecessary-integer
2•snikolaev•15m ago•0 comments

ProtonSync

2•carlostkd•16m ago•0 comments

Parallel Constrained Decoding

https://twitter.com/harshagundal/status/2100044305536889015
1•rochansinha•17m ago•0 comments

Who's buying your personal data: Disney, GM, your insurer and bank

https://calmatters.org/economy/technology/2026/09/whos-buying-your-personal-data-disney-gm-your-i...
1•cdrnsf•17m ago•0 comments

Is AI Writing American Law?

https://www.effort.news/ai-congress
1•pr337h4m•20m ago•0 comments

Veronese's Dogs

https://publicdomainreview.org/essay/veroneses-dogs
2•prismatic•22m ago•0 comments

A Woman Cured Her Cancer with an Insane Method [video]

https://www.youtube.com/watch?v=0NY2gAftzJE
4•joebig•23m ago•1 comments

GLM 5.3 is live on Mistral

https://docs.mistral.ai/en/models/zai-glm-5-3
2•biehl•25m ago•0 comments

Devolver says indie publishing is not 'compatible' with public trading

https://www.gamedeveloper.com/business/devolver-wants-to-delist-because-indie-publishing-is-not-c...
2•paimapi•25m ago•0 comments

California's High Speed Rail to Nowhere [video]

https://www.youtube.com/watch?v=uli5FI_5y2c
3•Bender•25m ago•0 comments

Autism is genetic – and why this information matters now

https://www.autism.org.uk/blog/autism-is-genetic-%E2%80%93-and-why-this-information-matters-now
2•AndrewDucker•26m ago•0 comments

Geography Is Power

https://www.nytimes.com/2026/09/16/briefing/the-houthis.html
1•voxleone•27m ago•0 comments

Show HN: Blue – open-source governance for coding agents

https://bluee.sh/
1•tomislavs•27m ago•0 comments

Show HN: A distributed C++ Monte Carlo API for exotic options pricing

https://prometheusquantengine.com/web-docs
1•quant_architect•27m ago•0 comments

Show HN: Orthant, an open-source macOS window manager where you draw the region

https://orthant.app/
1•jingweno•27m ago•0 comments

Homeostatic Feelings and the Biology of Consciousness

https://academic.oup.com/brain/article/145/7/2231/6594735
1•Bluestein•29m ago•0 comments