skills/x07lang/x07-website/x07-io-streams

x07-io-streams

SKILL.md

x07-io-streams

Prefer streaming parsing and zero-copy views over full-buffer copies.

Canonical patterns

  • Prefer bytes_view + view.* builtins for scan/trim/split without copying.
  • Prefer std.stream.pipe_v1 for deterministic, budgeted streaming composition (source → transducers → sink).
  • Prefer std.io / std.io.bufread for streaming reads:
    • io.read
    • bufread.fill + bufread.consume
  • Prefer world adapters that return reader ifaces:
    • std.fs.open_read
    • std.kv.get_stream

For the built-in reference guide, use x07 guide and search for std.io / std.io.bufread.

Weekly Installs
1
First Seen
3 days ago
Installed on
mcpjam1
claude-code1
replit1
junie1
windsurf1
zencoder1