rust icon indicating copy to clipboard operation
rust copied to clipboard

play.rust-lang.org

Open ghost opened this issue 14 years ago • 6 comments

Please enable compilation and running of trivial Rust programs online at play.rust-lang.org, similar to http://play.golang.org.

Alternatively, support Rust at http://ideone.com.

ghost avatar Nov 29 '12 08:11 ghost

The ideal way to do this would probably be Issue #2235, though that's rather involved.

I poked around on ideone.com for a bit and didn't see any mention of how to add new languages.

I've looked into running an ideone-ish server for Rust in the past, possibly by making use of the basic features of Geordi (http://www.eelis.net/geordi/ and https://github.com/Eelis/geordi/).

bstrie avatar Nov 29 '12 19:11 bstrie

here is a experimental web based playground based on node.js. However I dont know how to apply file system + network access limitation. If these restrictions can be added I may be able to deploy on heroku or some other node hosting service.

https://github.com/amuxtux/RustNode

amuxtux avatar Nov 29 '12 23:11 amuxtux

@amuxtux Geordi does syscall limitation, if you'd like a basic reference:

https://github.com/Eelis/geordi/blob/master/src/EvalCxx.hsc#L312

bstrie avatar Nov 29 '12 23:11 bstrie

Note that rusti on IRC is a reasonably well-contained evaluator-bot presently, and might be adaptable to this purpose.

graydon avatar May 15 '13 17:05 graydon

rusti (the bot) can definitely be adapted to a web-based evaluator. It's essentially just a Linux root used as a container (isolated process/network namespace). It drops capabilities and restricts device/resource usage with the container's cgroup and uses a whitelist (admittedly an unnecessarily long one atm) of syscalls.

thestinger avatar May 15 '13 17:05 thestinger

I've implemented this, it's just a matter of making the frontend web interface and deploying it on rust-lang.org in some form.

Closing in favour of #6916.

thestinger avatar Jun 22 '13 05:06 thestinger