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

Proposal: Vyper versions supported over HTTP API #476

Open
fubuloubu opened this issue Aug 27, 2018 · 2 comments
Open

Proposal: Vyper versions supported over HTTP API #476

fubuloubu opened this issue Aug 27, 2018 · 2 comments

Comments

@fubuloubu
Copy link

What was wrong?

The biggest problem with Vyper is that it's Python, and arbitrary/multiple version handling in Python is a hard thing to handle. It might just be better to delegate to dedicated servers that compile vyper programs using specific versions of the compiler. Access to these could be provided over an HTTP API (that's programmable), with an option to use a local version as well.

Also, with snapcraft/docker containerization, we may be able to support local versioning here too.

Conversation snippet...

@pipermerriam
An open source hostable server which exposed an API for compilation of vyper code would be pretty cool. There are of course security concerns to be considered, but I think it would a valuable tool (especially if it had first class support for multiple vyper versions so that it could be used to do things like verification of deployed instances.

@fubuloubu
Hmm, maybe that is the solution to online integration: a JS "compiler" that just sends everything to Vyper instances on AWS.

@pipermerriam
Well, ideally, something like populus could delegate compilation via HTTP requests to this API so I'd love to have that use case supported

Cute Animal Picture

chortle pug

@pipermerriam
Copy link
Member

pipermerriam commented Aug 27, 2018

Alternate idea might be something that does something similar to tox and manage independent virtualenvs for each installed vyper version. The outer vyper CLI would act as a transparent shell, delegating all execution to subprocess calls to the installed versions embedded in virtualenvs.

Think of it like pyenv but for vyper.

$ vyperenv install 1.2.3
...

@fubuloubu
Copy link
Author

LGTM @jacqueswww, what do you think?

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

No branches or pull requests

2 participants