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

use playpen to implement a sandbox for running code on the rust website #6916

Closed
4 of 6 tasks
thestinger opened this issue Jun 3, 2013 · 9 comments
Closed
4 of 6 tasks

Comments

@thestinger
Copy link
Contributor

I made a simple sandbox for the bot on #rust, and I plan on making a web frontend for it. The service as a whole could run in a VM since it's still vulnerable to a kernel exploit in one of the whitelisted system calls.

Since rustc uses at least 70MiB of memory and up to 128-150MiB for reasonably small examples, we'll need to limit the concurrency based on the chosen resource limit for the sandbox and the memory available.

This would be a nice way to let people try to language before going through the relatively long compile.

TODO list

  • ec2 instance - playtest.rust-lang.org
  • styling the same as the main rust website
  • DNS record for play.rust-lang.org (or some similar name)
  • ability to submit code to the server and have it compiled/run
  • rustdoc integration -- links on all code examples to submit and compile. Note that this should submit all the commented out portions of the example as well (which rustdoc hides by default).
  • fork rust-playpen to the rust-lang organization
@ghost ghost assigned thestinger Jun 3, 2013
@brson
Copy link
Contributor

brson commented Jun 4, 2013

👍

@catamorphism
Copy link
Contributor

(bug triage) Still a great idea; not a blocker.

@thestinger
Copy link
Contributor Author

@adrientetar
Copy link
Contributor

TheHydroImpulse/rust-website seems to implement that.

@thehydroimpulse
Copy link
Contributor

@adridu59 Yeah, I've been implementing @thestinger's playpen for the website.

@alexcrichton
Copy link
Member

We've got an ec2 instance running now at ec2-54-215-67-200.us-west-1.compute.amazonaws.com. There's still a number of tasks to take care of before turning this on officially, and I'd love to see them get done! I've added a number of TODO items to the issue description.

@thestinger
Copy link
Contributor Author

This is now (temporarily) available at http://playtest.rust-lang.org.

@brson
Copy link
Contributor

brson commented May 31, 2014

Sweet!
On May 30, 2014 9:08 PM, "Daniel Micay" notifications@github.com wrote:

This is now (temporarily) available at http://playtest.rust-lang.org.


Reply to this email directly or view it on GitHub
#6916 (comment).

@alexcrichton
Copy link
Member

A CNAME has been setup, this is now available at http://play.rust-lang.org/.

I'm going to close this issue in favor of more specific ones like #14575. Thanks @thestinger, awesome work!

@thestinger thestinger removed their assignment Jun 16, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Mar 25, 2021
…arth

Don't re-export `clippy_utils::diagnostics::*`

changelog: none

Continues rust-lang#6907
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

6 participants