rust-lang / rust-playground Goto Github PK
View Code? Open in Web Editor NEWThe Rust Playground
Home Page: https://play.rust-lang.org/
License: Apache License 2.0
The Rust Playground
Home Page: https://play.rust-lang.org/
License: Apache License 2.0
Compiling playground v0.0.1 (file:///playground)
error: can't find crate for `iron` [E0463]
--> src/main.rs:2:5
2 |> extern crate iron;
|> ^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
error: Could not compile `playground`.
Doesn't have the --explain
.
It was brought to my attention that many vim-mode users expect that :w
compiles the code.
Not sure if it's against the protocol, but I'd vouch for serde_derive to be added to the top crates.
I wanted to add a modern playground example to http://stackoverflow.com/a/37565736/257568 but it turns out there's no serde_derive there yet.
I mean, Serde is certainly in the top crates, but we'd want to promote the newer serde_derive version of the automation instead of the older serde_macros, right?
The output is not visible in Safari (its height is 5px or something). If I change a random CSS property of .output
, it seems to recalculate the height and corrects the layout.
I'm using Safari Technology Preview version 9.1.2 (11601.7.4, 11602.1.37).
As mentioned in rust-lang/rust-playpen#198 and in the users forum.
If the backend is in a bad state (like if the Docker container is not running), then we should kill the request after some amount of time and report some kind of error.
When running npm install
in ui/frontend
i get the following error:
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
As mentioned in the github repos of fsevents fsevents/fsevents#134, fsevents is OSX only. I'm not sure how to proceed :)
It would be nice to support limits on disk space, to prevent denial of service attacks.
An option to demangle names from the LLVM IR/ASM output would be nice, and make it more readable.
?code=fn%20main()%20{%0a%20%20%20%20println!("Hello,%20world!");%0a}
=>
fn main() {
println!("Hello, world!");
}
It used to just be foo.ll
, now it's foo-HASH.ll
.
Right now, it's public, max-age=31536000
, which means that clients will never ask for an updated index.html
. We only want to set these headers for the compiled assets!
This is how I'd use the official playground to look at asm or llvm ir for a single function:
#![crate_type="lib"]
pub fn memory(b: Box<[u8]>) {
}
on this playground, I can't find the way to do what I wanted (the single pub function emitted as asm/llvm ir by itself).
Should this include the useful "link to error" highlighting?
Just to stop the silly 404s if nothing else.
I ran some code that I was interested to see either the output or the compilation errors for. After I clicked Run, I had to scroll to see most of the output that I was interested in.
On the official playground, I can see a lot more of the output without having to scroll. I am le tired.
Example on this playground:
Example on the official playground:
It seems like it is not possible to copy and/or paste text, neither via keyboard shortcuts or the context menu. (Firefox 50.1.0, Ubuntu)
http://security.stackexchange.com/a/107853/7497
Docker has a blacklist approach for security, which isn't ideal. We should be using a whitelisting sandbox.
vendor-f875c97….js:58 Uncaught TypeError: Cannot read property '_handle' of undefined
at http://play.integer32.com/vendor-f875c976a9dab3b0e5f5.js:58:1525
at Array.forEach (native)
at e.exports (http://play.integer32.com/vendor-f875c976a9dab3b0e5f5.js:58:1504)
at Object.<anonymous> (http://play.integer32.com/vendor-f875c976a9dab3b0e5f5.js:16:6124)
at Object.<anonymous> (http://play.integer32.com/vendor-f875c976a9dab3b0e5f5.js:16:10942)
at t (http://play.integer32.com/manifest-842991282bc80cd97f47.js:1:107)
at Object.<anonymous> (http://play.integer32.com/vendor-f875c976a9dab3b0e5f5.js:27:22411)
at Object.<anonymous> (http://play.integer32.com/vendor-f875c976a9dab3b0e5f5.js:27:24195)
at t (http://play.integer32.com/manifest-842991282bc80cd97f47.js:1:107)
at Object.<anonymous> (http://play.integer32.com/vendor-f875c976a9dab3b0e5f5.js:27:27240)
(anonymous) @ vendor-f875c97….js:58
e.exports @ vendor-f875c97….js:58
(anonymous) @ vendor-f875c97….js:16
(anonymous) @ vendor-f875c97….js:16
t @ manifest-8429912….js:1
(anonymous) @ vendor-f875c97….js:27
(anonymous) @ vendor-f875c97….js:27
t @ manifest-8429912….js:1
(anonymous) @ vendor-f875c97….js:27
(anonymous) @ vendor-f875c97….js:27
t @ manifest-8429912….js:1
(anonymous) @ vendor-f875c97….js:1
t @ manifest-8429912….js:1
window.webpackJsonp @ manifest-8429912….js:1
(anonymous) @ vendor-f875c97….js:1
If I scroll down in the assembly then click back on the execution and back to assembly, by scroll position is lost.
This might be magically fixed by running everything thru cargo though, as it will print things.
Loading these async would probably be ideal, but I'm not sure how to do that, yet...
A concern by a user mentioned that it bothered them that the line number column is not fixed width. You can see this by opening a blank editor, and hitting enter. You will notice that the width of the line number column increases going from line 9 -> line 10, and from line 99 -> line 100.
Like that the packages compile and the unit tests run. Later on - integration
Right now, the beta channel is broken. This shouldn't preclude building nightly and others.
version={stable,beta,nightly}
It would be nice if the whole playground would be encapsulated into a docker image. If that image was published on dockerhub, installation would boild down to a single docker run command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.