TiML

1 program Added 2026-02-12T00:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Timed ML
Provenance: commit 7dc4d16f3e · authored 2026-02-12T11:46:59+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

TinyML (0.25)TTML (0.22)Extended ML (0.22)MiniML (0.20)TBL (0.20)

LLM-contributed programs

Insertion Sort

Provenance: commit 7dc4d16f3e · authored 2026-02-12T11:46:59+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.timl · license: MIT · added: 2026-02-12T00:00:00Z
(* Insertion sort with time complexity annotation *)
fun insertSort ['a] {m : Nat} (cmp : 'a * 'a -- $1 --> bool) (xs : 'a list) : 'a list using $m + 1 =
  case xs of
      [] => []
    | x :: xs' =>
      let
        val ys = insertSort cmp xs'
        fun insert ['a] {n : Nat} (x : 'a) (ys : 'a list) : 'a list using $n + 1 =
          case ys of
              [] => [x]
            | y :: ys' =>
              if cmp (x, y) then
                x :: ys
              else
                y :: insert x ys'
      in
        insert x ys
      end

(* Example usage *)
val sorted = insertSort (fn (a, b) => a < b) [3, 1, 4, 1, 5, 9, 2, 6]

Contribute — propose a file extension

Tell us where to find evidence about TiML (mapped to pl/timl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/TiML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← TimeWaste timpani →