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

Bedrock Linux is a meta Linux distribution which allows users to mix-and-match

https://bedrocklinux.org/
1•doener•3m ago•0 comments

DevRel Is Back [video]

https://www.youtube.com/watch?v=eWMM4J_rfDg
1•mooreds•4m ago•0 comments

XKeyscore

https://en.wikipedia.org/wiki/XKeyscore
6•belter•10m ago•0 comments

3D Chess OpenGL PBR

https://github.com/elmarsan/Chess
1•elmarsan•11m ago•0 comments

Nina Simone's childhood home restored in North Carolina

https://www.axios.com/2025/12/03/nina-simone-home-restored-music
1•gnabgib•12m ago•0 comments

A fetch client that types itself

https://github.com/freb97/discofetch
1•freb97•15m ago•0 comments

Show HN: I built a quantitative analysis tool to retail traders

https://quantlens.app
1•indian_mafia•16m ago•0 comments

DeviceScript Archived – TypeScript for Microcontrollers

https://github.com/microsoft/devicescript
1•kandros•17m ago•0 comments

Embedded Universal Predictive Intelligence: a coherent framework for multi-agent

https://arxiviq.substack.com/p/embedded-universal-predictive-intelligence
1•che_shr_cat•17m ago•0 comments

Dynamic Dataflow Templating: the missing semantic for dataflow programming

https://observablehq.com/@tomlarkworthy/dataflow-templating
1•tlarkworthy•17m ago•0 comments

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

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

I need advice for this AI Assistant Im Building

1•DylanWain•18m ago•0 comments

Jet Powered Blower

https://www.youtube.com/watch?v=BcEkt5vQTVQ
2•reader9274•19m ago•0 comments

Apple's Succession Intrigue Isn't at All

https://daringfireball.net/linked/2025/12/05/apple-succession-the-information
2•JumpCrisscross•20m ago•0 comments

Mind Switches in Futurama and Stargate

https://arxiv.org/abs/1209.4991
2•kekqqq•22m ago•0 comments

WebGPU Comes to Android (Alpha)

https://developer.android.com/jetpack/androidx/releases/webgpu
2•r2vcap•23m ago•0 comments

A brain parasite takes over America

https://usop.substack.com/p/usop-day-11
2•richardatlarge•25m ago•0 comments

OSPO Book from the Todo Group

https://todogroup.org/resources/book/
3•devonnull•26m ago•0 comments

Undaunted Mind: The Intellectual Life of Benjamin Franklin

https://www.lrb.co.uk/the-paper/v47/n22/ferdinand-mount/his-very-variousness
3•mitchbob•30m ago•1 comments

GoboLinux: Experimental Linux distribution that Redefines the Filesystem

https://gobolinux.org/
1•doener•31m ago•0 comments

FBI Making List of American "Extremists," Leaked Memo Reveals

https://www.kenklippenstein.com/p/leak-fbi-list-of-extremists-is-coming
17•O1111OOO•34m ago•6 comments

Built an API abuse-prevention and traffic-governance system, need feedback on it

1•arnch•35m ago•0 comments

Show HN: We built an app to inspire you to walk more

https://beststeps.app/
1•wowitsmrinal•38m ago•0 comments

Why are diagnoses of ADHD rising? No easy answers, but empathy is where to start

https://www.theguardian.com/commentisfree/2025/dec/06/adhd-diagnosis-society-human-development
2•binning•40m ago•0 comments

How to save money on Uber and Lyft

https://www.washingtonpost.com/technology/2025/12/01/uber-lyft-price-saving/
1•griffinli•41m ago•0 comments

U.S. Flips History by Casting Europe–Not Russia–As Villain in Security Policy

https://www.wsj.com/world/europe/u-s-flips-history-by-casting-europenot-russiaas-villain-in-new-s...
7•perihelions•42m ago•2 comments

Earth's core and core-mantle boundary

https://www.nature.com/collections/bccidfjbaf
2•wjb3•48m ago•0 comments

Lightscape 2025

https://gggp.org/lightscape/
2•mooreds•48m ago•0 comments

Wild Geese by Mary Oliver

https://allpoetry.com/poem/15374223-Wild-geese-by-Mary-J-Oliver
2•mooreds•49m ago•0 comments

Syncthing-Android have had a change of owner/maintainer

https://github.com/researchxxl/syncthing-android/issues/16
27•embedding-shape•49m ago•2 comments