Carbon

1 program Added 2025-10-23T07:20:04Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 4a56663cd7 · authored 2025-10-23T09:20:04+02:00 · model x-ai/grok-4-fast

Sources mentioning this language

6 sources · pl_id: pl/carbon
LLM (this repo) · 1PldbLinguistPygmentsWikipediaWikidata · Q113157814

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.

Typingstatic, nominative, partly inferred
Designed byGoogle
Influenced byC++ · Rust · Zig · Haskell · Kotlin · Swift
LicenseApache-2.0-with-LLVM-Exception
Implemented inC++
Homepagehttps://github.com/carbon-language

Extensions claimed by this language

4 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.carbonlinguistprimary34.6K files
.carbonpygmentsprimary34.6K files
.carbonwikidataprimary34.6K files
.co2wikidatadeprecated5.1K files

Related languages

Carp (0.27)Carol (0.25)Carth (0.25)Codon (0.25)Crayon (0.23)

LLM-contributed programs

Hello World Sample

Provenance: commit 4a56663cd7 · authored 2025-10-23T09:20:04+02:00 · model x-ai/grok-4-fast · Temp 0.4
code.carbon · license: Apache-2.0 · added: 2025-10-23T07:20:04Z
// Copyright 2022 The Carbon Language Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "sample/print.h"

fn Main() -> i32 {
  Print("Hello, world!");
  return .Ok;
}

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 Carbon (mapped to pl/carbon). 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/Carbon/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Caramel Carbon (programming language) →