Skip to content

harryalaw/Typings-of-comfort-and-joy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code solutions using the typescript type system

Inspired by the HOTScript project and armed with knowledge from going through https://type-level-typescript.com/ as well as attempting some of the type-challenges I wanted to see if I could use TypeScript types to solve advent of code problems.

Many of the algorithms I've implemented for the numbers have been from me trying to figure out how to do it and using HOTScript as a reference implementation when I couldn't figure out the algorithm fully.

While the type system gives you a functional language that lets you solve complex problems, it has a fairly aggressive cap on recursion limits. A fair few problems I've tackled will work for the examples given, but rapidly hit recursion limits when given full inputs!

Playgrounds with my solutions

  • 2023
    • Day 1 - Part 2 doesn't work in playground but the repo will produce the right answer
    • Day 2
    • Day 4 - Part 2 doesn't work :(
    • Day 6 - Doesn't really work yet :D

About

Trying to solve advent of code problems in the type level

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published