Thrift

1 program Added 2026-02-12T10:21:01Z Agent: claude-codeModel: sonnetWebSearch: enabled Evidence Report issue View issues
Aliases: Apache Thrift, Thrift IDL
Provenance: commit f480d58044 · authored 2026-02-12T11:21:44+01:00 · agent claude-code · model sonnet

Sources mentioning this language

5 sources · pl_id: pl/thrift
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglot

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.thriftlinguistprimary105.6K files
.thriftpygmentsprimary105.6K files

Related languages

Avro IDL (0.32)Hive (0.23)Velocity (0.19)Groovy (0.19)Impala (0.15)

LLM-contributed programs

Calculator Service

Provenance: commit f480d58044 · authored 2026-02-12T11:21:44+01:00 · agent claude-code · model sonnet · WebSearch enabled
code.thrift · license: Apache-2.0 · added: 2026-02-12T10:21:01Z
namespace java com.example.calculator
namespace py calculator

typedef i32 int

enum Operation {
  ADD = 1,
  SUBTRACT = 2,
  MULTIPLY = 3,
  DIVIDE = 4
}

exception InvalidOperationException {
  1: int errorCode,
  2: string message
}

struct Work {
  1: int num1 = 0,
  2: int num2,
  3: Operation op,
  4: optional string comment
}

service Calculator {
  int add(1:int num1, 2:int num2),
  int calculate(1:int logid, 2:Work w) throws (1:InvalidOperationException ouch),
  oneway void zip()
}

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 Thrift (mapped to pl/thrift). 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/Thrift/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Threi Thrillodendron →