# sdiehl/kaleidoscope

Haskell LLVM JIT Compiler Tutorial

Repository: https://github.com/sdiehl/kaleidoscope
Canonical: https://ross.abutalabs.com/products/kaleidoscope
Homepage: http://www.stephendiehl.com/llvm
Language: Haskell
License: NOASSERTION
License Family: other
Topics: llvm-bindings, llvm-tutorial, haskell, kaleidoscope, compiler, tutorial
Last push: 2020-04-21T09:09:58+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4631, "days_push": 2325, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1040, forks 126 (observed 2026-08-28T04:03:20.435704+00:00)

## What it is
A Haskell tutorial for building the LLVM Kaleidoscope toy language compiler, including a JIT compiler and parser frontend. It provides chapter-by-chapter source code and HTML/PDF documentation adapted from the official LLVM tutorial.

## Use cases
- learn how to write a compiler in Haskell
- understand LLVM code generation from Haskell
- build a JIT compiler for a toy language
- follow the LLVM Kaleidoscope tutorial with Haskell bindings
- learn parser and AST construction for a small language

## When to choose
- you want a guided, chapter-based introduction to LLVM via Haskell
- you prefer working code accompanying each tutorial step
- you are learning compiler basics like parsing, ASTs, and IR generation

## When to avoid
- you need a production compiler framework
- you require support for recent LLVM versions beyond 4.0
- you want a tutorial in a language other than Haskell

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: compiler, interpreter, parser, documentation
- domain: compilers, programming-languages, tutorials, developer-tools
- platform: windows
- tags: llvm, jit-compilation, haskell, kaleidoscope, tutorial, code-generation, linux, macos

## Member repositories
- sdiehl/kaleidoscope (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:20.435704+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:03:32.023936+00:00, confidence not recorded.
  - readme: https://github.com/sdiehl/kaleidoscope (fetched 2026-08-28T04:03:20.435704+00:00, sha ed6b5c49c19a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
