DX: curate & categorise the examples/ crowd (42 flat files, chronorift dir+file dup) #28
Labels
No labels
area:ci
area:docs
area:input
area:net
area:rendering
area:repo
area:stdlib
area:tooling
area:types
cleanup
dx
priority:high
priority:low
priority:medium
proposal
status:in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: workshopsoft/ludic#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
examples/is a flat crowd of 42 entries with no categorisation, and it readsas noise rather than a curated showcase:
net_*.ludic, 6world_*.ludic, 6*events*.ludic, plus a longtail of one-off micro-demos (
toggle,promote,cancel,recurse,reason,scoped,qdecl,strings, …).chronoriftexists as both a directory and achronorift.ludicfile, andthere is an
examples/lib/— the layout is ambiguous about what's a real,runnable, showcase example vs. a scratch test.
bin/x test; the rest areunverified and can silently rot.
Proposal
Curate and categorise:
examples/games/(chronorift,snake, menu),
examples/networking/,examples/ecs-world/,examples/events/,examples/language-tour/(the tiny feature demos)."feature tour" files, or move the pure regression snippets under
selfhost/tests/where they belong.
chronoriftdir-vs-file duplication.bin/x testso examples can't rot.examples/README.mdindexing what's there and how to run it.Acceptance criteria
chronoriftduplication resolved.examples/README.mdexplains the set; kept examples are covered by tests.Part of the repository-cleanup / DX pass.
Done in
fb728bb(verified:bin/x test49/0,bin/x selfhost-test29/0,bin/x test-tools29/0).Acceptance criteria
games/,rendering/,ecs/,events/,networking/,lang/, andlibrary/(waslib/).entry(ecs/hello,events/events,networking/net_rt) get a new compile-only rot guard inbin/x test("== showcase examples still compile =="), so nothing here can silently rot.chronoriftduplication resolved — it was never a true dup:chronorift.ludicis the entry thatimports the modules beside it. They now live together underexamples/games/chronorift.ludic+examples/games/chronorift/, which makes the entry-vs-modules relationship unambiguous.examples/README.md— added; indexes every example by category with copy-paste run commands.All path references were updated repo-wide in the same commit (the Ludic test runner, the LSP/grammar drivers,
docs/site, and the root design docs), and the test helpers now take a category-qualified path (games/snake,lang/annotations, …).