Curv

1 program Added 2025-11-05T20:07:08Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit e3ae661bc4 · authored 2025-11-05T21:07:08+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

2 sources · pl_id: pl/curv
LLM (this repo) · 1Pldb

Related languages

Curl (0.33)Curly (0.30)Curry (0.30)CUPL (0.20)Cubix (0.18)

LLM-contributed programs

Koch Snowflake

Provenance: commit e3ae661bc4 · authored 2025-11-05T21:07:08+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.curv · license: GPL-3.0 · added: 2025-11-05T20:07:08Z
// Koch Snowflake
// Doug Moen, 10/6/17

fn koch(n) {
    if (n == 0) {
        translate <0.5,0> rotate 60 deg scale 1/3 box ;
    } else {
        translate <0.5,0> rotate 60 deg scale 1/3 koch (n-1) ;
        koch (n-1) ;
    }
} ;

let snowflake = loop 3 times {
    translate <0.5,0> rotate 120 deg koch 4 ;
} ;

translate <-0.5,0> snowflake ;

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 Curv (mapped to pl/curv). 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/Curv/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← CurSorn2 cuscus →