You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Self-Hosting Phase 2] Port Shader DSL to Native Flow #683
Implementation merged in #890: shader_dsl.flow (real parse/validate), KW_SHADER, AST_SHADER, and parser/typecheck hooks. Bootstrap self-reproduces and the full corpus verify passes. The session's shipped test_backend_shader was an empty stub (def ...: pass) so it was dropped. Keeping open until a functional test compiles a 'shader fill' program through the bootstrap flowc and asserts on the output.
Maintenance update, 2026-09-13: #890 merged the self-hosted Shader DSL front-end slice as 75e78325064f31bd8cd53ba0f676be02eb0973d7. It adds compiler/src/shader_dsl.flow, KW_SHADER, AST_SHADER, and parser/typecheck hooks for shader fill / shader compute; the merged PR records regenerated bootstrap, fixed-point success, and bootstrap_from_c.sh --verify success.
This issue should remain open: #890 explicitly notes that the shipped test was an empty stub and was dropped. The remaining actionable acceptance gap is a real functional self-hosted shader-program regression covering at least one fill and one compute declaration, including validation/binding behavior and the intended examples/graphics/shader_demo.flow path, then local execution against the current tree. Do not close #683 until that functional coverage exists.
Additional progress: flowc.shader_dsl now validates non-empty declarations and requires fill shaders to assign the color output, while compute declarations require a non-empty body. Native positive/negative fixture passes, including quoted/nested braces and unclosed/missing-color rejection. Python-host selftest, bootstrap fixed point, bootstrap_from_c verification, and self_host_full all pass. Full shader-body grammar and pipeline binding/interface integration remain open.
Production integration completed for the next slice: resolve.flow now invokes flowc_shader_validate before expanding shader fill blocks. Valid fills continue through the compatibility stub path; malformed/unclosed fills and fills without color assignment are rejected. Added tests/integration/test_native_shader_dsl.py covering valid and invalid bundle behavior. Native scanner fixture, Python-host selftest, bootstrap fixed point, bootstrap_from_c verification, and self_host_full all pass. Full shader-body grammar and pipeline binding/interface integration remain open.
Further native shader-body validation: added balanced-parenthesis/bracket/quote checks and rejected empty color assignments. Native fixture covers unbalanced vec4(...) and color = } failures; Python-host selftest, bootstrap fixed point, bootstrap_from_c verification, and self_host_full all pass. Full shader expression grammar and pipeline binding/interface integration remain open.
Activity
selfhost: port Shader DSL lexing, parsing and validation to Flow (#683)…
godofecht commentedon Sep 12, 2026
Implementation merged in #890: shader_dsl.flow (real parse/validate), KW_SHADER, AST_SHADER, and parser/typecheck hooks. Bootstrap self-reproduces and the full corpus verify passes. The session's shipped test_backend_shader was an empty stub (def ...: pass) so it was dropped. Keeping open until a functional test compiles a 'shader fill' program through the bootstrap flowc and asserts on the output.
godofecht commentedon Sep 13, 2026
Maintenance update, 2026-09-13: #890 merged the self-hosted Shader DSL front-end slice as
75e78325064f31bd8cd53ba0f676be02eb0973d7. It addscompiler/src/shader_dsl.flow,KW_SHADER,AST_SHADER, and parser/typecheck hooks forshader fill/shader compute; the merged PR records regenerated bootstrap, fixed-point success, andbootstrap_from_c.sh --verifysuccess.This issue should remain open: #890 explicitly notes that the shipped test was an empty stub and was dropped. The remaining actionable acceptance gap is a real functional self-hosted shader-program regression covering at least one fill and one compute declaration, including validation/binding behavior and the intended
examples/graphics/shader_demo.flowpath, then local execution against the current tree. Do not close #683 until that functional coverage exists.godofecht commentedon Sep 16, 2026
Progress in current checkout: added compiler/src/shader_dsl.flow with bounds-checked fill/compute declaration scanning, zero-copy name/body spans, comment and quoted-brace handling, nested-brace matching, and malformed-block rejection. Added tests/lang/test_shader_dsl_native.flow; native bootstrap fixture passes, Python-host compiler selftest passes, bootstrap fixed point passes, bootstrap_from_c.sh --verify passes, and self_host_full passes. Issue remains open for shader-body parsing/validation, binding/interface checks, and codegen integration.
godofecht commentedon Sep 16, 2026
Additional progress: flowc.shader_dsl now validates non-empty declarations and requires fill shaders to assign the color output, while compute declarations require a non-empty body. Native positive/negative fixture passes, including quoted/nested braces and unclosed/missing-color rejection. Python-host selftest, bootstrap fixed point, bootstrap_from_c verification, and self_host_full all pass. Full shader-body grammar and pipeline binding/interface integration remain open.
godofecht commentedon Sep 16, 2026
Production integration completed for the next slice: resolve.flow now invokes flowc_shader_validate before expanding shader fill blocks. Valid fills continue through the compatibility stub path; malformed/unclosed fills and fills without color assignment are rejected. Added tests/integration/test_native_shader_dsl.py covering valid and invalid bundle behavior. Native scanner fixture, Python-host selftest, bootstrap fixed point, bootstrap_from_c verification, and self_host_full all pass. Full shader-body grammar and pipeline binding/interface integration remain open.
godofecht commentedon Sep 16, 2026
Further native shader-body validation: added balanced-parenthesis/bracket/quote checks and rejected empty color assignments. Native fixture covers unbalanced vec4(...) and
color = }failures; Python-host selftest, bootstrap fixed point, bootstrap_from_c verification, and self_host_full all pass. Full shader expression grammar and pipeline binding/interface integration remain open.selfhost: Shader DSL (FSL) extraction, parser and Metal/WGSL codegen …
shader DSL: build on flowc, retire the Python backends (#683)
selfhost: fill-shader host stub at every flowc source read (#683)
11 remaining items
selfhost: Shader DSL (FSL) extraction, parser and Metal/WGSL codegen …
shader DSL: build on flowc, retire the Python backends (#683)
selfhost: fill-shader host stub at every flowc source read (#683)
selfhost: shader DSL parity gate, fixtures and Flow test (#683)
wasm: keep the path-setup import exempt from E402 (#683)
parity_shader_dsl: list the Flow port test as a documented deviation (#…
fix: regenerate bootstrap C after the Shader DSL port (#683)
selfhost: Shader DSL (FSL) extraction, parser and Metal/WGSL codegen …
shader DSL: build on flowc, retire the Python backends (#683)
selfhost: fill-shader host stub at every flowc source read (#683)
selfhost: shader DSL parity gate, fixtures and Flow test (#683)
wasm: keep the path-setup import exempt from E402 (#683)
parity_shader_dsl: list the Flow port test as a documented deviation (#…
fix: regenerate bootstrap C after the Shader DSL port (#683)