Skip to content

Comment on Show HN: Conway's Game of Life in TypeScript's type system

Comments

I'm really confused, is it what TS is supposed to looks like?

It's just a demonstration of how to encode the transition rules for Conway's game of life as a set of types, aka logical constraints. TypeScript's type system has unification, same as in Prolog, and since Prolog is basically Turing complete so is TypeScript's type system.

TypeScripts Type System is Turing Complete #14833

https://github.com/microsoft/TypeScript/issues/14833

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.