Skip to content

capi: Access to ExecutionContext members#799

Merged
chfast merged 7 commits intomasterfrom
capi-exec-context
Jun 20, 2022
Merged

capi: Access to ExecutionContext members#799
chfast merged 7 commits intomasterfrom
capi-exec-context

Conversation

@gumb0
Copy link
Copy Markdown
Collaborator

@gumb0 gumb0 commented Jun 2, 2021

Depends on #626.

@codecov
Copy link
Copy Markdown

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
Comment thread include/fizzy/fizzy.h Outdated
@gumb0 gumb0 force-pushed the capi-exec-context branch from dbb2526 to 6598f35 Compare June 3, 2021 13:30
Comment thread include/fizzy/fizzy.h

void fizzy_free_execution_context(FizzyExecutionContext* ctx) FIZZY_NOEXCEPT;

int* fizzy_get_execution_context_depth(FizzyExecutionContext* ctx) FIZZY_NOEXCEPT;
Copy link
Copy Markdown
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
Copy Markdown
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
@axic axic force-pushed the runtime-metering branch from 5475064 to 48e7015 Compare May 23, 2022 17:39
@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
Copy Markdown
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
Copy Markdown
Collaborator Author

gumb0 commented May 31, 2022

Rebased.

Comment thread bindings/rust/src/lib.rs Outdated
Copy link
Copy Markdown
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.

@gumb0 gumb0 force-pushed the capi-exec-context branch from eba265e to 762c7e2 Compare June 1, 2022 17:16
@gumb0 gumb0 force-pushed the runtime-metering branch from a26d244 to 642a3d5 Compare June 16, 2022 13:38
Base automatically changed from runtime-metering to master June 16, 2022 15:02
@axic
Copy link
Copy Markdown
Member

axic commented Jun 16, 2022

@gumb0 can you rebase?

@gumb0 gumb0 force-pushed the capi-exec-context branch from 762c7e2 to 7800d73 Compare June 16, 2022 17:33
@gumb0 gumb0 marked this pull request as ready for review June 16, 2022 18:03
Comment thread include/fizzy/fizzy.h
FizzyExecutionContext* fizzy_create_execution_context(int depth) FIZZY_NOEXCEPT;

FizzyExecutionContext* fizzy_create_metered_execution_context(
int depth, int64_t ticks) FIZZY_NOEXCEPT;
Copy link
Copy Markdown
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?

Comment thread lib/fizzy/capi.cpp
Copy link
Copy Markdown
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.

@axic axic force-pushed the capi-exec-context branch from 7800d73 to 5db505a Compare June 20, 2022 18:03
@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