Bosque

1 program Added 2025-10-27T13:33:51Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit d6b770e667 · authored 2025-10-27T14:33:51+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

4 sources · pl_id: pl/bosque
LLM (this repo) · 1PldbWikipediaWikidata · Q63243349

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · typed
Designed byMicrosoft · Mark Marron
First appeared2019
Influenced byJavaScript · TypeScript · ML
LicenseMIT
Homepagehttps://www.microsoft.com/en-us/research/project/bosque-programming-language/

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.bsqwikipediaproposed2.2K files

Related languages

Burlesque (0.36)Blue (0.27)Bossa (0.25)Boogie (0.23)Bosatsu (0.21)

LLM-contributed programs

Tree Sum in Bosque

Provenance: commit d6b770e667 · authored 2025-10-27T14:33:51+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.bsq · license: MIT License · added: 2025-10-27T13:33:51Z
namespace NSMain;

concept Tree provides {
    root: Node;
}

concept Node provides {
    value: Int;
    left: Node?;
    right: Node?;
}

function sum(t: Tree): Int {
    return sum(t.root);
}

function sum(n: Node?): Int {
    if(n == none) {
        return 0;
    }
    else {
        return n.value + sum(n.left) + sum(n.right);
    }
}

entrypoint function main(): Int {
    var t: Tree = Tree@{
        root: Node@{
            value: 5,
            left: Node@{
                value: 3,
                left: none,
                right: none
            },
            right: Node@{
                value: 2,
                left: Node@{
                    value: 8,
                    left: none,
                    right: none
                },
                right: none
            }
        }
    };

    return sum(t);
}

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 Bosque (mapped to pl/bosque). 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/Bosque/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Bosatsu Bossa →