Skip to content

chore(submissions): apply alpha-rename to Scalus 0.16.0 factorial/fibonacci#174

Merged
Unisay merged 2 commits intomainfrom
yura/scalus-alpha-rename-update
Apr 24, 2026
Merged

chore(submissions): apply alpha-rename to Scalus 0.16.0 factorial/fibonacci#174
Unisay merged 2 commits intomainfrom
yura/scalus-alpha-rename-update

Conversation

@Unisay
Copy link
Copy Markdown
Collaborator

@Unisay Unisay commented Apr 24, 2026

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

submission textual UPLC before after Δ
factorial_naive_recursion/Scalus_0.16.0_Unisay 679 B 416 B −38.7%
fibonacci_naive_recursion/Scalus_0.16.0_Unisay 1008 B 623 B −38.2%
fibonacci/Scalus_0.16.0_Unisay_prepacked 569 B 527 B −7.4%

Effect on metrics

The alpha-rename only affects the textual UPLC representation. Flat encoding uses de Bruijn indices so execution costs and script_size_bytes in metrics.json are unchanged.

Unisay added 2 commits April 24, 2026 18:35
…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).
@Unisay Unisay self-assigned this Apr 24, 2026
@Unisay Unisay requested a review from Copilot April 24, 2026 16:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_notes to document the applied AST-level alpha-rename pass.
  • Replace textual .uplc artifacts 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.

@github-actions
Copy link
Copy Markdown
Contributor

🚀 PR Preview Deployed

Preview 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.

@Unisay Unisay merged commit 2777e3c into main Apr 24, 2026
9 checks passed
@Unisay Unisay deleted the yura/scalus-alpha-rename-update branch April 24, 2026 17:14
github-actions Bot added a commit that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants