dreamstack/examples
enzotar 9ef28bb53a feat: dependent types — refinement types, type aliases, type annotations
- Lexer: added 'type' and 'where' keywords
- AST: TypeExpr::Refined, Declaration::TypeAlias, LetDecl.type_annotation
- Parser: parse_type_alias_decl, parse_type_expr (Named, Generic, where)
- Type system: Type::Refined, Predicate/PredicateExpr with evaluate_static()
- Errors: RefinementViolation, TypeAliasCycle (Elm-style messages)
- Checker: type alias registry, resolve_type_expr, ast_to_predicate,
  static refinement checking for literal values
- Codegen: Phase 1b runtime guards, predicate_to_js helper

Syntax: type PositiveInt = Int where value > 0
        let count: PositiveInt = 5  -- static check passes
        let count: PositiveInt = -1 -- compile error

118 tests pass (16 in ds-types, 5 new for refinements)
2026-02-26 11:09:33 -08:00
..
modules feat: v2 module system — import/export with multi-file compilation 2026-02-25 20:36:18 -08:00
benchmarks.html feat: signal propagation benchmarks + dev server HMR fix 2026-02-25 01:06:07 -08:00
builtins.ds feat: v2 built-in functions — 90+ native functions 2026-02-25 20:30:08 -08:00
compose-dashboard.ds fix: use explicit /peer/counter channel for streaming-counter 2026-02-26 09:45:07 -08:00
compose-master.ds feat: stream composition API — select, schema, relay filtering 2026-02-26 10:07:47 -08:00
compose-metrics.ds feat: chained signal composition — 3→1→final + mood mixing 2026-02-26 09:51:36 -08:00
compose-search-map.ds fix: signal composition — stream derived signals, fix identity check, correct relay routing 2026-02-25 23:55:05 -08:00
compose-widgets.ds fix: signal composition — stream derived signals, fix identity check, correct relay routing 2026-02-25 23:55:05 -08:00
counter.ds feat: DreamStack compiler foundation — Phase 0/1 2026-02-25 00:03:06 -08:00
dashboard.html feat: Phase 2+3 — effects, streams, springs, search + dashboard 2026-02-25 00:13:09 -08:00
form.ds feat: two-way binding, form props, and async resources 2026-02-25 08:08:37 -08:00
list.ds feat: for-in list rendering + component system 2026-02-25 01:33:28 -08:00
physics.ds feat: physics language integration — scene container with Rapier2D WASM 2026-02-25 10:58:43 -08:00
playground.html feat: Phase 5 — Live Playground with editor, preview, signal graph, console 2026-02-25 00:27:42 -08:00
refined-types.ds feat: dependent types — refinement types, type aliases, type annotations 2026-02-26 11:09:33 -08:00
router.ds feat: hash-based router + keyed list reconciliation 2026-02-25 07:54:00 -08:00
search.html feat: Phase 2+3 — effects, streams, springs, search + dashboard 2026-02-25 00:13:09 -08:00
showcase.html feat: showcase — What DreamStack Does That Nothing Else Can 2026-02-25 00:34:46 -08:00
springs-visual.html feat(compiler): complete bitstream integration — all 9 changes 2026-02-25 13:26:59 -08:00
springs.ds feat(compiler): complete bitstream integration — all 9 changes 2026-02-25 13:26:59 -08:00
step-sequencer.ds feat: step sequencer demo — reactive pads, playhead, BPM 2026-02-25 19:33:12 -08:00
stream-receiver.html feat(demos): sync protocol with Rust codec, add touch/gamepad support 2026-02-25 11:06:42 -08:00
stream-source.html feat(demos): sync protocol with Rust codec, add touch/gamepad support 2026-02-25 11:06:42 -08:00
streaming-clock.ds feat: 4-app signal composition demo with explicit outputs 2026-02-26 09:04:22 -08:00
streaming-counter.ds fix: use explicit /peer/counter channel for streaming-counter 2026-02-26 09:45:07 -08:00
streaming-mood.ds feat: 4-app signal composition demo with explicit outputs 2026-02-26 09:04:22 -08:00
streaming-physics.ds feat(examples): add streaming-physics.ds, mark all roadmap items complete 2026-02-25 14:53:12 -08:00
streaming-receiver.ds feat(examples): add streaming .ds examples — compiler-native streaming 2026-02-25 14:34:41 -08:00
streaming-stats.ds feat: 4-app signal composition demo with explicit outputs 2026-02-26 09:04:22 -08:00
streaming-webrtc.ds feat: WebRTC transport — peer-to-peer data channels with auto-fallback 2026-02-25 15:02:31 -08:00
todo.ds feat: peer mode relay + self-echo filtering for true bidirectional sync 2026-02-25 21:37:17 -08:00
todomvc.ds feat: TodoMVC example with full reactivity 2026-02-25 00:06:20 -08:00
todomvc.html feat: TodoMVC example with full reactivity 2026-02-25 00:06:20 -08:00
widget-map.ds fix: signal composition — stream derived signals, fix identity check, correct relay routing 2026-02-25 23:55:05 -08:00
widget-search.ds fix: signal composition — stream derived signals, fix identity check, correct relay routing 2026-02-25 23:55:05 -08:00