nowfound

Work · June 30, 2023

HA

Hyke, a programming language that runs on TypeScript's type system

This absurd project started when I read a couple of blog posts that got very popular around here about solving the N queens puzzle using only Haskell's type system and TypeScript's type system. I figured I could implement Peano arithmetic using only TypeScript's type system. Turns out this have been done several times before, but I did it anyway. While working on it, I realized that you could emulate functions with conditional recursive types, writing them in a way that strongly resembles the equations that can be found in some functional programming languages. So I thought I could write a…

In plain words

Hyke is a programming language that compiles to TypeScript's type system, enabling computation through type-level operations. It allows developers to write functional programming-style equations that transpile into conditional recursive types, supporting operations like Peano arithmetic. Designed as an experimental project, Hyke demonstrates how TypeScript's type system can execute logic at compile time, with a browser-based playground available for testing.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

This absurd project started when I read a couple of blog posts that got very popular around here about solving the N queens puzzle using only Haskell's type system and TypeScript's type system. I figured I could implement Peano arithmetic using only TypeScript's type system. Turns out this have been done several times before, but I did it anyway. While working on it, I realized that you could emulate functions with conditional recursive types, writing them in a way that strongly resembles the equations that can be found in some functional programming languages. So I thought I could write a transpiler that would transform equations written in a more terse language into conditional recursive types with the added boilerplate. And that was when hyke was born. If you want, you can try it in your browser at the playground that is linked in the GitHub repo.

More work this month

the category →
  • Let agents source clips from terabytes of your local video

    Work · 18d ago · clipto.com

  • Free local transcription that is 100% Private

    Work · 17d ago · hynote.ai

  • The app store for voice native apps that lives in your notch

    Work · 28d ago · voiceos.com

  • Ask any question, get a video back instantly

    Work · 24d ago · scrimba.com

  • Handle all of the work before, during, and after meetings

    Work · 17d ago · calendly.com

Launched alongside, June 2023

the whole month →
  • NI

    Heya HN, I've been working on a reddit-like platform as my primary side project for the last few years. Doing a (very) soft launch today, mainly because I want to use it to encourage discussion of alternatives. How non.io works: 1. Free to browse, paid to interact. 2. Minimum subscription is $2 (though you can choose more). I take $1 to run the servers, everything left gets split evenly between everything you upvote that month. It's a simple model, but I hope it's a better one than the freemium model we've been relying on for the last few years. Fundamentally I feel like any ad-supported…

    Commerce · 2023 · non.io

  • Sivi AI938

    Generative AI to magically turn text to visual designs

    AI · 2023 · sivi.ai

  • Effortlessly publish on Twitter and LinkedIn, now with AI

    Growth · 2023 · typefully.com

  • Olvy 2.0827

    Analyze user feedback 10x faster with AI

    AI · 2023 · olvy.co

  • SlashPage760

    Create websites in seconds to build your first 1K community

    Growth · 2023 · slashpage.com

  • Simple landing page builder

    AI · 2023 · unicornplatform.com