Skip to content

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

@thestinger

Description

@thestinger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions