Rust Playground
play.rust-lang.org
play.rust-lang.org
What are the limitations of the online environment vs the full language? (I presume a lot of low level stuff is sand-boxed or mocked) What features aren't available?
I haven't looked in detail but afaik it runs genuine rust binaries in a sandbox. You can investigate at https://github.com/rust-lang/rust-playpen / https://github.com/thestinger/playpen if you feel like it. :P
%"2.core::fmt::rt::v1::Position"
%"2.core::option::Option<&'static [core::fmt::rt::v1::Argument]>"
makes it easy to understand.I'm thinking about trying to contribute a localStorage-based history mechanism. Does anyone else think it'd be a good addition? And if so, any suggestions regarding the behavior?
on pageload: var t = localStorage.getItem("textbackup"); if (t){ __editor.setValue(t); console.log('restoring from backup'); } else { __editor.setValue(document.getElementById('basic_intro').innerHTML); console.log('putting in the intro'); }
and on any action: var text = __editor.getValue(); localStorage.setItem('textbackup', text);
It's the approach I've taken in my version a playground for a different program. http://xqt2.com/mjslab/mjslab.html
Specifically, if you press tab (insert 4 spaces) and then the left arrow, it actually jumps left 4 spaces instead of 1.
Unfortunately it doesn't fully behave like tabs because you can still click inside the indentation which makes selection and cursor positioning harder.
I don't know much about assembly, but in release mode it looks like you wind up with just some setup code (starting from the label "_ZN4main20h79637ebf645455fbeaaE") which is probably doing generic process-startup stuff, and thenthe actual body of main (starting from the label "main"). All the directives starting with a "." are meta-data directives, they're not actually instructions the CPU executes.
It'd probably be feasible, but a royal pain to setup.
The website will remember the last thing you compiled and ran on it, and display that again when you come back. Perhaps you're looking at a different code snippet.
i.e.: sometimes a title is really wrong and a comment about it will get a bunch of upvotes, and then when the title is corrected the comment will actually get voted to the bottom because its no longer relevant or useful to the discussion.
A complaint that someone reposted "your" link usually is not.