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

feat(interface-types) Implement string and memory instructions #1284

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Mar 10, 2020

Previously, we had read-utf8 and write-utf8 instructions. The latest version of the standard proposes respectively memory-to-string and string-to-memory. The semantics is close though.

@Hywan
Copy link
Contributor Author

Hywan commented Mar 10, 2020

bors try

bors bot added a commit that referenced this pull request Mar 10, 2020
@bors
Copy link
Contributor

bors bot commented Mar 10, 2020

try

Build succeeded

@Hywan
Copy link
Contributor Author

Hywan commented Mar 10, 2020

bors r+

bors bot added a commit that referenced this pull request Mar 10, 2020
1284: feat(interface-types) Implement string and memory instructions r=Hywan a=Hywan

Previously, we had `read-utf8` and `write-utf8` instructions. The latest version of the standard proposes respectively `memory-to-string` and `string-to-memory`. The semantics is close though.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
@syrusakbary syrusakbary merged commit ea64149 into wasmerio:master Mar 10, 2020
@bors
Copy link
Contributor

bors bot commented Mar 10, 2020

This PR was included in a batch that successfully built, but then failed to merge into master (it was a non-fast-forward update). It will be automatically retried.

bors bot added a commit that referenced this pull request Mar 12, 2020
1285: feat(interface-types) Greatly improve errors r=Hywan a=Hywan

~This PR is build on top of #1284. It must be merged first. [View the exact diff](https://github.com/Hywan/wasmer/compare/feat-interface-types-instructions-string-and-memory...Hywan:feat-interface-types-better-error?expand=1).~

Errors in `wasmer-interface-types` were just `&'static str`, which isn't quite great 😉. This PR introduces the `errors` module, with structures that represent errors. A `Display` implementation maps the errors to strings.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 enhancement New feature!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants