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

Mesamatrix: The Mesa Drivers Matrix

https://mesamatrix.net/
1•natureglass•1m ago•0 comments

Impedance Matching

https://www.edge.org/response-detail/27238
1•muti•5m ago•0 comments

Show HN: JarPeek – Online Java Class Decompiler(No Upload)

https://jarpeek.com/class-decompiler
1•xooch_95•5m ago•0 comments

Show HN: Hayduk, a browser-based Metasploit GUI inspired by Armitage

https://github.com/jolovicdev/hayduk
1•jolovicdev•10m ago•0 comments

Learning Synths – Ableton

https://learningsynths.ableton.com/
1•vsvagr•11m ago•0 comments

25 years ago, two strangers met in the twin towers and escaped on 9/11

https://www.theguardian.com/us-news/2026/sep/07/strangers-twin-towers-escape-september-11
1•ljf•11m ago•0 comments

Show HN: Guile-Secure Your Stack

https://guile.in
2•Harsha2193•15m ago•0 comments

Joining Advanced Machine Intelligence to work on world models

https://www.lihaoyi.com/post/JoiningAMItoworkonWorldModels.html
2•plun9•19m ago•0 comments

How to Write Tech Doc

https://essays.nigri.dev/How-to-write-tech-doc
3•napo•20m ago•0 comments

South Atlantic Anomaly

https://en.wikipedia.org/wiki/South_Atlantic_Anomaly
2•robin_reala•23m ago•0 comments

'You Can See Everything' Review: Nathan Fielder's Doc About Elizabeth Holmes

https://variety.com/2026/film/reviews/nathan-fielder-surprise-film-telluride-elizabeth-holmes-123...
5•cianmm•23m ago•0 comments

JavaScript installer pnpm recast in Rust because ECMAScript can't keep up

https://www.theregister.com/devops/2026/09/04/javascript-installer-pnpm-recast-in-rust-because-ec...
2•pjmlp•24m ago•0 comments

Caltech Mathathon – first hackathon ever devoted to research level mathematics

https://mathathonchallenge.com/index.html
2•astroanax•30m ago•0 comments

Speculative Decoding in vLLM on AMD GPUs

https://vllm.ai/blog/2026-08-23-speculative-decoding-amd-gpus
2•ankitg12•30m ago•0 comments

Trump unveils Space Force uniform inspired by Nazi-aesthetic film

https://www.telegraph.co.uk/us/politics/2026/09/07/donald-trump-space-force-uniform-nazi/
6•doener•32m ago•1 comments

Raptor turns Claude Code into a general-purpose AI

https://github.com/gadievron/raptor
2•mitifo5226•32m ago•1 comments

Show HN: Forget Rigid Stock Screeners – A Universal Query API for Financial Data

https://financialdata.net/universal-query
2•_FDN_•33m ago•0 comments

GPT 6 created a new universe [video]

https://www.youtube.com/watch?v=5ldy0Rfx8gA
2•modinfo•34m ago•0 comments

Plastics Companies Are Writing Lesson Plans. What Could Go Wrong?

https://www.wired.com/story/plastics-companies-writing-lesson-plans-what-could-go-wrong/
2•beardyw•35m ago•0 comments

Ask HN: Do People Care About Image Optimisation Anymore?

2•CM30•36m ago•0 comments

Train your own custom Tiny TTS model from scratch overnight on consumer hardware

https://github.com/franciscocarloserra/ttslibre
2•FranciscoCarlos•36m ago•0 comments

Ask HN: How do you keep AI coding agents in sync with a changing Figma file?

2•rjvidentia•40m ago•0 comments

Unreliable Guide to Locking

https://docs.kernel.org/kernel-hacking/locking.html
2•ankitg12•41m ago•0 comments

tuhat: Home for all your reading

2•8by3•48m ago•0 comments

Darwin Zero: How do I think what I think

https://twitter.com/GaetanDuchateau/status/2096568425405354365
2•Bluestein•53m ago•0 comments

Live map of public transport in Belgium

https://openbaarvervoerbelgie.be/
8•coinfused•54m ago•2 comments

anystation: Calling any station A public board shaped like a tree. No account

https://anystation.net/
3•Bluestein•57m ago•0 comments

Show HN: The Token Times · a monthly newspaper on AI

https://befailproof.ai/thetokentimes/
2•nivedit-jain•1h ago•0 comments

Commercial Spacecraft for NASA's Swift Boost Continues Tech Demo

https://science.nasa.gov/blogs/swift/2026/09/04/commercial-spacecraft-for-nasas-swift-boost-conti...
2•noobplus•1h ago•0 comments

Ask HN: Why can I use macOS passkeys without biometrics

3•0xnico•1h ago•0 comments