Repository navigation
fix(perf): benchmark correctness and CRLF scanning (#735 #746 #745 #740 #747) - #1401
Merged
Merged
Conversation
This was referenced Oct 6, 2026
Closed
godofecht
force-pushed
the
fix/issue-735-746-745-740-747-runtime-harness
branch
from
October 7, 2026 10:55
0c8374f to
d91b98e
Compare
godofecht
marked this pull request as ready for review
October 7, 2026 10:55
godofecht
added a commit
that referenced
this pull request
Oct 7, 2026
gpu_graph and gpu_tensor (#1406) both exported GPU_ACCESS_READ, _WRITE and _READ_WRITE, and a program cannot import two modules that export the same const. The graph constants are now GPU_GRAPH_ACCESS_*. Added coverage, nav and stdlib-map entries for gpu_graph, gpu_graph_export and gpu_graph_kernels, regenerated stdlib-api.md and the LSP completion golden, and rewrote the Backends section of gpu-graph.md plainly. Prose fixes the commit hook asked for in gpu-graph.md, gpu_graph_kernels.flow and one string.flow comment (the same edit as #1401 and #1406).
godofecht
added a commit
that referenced
this pull request
Oct 7, 2026
…odules gpu_stage_codegen reassigned immutable lets (components, uv_type, tex_type, uv_expr), so the strict check failed and ./flow test-lang had never run test_gpu_stage_codegen. They are now let mut, and the struct fields carry commas like the rest of the stdlib. Added coverage, nav and stdlib-map entries for gpu_resource_types and gpu_stage_codegen, regenerated stdlib-api.md and the LSP completion golden. Two comments reworded for the prose hook (string.flow matches #1401, #1406, #1407).
godofecht
enabled auto-merge
October 7, 2026 17:03
…ase (#747) The rebase took main's side of a conflicting string.flow hunk (both had reworded the str_parse_i64_at overflow sentence), which also dropped this branch's str_line_end comment. Restored and stdlib-api.md regenerated.
…#747) The CRLF line-scanner change and its doc comments shift lib/stdlib/string.flow, so the recorded MLIR of it and of four programs that import it changes. Only those five lines move. parity_mlir: PASS.
godofecht
force-pushed
the
fix/issue-735-746-745-740-747-runtime-harness
branch
from
October 7, 2026 18:11
d91b98e to
ef7bbd6
Compare
…docs (#747) Completion items carry stdlib doc comments; str_line_end and str_line_next now describe CR and CRLF, so the one completion reply that lists them changes (expected and accepted.diff). Recorded with FLOW_LSP_ONLY=completion ./flow tool tests/tools/lsp/run.flow --update.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #735, #745, #746 and #747. Closes none of them.
Changes
tools/compile_benchcounts a final line with no trailing newline. A one-line file used to report"loc": 0.compile_benchstops on the first failed emit, cc or run stage and prints no timing row for that program. It used to print a row with-1fields next to the error.bench_harness --eval-regressiontreats a zero, negative or NaN median asno_data. A negative median used to count as an improvement.=== Flow memory profile (#740) ===) is in the file, and a real zero count is kept instead of falling back to stdout counters. The other half of the original [Performance #727] Instrument runtime allocation, peak RSS, stack/arena promotion and temporary lifetimes #740 change (profile only the memory suite) already landed on main in feat: opt-in runtime memory profiler (#740) #1341, so the rebase kept main's version.str_line_endstops at CR as well as LF, andstr_line_nextskips CRLF as one terminator. No caller in the repository relied on the old behaviour. The doc comments anddocs/library/stdlib-api.mdare regenerated.Evidence
Rebased onto main 9f1d6d0. Each new check fails against main's code:
tests/lang/test_stdlib_string_io.flowtests/scripts/bench_regression_guard.flownegative_timing_is_no_datafailscompile_profile/last_unterminated_line_loc"loc": 0)compile_profile/failed_stage_has_no_row(added in this rebase)Gates:
./flow tool tests/bench_harness/run.flow55/0,./flow tool tests/scripts/compile_profile.flow7/0,./flow tool gen_stdlib_docs --checkclean,./flow test-lang274/0,./flow test-runtime34/0,./flow tool tests/cli/run.flow152/2. The two CLI failures (jit_helloprints timings,test_mlirsees a fifth MLIR test) are golden drift on main.No
compiler/srcchange. #1410 also editsscripts/tools/bench_harness/main.flowand is rebased to apply cleanly in either order.