dreamstack/TODO.md

1.6 KiB

DreamStack TODO

Streaming

  • Signal streaming, pixel streaming, delta streaming, touch/gamepad/resize input
  • Pixel streaming for DOM apps, Opus audio, receiver gamepad, adaptive quality
  • Neural frame types, remaining input types, layout serialization, WASM codec

Streaming — Phase 2

  • Stream transforms_streamMap/_streamFilter/_streamDebounce/_streamDistinct/_streamThrottle pipe operators
  • Replay / Time-travel — relay replay ring buffer with configurable replay_depth
  • Stream recordingrecording_dir config in relay for frame-level recording
  • Multi-relay federationfederation_upstreams relay config for cross-network forwarding

Language

  • Closures / lambdas(x) -> x * 2 first-class functions (parser + codegen)
  • Pattern destructuringlet { count, doubled } = stream from "..." desugars to dot-access lets
  • Async/awaitawait fetch("/api") native async in handlers
  • Better error messages — source context with line + caret in parse errors

Composition

  • merge operatormerge(stream1, stream2)DS._mergeStreams() reactive merge
  • pipe operatorstream from "..." | fn pipe syntax in parser + enhanced runtime
  • Stream-to-component — component with dynamic stream from param
  • Channel groupschannel_matches() wildcard matching: games/* matches games/chess

Architecture

  • Compiler plugin system for custom output targets
  • Language server (ds-lsp) for IDE integration
  • Package registry for sharing .ds components