Skip to content
CAI
Software that uses CAICheck a score

LPTK/simple-sub

52.8

Adequate · 7 November 2026

807

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a compiler infrastructure project for the SimpleSub language, providing a parser and a type inference engine that supports recursive types, let-polymorphism, and record structures. It features a JavaScript cross-compilation capability that enables a browser-based interactive demo for type checking and subtyping. The codebase includes comprehensive test suites validating the type system's behavior against established benchmarks and ensuring correct canonicalization of recursive types.

Features

Add JavaScript cross-compilation with a browser-based type-checking demo

A new Scala.js entry point (Main.scala) enables the project to run in the browser, providing a live type-checking demo. Users can input code into a text area and see type signatures or parse/type errors rendered directly in the page, utilizing a custom JavaScript-compatible type inference implementation to avoid stack overflow issues present in the original Scala version.

js · high confidence

Add online demo for type inference

Users can now interact with the Simple-sub type inference engine directly in a web browser via a new online demo. This change introduces the necessary frontend assets, including an HTML interface with input/output text areas and corresponding CSS styling, alongside the compiled JavaScript artifact required to run the inference logic client-side.

(repo-wide) · high confidence

Introduce parser and type system for the SimpleSub language

Adds the core language infrastructure for SimpleSub, including a Fastparse-based parser that handles terms (literals, variables, functions, records, let bindings) and rejects duplicate fields, alongside a type system featuring a new CompactType representation for efficient simplification and canonicalization of recursive types. The Typer implements type inference with constraint solving and extrusion logic to handle recursive bounds, supported by helper utilities for type merging and closure operations.

shared/src/main · high confidence

Removals

Removed legacy parser, syntax definitions, and type inference engine

The \Parser\, \Syntax\, and \Typing\ modules in \src/main/scala/simplesub\ have been deleted. This removes the previous implementation of the language's parser, the abstract syntax tree definitions (including both simple and polarity-aware type representations), and the constraint-based type inference engine. Users relying on this specific codebase version will no longer have access to these core components, which appear to have been replaced or refactored in subsequent changes.

src/main · high confidence

Fixes

Fixes stack overflow in the online algebraic subtyping demo

The \bin/simple-algebraic-subtyping-opt.js\ artifact, which powers the online demo for simple algebraic subtyping, has been updated to resolve a "RangeError: Maximum call stack size exceeded" that previously caused the application to crash. Users can now use the interactive demo without encountering this runtime error.

bin · high confidence

Test coverage

Added comprehensive test suite for type inference and parsing; Removed legacy Scala test suites for type inference.

Dependencies

Upgrade Scala ecosystem dependencies and enable JavaScript cross-compilation

The project has upgraded core dependencies, including Scala 2.13.18, ScalaTest 3.2.20, fastparse 3.1.1, and sourcecode 0.4.4. It now supports JavaScript cross-compilation by adding Scala.js plugins and libraries (scalajs-dom 2.8.1, scalajs-jquery 1.0.0), creating separate JVM and JS targets under the 'simple-sub' name.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 53 → 53 (+0.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 75 → 75 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 44 → 44 (+0.0)
  • Readiness 45 → 45 (+0.0)
  • Security 100 → 100 (+0.0)

Resolved (1)

  • Documentation: no usage examples (README.md)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

LPTK/simple-sub was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit ace6a33abb3563f56938c4987cd52145d5b99ba1 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-5f8314471808.