Push Flow idiomatics across the Euler corpus - #11
Merged
Conversation
Owner
Author
|
Maintenance update (26 Aug 2026): the branch is now synchronized with current |
godofecht
marked this pull request as ready for review
August 23, 2026 14:46
godofecht
marked this pull request as draft
August 23, 2026 15:48
godofecht
marked this pull request as ready for review
August 23, 2026 22:52
godofecht
marked this pull request as draft
August 23, 2026 22:52
godofecht
marked this pull request as ready for review
August 26, 2026 13:44
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.
Continues the direction from PR #10 and its review comment by turning repeated corpus patterns into actual shared conventions.
This pass:
euler.digitsbeyond the original p016 exemplar with reset, integer loading, reverse-add, and palindrome operationslenas the live-prefix invariantforwhile retaining descending/data-dependent loopsforwhile keeping data-dependent cursors and carry loops aswhileeuler.ntin p601 and p570 while deliberately retaining p570's local i128 modular exponentiation because its overflow semantics differFLOW_IDIOMS.md, documenting corpus-derived adoption rules and concrete language/library candidates such as lexical resource ownership and fixed-array initializationlib/convention from the README so the practice is discoverableThe intent is not to maximize use of language features. An idiom is adopted when it recurs, reduces duplicated protocol/state, and preserves the same low-level execution shape.
Qualification is local-only. Keep this PR draft until the complete C-backend corpus and any intended MLIR parity checks have been run locally against the exact head SHA and the results recorded here. Hosted workflow state is not release or merge evidence for this branch.
Branch status:
flow-idiomatics-corpus-passis synchronized with currentmainat headd50e35cf131485e648789ebe75636c1047ac732c, is 0 commits behind, and is technically mergeable. Mark ready or merge only after exact-head local qualification is recorded.Follow-up to #10.