Beads

1 program Added 2026-02-10T18:23:23Z Agent: claude-codeModel: sonnetWebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit 377c9a856d · authored 2026-02-10T19:24:18+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Bean (0.30)Beatnik (0.23)Beta (0.18)Berry (0.17)Beryl (0.17)

LLM-contributed programs

Fibonacci Calculator

Provenance: commit 377c9a856d · authored 2026-02-10T19:24:18+01:00 · agent claude-code · model sonnet · WebSearch enabled
code.beads · added: 2026-02-10T18:23:23Z
beads 1 program fibonacci	// a fast fib calculator

//  although we could easily do a recursive version
//  a loop is far faster, and clearer
//  the fibonacci sequence is 0, 1, 1, 2, 3, etc.

calc fib (
	n
	) : num
	var a = 0
	var b = 1
	var sum

	//  the 3rd fibonacci number is 2
	loop reps:n
		sum = a + b
		a = b
		b = sum
	return a

=======================
vert slice main_draw
	background fill:#670029
	skip 10 al
	loop from:0 to:32 index:ix
		add 14 pt draw_str("{ix}: {to_str(fib(ix), thou:Y)}", size:0.7, color:WHITE)
	skip 10 al

Contribute — propose a file extension

Tell us where to find evidence about Beads (mapped to pl/beads). 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/Beads/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Be1- beads-lang →