Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EXPERIMENTAL revision #728

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Add EXPERIMENTAL revision #728

merged 1 commit into from
Feb 7, 2025

Conversation

chfast
Copy link
Member

@chfast chfast commented Feb 7, 2025

Add new EVMC_EXPERIMENTAL to evmc_revision to allow EVM implementations to expose experimental features.

@chfast chfast requested review from gumb0 and rodiazet February 7, 2025 09:47
@chfast chfast force-pushed the rev_experimental branch 2 times, most recently from 101edf9 to 8ec1923 Compare February 7, 2025 09:52
Add new `EVMC_EXPERIMENTAL` to `evmc_revision` to allow EVM
implementations to expose experimental features.
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.39%. Comparing base (521e486) to head (54f43ed).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #728      +/-   ##
==========================================
- Coverage   93.41%   93.39%   -0.02%     
==========================================
  Files          26       26              
  Lines        3887     3892       +5     
  Branches      404      407       +3     
==========================================
+ Hits         3631     3635       +4     
  Misses        140      140              
- Partials      116      117       +1     

* The unspecified EVM revision used for EVM implementations to expose
* experimental features.
*/
EVMC_EXPERIMENTAL = 15,
Copy link
Member

Choose a reason for hiding this comment

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

So the number is going to change with every added revision? Then if somebody has this hardcoded, e.g. in the command line to evmc-tool, it will break... Maybe not a huge concern.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think in many places we use the fact that we have loop over revisions... I think it would be nice to have something like 100+, but I'm not sure I have time to investigate it right now.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I guess it's mostly in tests, and it's not clear whether we would or would not want to include Experimental revision in them. Maybe rather we do want that, because experimental EVMs shouldn't break any existing functionality.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe if we put the EXPERIMENTAL outside of the MAX this would work somehow... but let's see first how this version works.

@chfast chfast merged commit 0bf52fe into master Feb 7, 2025
19 checks passed
@chfast chfast deleted the rev_experimental branch February 7, 2025 11:45
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