chore(submissions): apply alpha-rename to Scalus 0.16.0 factorial/fibonacci#174
Merged
chore(submissions): apply alpha-rename to Scalus 0.16.0 factorial/fibonacci#174
Conversation
…onacci Refresh factorial_naive_recursion and fibonacci_naive_recursion Scalus 0.16.0 artifacts with the AST-level alpha-rename pass (commit 2126a80 in Unisay/scalus-cape-submissions). Purely-alphabetic identifiers ensure compatibility with the plutus-core 1.45 textual parser. Textual UPLC size reduction (de Bruijn flat encoding / metrics unchanged): factorial.uplc: 679 -> 416 bytes (-38.7%) fibonacci.uplc: 1008 -> 623 bytes (-38.2%)
…packed Refresh fibonacci/Scalus_0.16.0_Unisay_prepacked with the AST-level alpha-rename pass (commit 2126a80 in Unisay/scalus-cape-submissions). Textual UPLC size: 569 -> 527 bytes (-7.4%) Execution metrics unchanged (de Bruijn flat encoding).
There was a problem hiding this comment.
Pull request overview
Updates Scalus 0.16.0 submission artifacts for the factorial/fibonacci scenarios to use the same AST-level alpha-rename pass previously introduced for HTLC, reducing textual UPLC size while keeping execution/flat-encoded metrics unchanged.
Changes:
- Refresh Scalus source references (commit hash + GitHub links) for the affected submissions.
- Update
implementation_notesto document the applied AST-level alpha-rename pass. - Replace textual
.uplcartifacts with alpha-renamed versions (short purely-alphabetic identifiers).
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| submissions/fibonacci_naive_recursion/Scalus_0.16.0_Unisay/source/README.md | Updates source link + commit reference to the refreshed generator commit. |
| submissions/fibonacci_naive_recursion/Scalus_0.16.0_Unisay/metadata.json | Updates source_commit_hash and documents alpha-rename in notes. |
| submissions/fibonacci_naive_recursion/Scalus_0.16.0_Unisay/fibonacci.uplc | Rewrites textual UPLC with short alphabetic identifiers. |
| submissions/fibonacci/Scalus_0.16.0_Unisay_prepacked/source/README.md | Updates source link + commit reference to the refreshed generator commit. |
| submissions/fibonacci/Scalus_0.16.0_Unisay_prepacked/metadata.json | Updates source_commit_hash and documents alpha-rename in notes. |
| submissions/fibonacci/Scalus_0.16.0_Unisay_prepacked/fibonacci.uplc | Rewrites textual UPLC with short alphabetic identifiers. |
| submissions/factorial_naive_recursion/Scalus_0.16.0_Unisay/source/README.md | Updates source link + commit reference to the refreshed generator commit. |
| submissions/factorial_naive_recursion/Scalus_0.16.0_Unisay/metadata.json | Updates source_commit_hash and documents alpha-rename in notes. |
| submissions/factorial_naive_recursion/Scalus_0.16.0_Unisay/factorial.uplc | Rewrites textual UPLC with short alphabetic identifiers. |
Contributor
🚀 PR Preview DeployedPreview URL: https://intersectmbo.github.io/UPLC-CAPE/pr-174/ The preview site is automatically updated on every push to this PR and will be removed when the PR is closed. |
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.
Summary
Refreshes three Scalus 0.16.0 submissions with the AST-level alpha-rename pass from Unisay/scalus-cape-submissions@2126a80.
All generated identifiers are rewritten to short purely-alphabetic names (a, b, …) before serialisation — the same approach introduced for HTLC in #173.
Submissions updated
factorial_naive_recursion/Scalus_0.16.0_Unisayfibonacci_naive_recursion/Scalus_0.16.0_Unisayfibonacci/Scalus_0.16.0_Unisay_prepackedEffect on metrics
The alpha-rename only affects the textual UPLC representation. Flat encoding uses de Bruijn indices so execution costs and
script_size_bytesinmetrics.jsonare unchanged.