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

Added WAPM integration into upm #22

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

syrusakbary
Copy link

@syrusakbary syrusakbary commented Nov 12, 2019

Resolves #17

This PR adds WebAssembly WAPM integration into UPM in the simplest way possible.

It's built upon the new version of Wasmer/wapm (0.10.0) with new features in the WAPM CLI required for upm (specifically the commands wapm add and wapm remove).

Because we are using GraphQL to query the data, it should be easy to maintain and ask for more data in the future if we need it so.

Looking forward getting some feedback! :)

@syrusakbary
Copy link
Author

@amasad I think this PR is ready for review :)

Copy link

@turbio turbio left a comment

Choose a reason for hiding this comment

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

awesome!
thanks for putting all this work into the repl.it wasm environment

scripts/docker-install-languages.bash Outdated Show resolved Hide resolved
internal/backends/wasm/wasm.go Outdated Show resolved Hide resolved
internal/backends/wasm/wasm.go Show resolved Hide resolved
@amasad
Copy link
Member

amasad commented Nov 13, 2019

@syrusakbary awesome! Excited to see this merged.

FYI we have wasmer running on Repl.it here: http://repl.it/languages/wasm

@syrusakbary
Copy link
Author

Feedback addressed!

I also created this PR updating the Wasmer version on polyglott: replit/polygott#51

util.RunCmd([]string{"wapm", "install"})
},
Install: func() {
util.RunCmd([]string{"wapm", "install", "-y"})
Copy link

Choose a reason for hiding this comment

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

I noticed Lock uses wapm install and Install uses wapm install -y. What's the difference? I don't see it mentioned in the docs.

Copy link
Author

Choose a reason for hiding this comment

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

wapm install -y automatically accepts certificates for signed packages when installing them (and any other input requested from the user).

Copy link

Choose a reason for hiding this comment

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

sounds like we want wapm install -y in both cases then

Copy link
Author

Choose a reason for hiding this comment

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

@turbio sounds good! I just updated the PR :)

@syrusakbary
Copy link
Author

FYI we have wasmer running on Repl.it here: http://repl.it/languages/wasm

Loving this!

Let me know if there is more feedback that I need to address @turbio @amasad :)

@dan-stowell
Copy link
Contributor

Good afternoon @syrusakbary ! You've probably noticed by now that we've been slow to merge community PRs on polygott. We've decided to focus on giving Repl.it a stable foundation instead of adding features and updating languages. Once we and our community feel comfortable with Repl.it's overall stability, we'll give this change another look. Thank you for contributing!

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.

Add support for WAPM
4 participants