News for hackers. Stuff that matters.
Re:Show HN: Conway's Game of Life in TypeScript's type system by bazoom42 on Saturday September 09, 2023 @03:13AM (#37442984)
Typescript has conditional types, which means it can be used as a programming language itself. In theory you can write any arbitrary program - game of life is just an example. You have to define numbers and arithmetics from scratch though, so it is not very practical.

Conditional types are probably rarely used in practial code, but it opens the door for a lot of geekery.

Re:Show HN: Conway's Game of Life in TypeScript's type system by ushakov on Saturday September 09, 2023 @06:27AM (#37443854)
We’re using conditional types for type inference in garph (https://garph.dev)