Skip to content

Conversation

@giladchase
Copy link
Contributor

@giladchase giladchase commented Jan 4, 2026

Summary

Incremental mode isn't implemented yet in the cairo compiler, so this is disabled for now with an
error message. However, once implemented, the logic is already in place.

An example projects, perpetual, was added as a vendored copy, sans .git.
It includes a cairo-project stub, and patch files ready for compilation.
Note that this incremental logic was tested under a local scarb implementation, but currently it can
no longer be tested since we have no incremental compilation.


Type of change

Please check one:

  • Bug fix (fixes incorrect behavior)
  • New feature
  • Performance improvement
  • Documentation change with concrete technical impact
  • Style, wording, formatting, or typo-only change

⚠️ Note:
To keep maintainer workload sustainable, we generally do not accept PRs that
are only minor wording, grammar, formatting, or style changes.
Such PRs may be closed without detailed review.


Why is this change needed?


What was the behavior or documentation before?


What is the behavior or documentation after?


Related issue or discussion (if any)


Additional context

Incremental mode isn't implemented yet in the cairo compiler, so this is disabled for now with an
error message. However, once implemented, the logic is already in place.

An example projects, perpetual, was added as a vendored copy, sans .git.
It includes a cairo-project stub, and patch files ready for compilation.
Note that this incremental logic was tested under a local scarb implementation, but currently it can
no longer be tested since we have no incremental compilation.
@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

giladchase commented Jan 4, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link

github-actions bot commented Jan 4, 2026

Benchmark Comparison

Benchmark                        Baseline       Current      Diff

corelib-clean-full-walltime       25.69 s       25.46 s     -0.9% [faster]

Copy link
Contributor Author

@giladchase giladchase left a comment

Choose a reason for hiding this comment

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

Wasn't sure about adding this one, since it's adding a disabled feature (incremental compilation, which isn't supported in cairo yet), but wanted to have it recorded at least. However, this can be closed without logically affecting the rest of the stack (maybe minor stuff). Once incremental is added to cairo, this can be used without much changes.

@giladchase made 1 comment.
Reviewable status: 0 of 147 files reviewed, all discussions resolved.

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.

3 participants