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

capi: Access to ExecutionContext members #799

Merged
merged 7 commits into from
Jun 20, 2022
Merged

capi: Access to ExecutionContext members #799

merged 7 commits into from
Jun 20, 2022

Conversation

gumb0
Copy link
Collaborator

@gumb0 gumb0 commented Jun 2, 2021

Depends on #626.

@codecov
Copy link

codecov bot commented Jun 2, 2021

Codecov Report

Merging #799 (59737b8) into master (59737b8) will not change coverage.
The diff coverage is n/a.

❗ Current head 59737b8 differs from pull request most recent head 5db505a. Consider uploading reports for the commit 5db505a to get more accurate results

@@           Coverage Diff           @@
##           master     #799   +/-   ##
=======================================
  Coverage   99.27%   99.27%           
=======================================
  Files          88       88           
  Lines       13182    13182           
=======================================
  Hits        13086    13086           
  Misses         96       96           
Flag Coverage Δ
rust 98.47% <0.00%> (ø)
spectests 89.92% <0.00%> (ø)
unittests 99.22% <0.00%> (ø)
unittests-32 99.31% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@gumb0 gumb0 force-pushed the capi-exec-context branch 3 times, most recently from 5942b59 to dbb2526 Compare June 2, 2021 14:13
include/fizzy/fizzy.h Outdated Show resolved Hide resolved

void fizzy_free_execution_context(FizzyExecutionContext* ctx) FIZZY_NOEXCEPT;

int* fizzy_get_execution_context_depth(FizzyExecutionContext* ctx) FIZZY_NOEXCEPT;
Copy link
Collaborator Author

@gumb0 gumb0 Jun 3, 2021

Choose a reason for hiding this comment

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

Does this returning int* look fine, or would _get/_set functions be better?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure, need to try in Rust how to interact with that, but we could merge this as a first step anyway.

@gumb0 gumb0 force-pushed the capi-exec-context branch 3 times, most recently from 5960f77 to 704c9fc Compare June 7, 2021 15:12
@gumb0 gumb0 force-pushed the capi-exec-context branch 2 times, most recently from 83195ad to 86268ec Compare June 24, 2021 14:52
@gumb0 gumb0 force-pushed the runtime-metering branch 3 times, most recently from 7095691 to a26d244 Compare May 30, 2022 14:51
@axic
Copy link
Member

axic commented May 31, 2022

@gumb0 do you want to rebase this on #626?

@gumb0 gumb0 force-pushed the capi-exec-context branch 2 times, most recently from df42121 to eba265e Compare May 31, 2022 13:11
@gumb0
Copy link
Collaborator Author

gumb0 commented May 31, 2022

Rebased.

bindings/rust/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

I think this looks good generally, but let's get #626 merged first.

Base automatically changed from runtime-metering to master June 16, 2022 15:02
@axic
Copy link
Member

axic commented Jun 16, 2022

@gumb0 can you rebase?

@gumb0 gumb0 marked this pull request as ready for review June 16, 2022 18:03
FizzyExecutionContext* fizzy_create_execution_context(int depth) FIZZY_NOEXCEPT;

FizzyExecutionContext* fizzy_create_metered_execution_context(
int depth, int64_t ticks) FIZZY_NOEXCEPT;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
int depth, int64_t ticks) FIZZY_NOEXCEPT;
int depth, int64_t max_ticks) FIZZY_NOEXCEPT;

Perhaps this?

Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise.

@chfast chfast merged commit 3581284 into master Jun 20, 2022
@chfast chfast deleted the capi-exec-context branch June 20, 2022 18:40
@axic axic mentioned this pull request Jun 21, 2022
49 tasks
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