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•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

NYCHHC says hackers stole medical data and fingerprints during breach

https://techcrunch.com/2026/05/18/nyc-health-and-hospitals-says-hackers-stole-medical-data-and-fi...
1•bushwart•18s ago•1 comments

What Matters in Production RAG

https://arpitbhayani.me/blogs/rag-production/
1•ksasi•43s ago•0 comments

MagnoAPI – Memory Context API

https://magno-memory-api-production.up.railway.app/
1•MagnoApi•1m ago•0 comments

I built a searchable clipboard history with pins, labels, macros, and sync

https://boardclip.app/
1•tobq•2m ago•0 comments

Don Zagier's approximation of Markov's diophantine equation

https://www.johndcook.com/blog/2026/05/19/zagiers-equation/
1•ibobev•2m ago•0 comments

Bending, Yanking, and Cartesian Squares in Double Categories

https://bartoszmilewski.com/2026/05/18/bending-yanking-and-cartesian-squares-in-double-categories/
1•ibobev•2m ago•0 comments

Lambda Diagrams

https://buttondown.com/jaffray/archive/lambda-diagrams/
1•ibobev•3m ago•0 comments

Show HN: CANviz – open-source CAN analyzer, J1939/CANopen, pip install

https://github.com/Chanchaldhiman/CANviz
1•chanchaldhiman•3m ago•0 comments

AI coding made us faster. Why did incidents increase?

https://leaddev.com/ai/ai-coding-made-us-faster-why-did-incidents-increase
1•theanonymousone•3m ago•0 comments

Don't Outsource the Learning

https://twitter.com/i/status/2056078124346228860
1•redbell•4m ago•0 comments

Microsoft launches Surface Pro 12 and Surface Laptop 8 with Intel chips

https://www.theverge.com/news/933269/microsoft-surface-pro-12-surface-laptop-8-specs-pricing-rele...
2•el_duderino•4m ago•0 comments

What Do Gödel's Incompleteness Theorems Mean?

https://www.quantamagazine.org/what-do-godels-incompleteness-theorems-truly-mean-20260518/
1•Brajeshwar•5m ago•0 comments

Comic Books seen in RoboCop (1987)

https://www.tumblr.com/bronzeaged/145292085969/comic-books-seen-in-robocop-1987-column-a
1•speckx•8m ago•0 comments

Raven Software Released Jedi Academy Source Code in 2013 Amid Dev Crunch Rage

https://github.com/grayj/Jedi-Academy
1•birdculture•12m ago•0 comments

Who Killed Nokia? Nokia Did

https://knowledge.insead.edu/strategy/who-killed-nokia-nokia-did
2•redbell•13m ago•1 comments

More Than Skills, Frameworks

https://github.com/mattpocock/skills
1•vdelpuerto•13m ago•0 comments

I tried every AI memory tool. Here's why I built another one

https://runmemento.com/blogs/i-tried-every-ai-memory-tool/
2•psraghuveer•13m ago•0 comments

Show HN: Self-hosted static archive of 20 years of Hacker News

https://github.com/DOSAYGO-STUDIO/HackerBook
1•keepamovin•14m ago•1 comments

Show HN: A sparse, compressed bitmap index in C. Better than Roaring Bitmaps?

https://codeberg.org/gregburd/sparsemap
1•gregburd•14m ago•0 comments

Website blocking which works long term

https://hanki.dev/website-blocking-which-works-long-term/
2•speckx•15m ago•0 comments

This Month in Redox – April 2026

https://www.redox-os.org/news/this-month-260430/
1•akyuu•16m ago•0 comments

Eight window-function tricks beyond LAG and ROW_NUMBER

https://analytics.fixelsmith.com/posts/eight-window-function-tricks/
1•analyticsfs•18m ago•0 comments

Show HN: How to analyze your LLM output – A behavioural health monitor for LLMs

https://splabs.io
4•k-thimmaraju•19m ago•1 comments

Microsoft is sunsetting SMS Organizer for Android

https://www.techmesto.com/microsoft-is-sunsetting-sms-organizer-for-android/
2•thunderbong•19m ago•0 comments

The Death of the Brick and Mortar Toy Store

https://brainbaking.com/post/2026/05/the-death-of-the-brick-and-mortar-toy-store/
1•speckx•19m ago•0 comments

Show HN: A self-balancing skip-list (a.k.a. "splay-list") library in C

https://codeberg.org/gregburd/skiplist
1•gregburd•19m ago•0 comments

What we learned building sandbox for document agents

https://blog.yfzhou.fyi/posts/doc-sandbox/
1•crazylogger•19m ago•0 comments

Barely Treading Water

https://randsinrepose.com/archives/barely-treading-water/
2•GavinAnderegg•20m ago•0 comments

GTGraffiti: The Robot That Paints Like a Human

https://research.gatech.edu/introducing-gtgraffiti-robot-paints-human
1•bryanrasmussen•20m ago•0 comments

When More Context Makes LLM Agents Worse

https://arizenai.com/context-window-fallacy/
1•arizen•20m ago•0 comments