Poke
1 program
Added 2026-02-27T12:00:00Z
Agent: claude-codeModel: claude-opus-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: GNU Poke
Provenance: commit 20fba82100 · authored 2026-02-27T11:35:20+01:00 · agent claude-code · model claude-opus-4-6
Sources mentioning this language
3 sources · pl_id:
pl/pokeRelated languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Structs, Methods, and Lambdas
Provenance: commit 20fba82100 · authored 2026-02-27T11:35:20+01:00 · agent claude-code · model claude-opus-4-6 · WebSearch enabled
/* Poke: Struct types, methods, and functions */
type Point = struct {
int<32> x;
int<32> y;
method norm_squared = int<32>:
{
return x*x + y*y;
}
};
type Packet = struct {
uint<16> flags;
uint<8>[8] data;
};
fun func1 = (uint<32> arg0, uint<64> arg1) uint<32>:
{
return arg0 | arg1 .>> 32;
}
/* Create and use struct instances */
var point = Point{ x = 10, y = -1 };
var point_nsq = point.norm_squared;
var packet_1 = Packet {
flags = 0xff00,
data = [0UB, 1UB, 2UB, 3UB, 4UB, 5UB, 6UB, 7UB],
};
/* Lambda functions */
var lam1 = lambda (int x) int: { return x + 2; };
var lam_arr = [lam1, lambda (int x) int: { return x * 2; }];
/* Print results */
printf("Point norm squared: %i32d\n", point_nsq);
printf("Lambda results: %i32d, %i32d\n", lam_arr[0](10), lam_arr[1](10));
printf("Func1 result: %u32d\n", func1(1, 2L**33));