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/poke
LLM (this repo) · 1PldbEsolang

Related languages

GNU Poke (0.69)Octave (0.26)Ioke (0.21)GNU Guile (0.20)GNU Octave (0.20)

LLM-contributed programs

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
code.pk · added: 2026-02-27T12:00:00Z
/* 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));

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 Poke (mapped to pl/poke). 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/Poke/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Poison Pokecontest →