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

Implement Vec and Symbol #13

Merged
merged 9 commits into from
Jul 23, 2024
Merged

Implement Vec and Symbol #13

merged 9 commits into from
Jul 23, 2024

Conversation

bbyalcinkaya
Copy link
Member

@bbyalcinkaya bbyalcinkaya commented Jul 17, 2024

Implemented host functions:

  • vec_new_from_linear_memory: v g
  • vec_unpack_to_linear_memory: v h
  • symbol_new_from_linear_memory: b j

@bbyalcinkaya bbyalcinkaya changed the title Implement Vec Implement Vec and Symbol Jul 22, 2024
@bbyalcinkaya bbyalcinkaya marked this pull request as ready for review July 22, 2024 13:32
Copy link
Contributor

@gtrepta gtrepta left a comment

Choose a reason for hiding this comment

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

Approving, but please take a look at my comments.

Also, adding links to the specification in each of the sections (ie. the six bit strings) would be very helpful.


syntax Int ::= encode6bitChar(Int) [function, total, symbol(encode6bitChar)]
// ---------------------------------------------------------------------------------
rule encode6bitChar(I) => 1 requires 9 ==Int I // '_' == I
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
rule encode6bitChar(I) => 1 requires 9 ==Int I // '_' == I
rule encode6bitChar(I) => 1 requires 95 ==Int I // '_' == I

Is this a bug? The ASCII code for '_' is 95, though it looks like your integration test is exercising this character.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right. This is a bug. The Rust framework handles the encoding of small symbols on Wasm side without calling the host function. That's why the integration test couldn't catch it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a hand-written wasm test for small symbols.

src/ksoroban/kdist/soroban-semantics/data.md Show resolved Hide resolved
src/ksoroban/kdist/soroban-semantics/wasm-ops.md Outdated Show resolved Hide resolved
@rv-jenkins rv-jenkins merged commit 9942796 into master Jul 23, 2024
3 checks passed
@rv-jenkins rv-jenkins deleted the vec branch July 23, 2024 09:01
@bbyalcinkaya bbyalcinkaya mentioned this pull request Aug 20, 2024
asavienko added a commit that referenced this pull request Sep 4, 2024
asavienko added a commit that referenced this pull request Sep 4, 2024
* Add GitHub workflow for SSL renewal

This commit adds a new GitHub Actions workflow for renewing SSL certification periodically. The workflow will operate on user-defined environments, reducing manual effort and ensuring the SSL maintains its validity. The process involves the usage of the acme.sh script, running on self-hosted, Linux, flyweight runners.

* fix: Replaced zerossl with letsencrypt

---------

Co-authored-by: Yiyi Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants