Koka

1 program Added 2025-10-22T14:21:57Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: koka-lang
Provenance: commit be175d2cd5 · authored 2025-10-22T16:21:57+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

5 sources · pl_id: pl/koka
LLM (this repo) · 1PldbLinguistPygmentsRosettacode

Extensions claimed by this language

3 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.kklinguistprimary11.8K files
.kkpygmentsprimary11.8K files
.kkipygmentssecondary452 files

Related languages

Koneko (0.33)Keli (0.30)Koord (0.30)Wa (0.27)rk (0.26)

LLM-contributed programs

Fibonacci with Effect Handlers

Provenance: commit be175d2cd5 · authored 2025-10-22T16:21:57+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.kk · license: Apache-2.0 · added: 2025-10-22T14:21:57Z
public fun fib( n : int ) : div int
  if n <= 1 then n else fib(n-1) + fib(n-2)

public fun main()
  println("fib(10) = " + fib(10).show())
  val t0 = time()
  val x  = fib(35)
  val t1 = time()
  println("fib(35) = " + x.show() + ", took: " + (t1 - t0).show() + " seconds")

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Koka (mapped to pl/koka). 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/Koka/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Kojo KoLmafia ASH →