Stream: general

Topic: colors-are-hard


Jake Goulding (Jun 26 2018 at 20:30, on Zulip):

@lqd pasted image

Jake Goulding (Jun 26 2018 at 20:30, on Zulip):

Need your thinking brain again

lqd (Jun 26 2018 at 20:31, on Zulip):

this seems familiar, lemme check a couple things; I think it's related to opacity in the button's vicinity

lqd (Jun 26 2018 at 20:32, on Zulip):

to be more precise, that the way I initially did this for the prototype, now makes this opacity bug

Jake Goulding (Jun 26 2018 at 20:35, on Zulip):

Oh, I made this from scratch, no "bug" ;-)

lqd (Jun 26 2018 at 20:35, on Zulip):

@Jake Goulding do you happen to have a URL I could play with in the browser directly (so that I don't have to update my dev environment; it's ok if you don't, it'll just be slower)

lqd (Jun 26 2018 at 20:35, on Zulip):

oh :)

lqd (Jun 26 2018 at 20:36, on Zulip):

is this the "rust blue" btw ?

Jake Goulding (Jun 26 2018 at 20:36, on Zulip):

@lqd http://69e9a319.ngrok.io/

lqd (Jun 26 2018 at 20:36, on Zulip):

awesome thank you

Jake Goulding (Jun 26 2018 at 20:37, on Zulip):

FWIW, I get a phishing warning on that; guess people are misusing ngrok :-(

Jake Goulding (Jun 26 2018 at 20:37, on Zulip):

don't type your password into the playground

lqd (Jun 26 2018 at 20:37, on Zulip):

too late I already input my creditcard to access the 1000 most popular crates

Jake Goulding (Jun 26 2018 at 20:38, on Zulip):

there's an idea. Pay by the crate.

Jake Goulding (Jun 26 2018 at 20:38, on Zulip):

Find open source crates near ANONYMOUS PROXY

lqd (Jun 26 2018 at 20:39, on Zulip):

VPNs hate him

Jake Goulding (Jun 26 2018 at 20:39, on Zulip):

I'm thinking it's be awesome to have an indicator for "this isn't the default" in the menu and on each non-default item. That way you will click it and can figure out why.

Jake Goulding (Jun 26 2018 at 20:40, on Zulip):

so something that could be stylistically reused would be ++

lqd (Jun 26 2018 at 20:40, on Zulip):

good/interesting/tough idea

Jake Goulding (Jun 26 2018 at 20:42, on Zulip):

Naturally. Was poking at https://ux.stackexchange.com/questions/35307/how-to-visually-indicate-a-change-in-setting for ideas

Jake Goulding (Jun 26 2018 at 20:42, on Zulip):

thus how I got to the blue w/outline

lqd (Jun 26 2018 at 20:43, on Zulip):

oh I remember the troubles I was having with this before, doing this outline quickly, in a pseudo element somehow always ended up on top of the ellipsis, even after fighting with z-index and all

Jake Goulding (Jun 26 2018 at 20:44, on Zulip):

ha, I cheated and just duplicated the SVG

Jake Goulding (Jun 26 2018 at 20:45, on Zulip):

which was pretty easy

lqd (Jun 26 2018 at 20:45, on Zulip):

what's the css class you were using in that screenshot btw ?

Jake Goulding (Jun 26 2018 at 20:48, on Zulip):

No CSS; If you select 2015/2018 it switches the SVG to one that had an ellipse

Jake Goulding (Jun 26 2018 at 20:49, on Zulip):

I kind of like the rounded rect

<rect x="1" y="3" width="22" height="18" rx="3" ry="3" fill="#0044FF88" stroke="#0044FFFF" stroke-width="2"></rect>

pasted image

lqd (Jun 26 2018 at 20:50, on Zulip):

this is from the old prototype:

lqd (Jun 26 2018 at 20:51, on Zulip):

pasted image

lqd (Jun 26 2018 at 20:51, on Zulip):

between 0.8 and 1.0 opacity on the parent "header-button__left-icon" + #428bca fill (but no stroke)

Jake Goulding (Jun 26 2018 at 20:52, on Zulip):

well then. great minds

lqd (Jun 26 2018 at 20:53, on Zulip):

in a sense, if it were used to highlight in the popover window that "Edition" has been changed, the Edition label would kind of look like the boolean toggles from the Config popover

Jake Goulding (Jun 26 2018 at 20:55, on Zulip):

true. Maybe just the bold text then...

lqd (Jun 26 2018 at 20:55, on Zulip):

maybe a similar small rounded rect before the Edition label could call back to it, in addition to a note/aside (like the wasm one, maybe blue if you wanted) explaining why it's changed

lqd (Jun 26 2018 at 20:56, on Zulip):

or indeed just bold/blue like the hover on the other popovers' options

Jake Goulding (Jun 26 2018 at 20:58, on Zulip):

I wonder if I should eschew the opacity on the icon CSS and move that to the SVG directly. Otherwise can't really get full control

Jake Goulding (Jun 26 2018 at 20:58, on Zulip):

Since the icons are 50% opacity now

lqd (Jun 26 2018 at 20:59, on Zulip):

you can move it to the svg's root css for sure here yeah, it'll make things easier

Jake Goulding (Jun 26 2018 at 21:00, on Zulip):

pasted image 50% of that color looks meh

Jake Goulding (Jun 26 2018 at 21:00, on Zulip):

also, zooming in does that whole brain trick where it looks yellow in the dots

lqd (Jun 26 2018 at 21:03, on Zulip):

0.8 at least I'd think yeah

lqd (Jun 26 2018 at 21:03, on Zulip):

they do look yellow is this a new illusion :)

lqd (Jun 26 2018 at 21:03, on Zulip):

pasted image

lqd (Jun 26 2018 at 21:06, on Zulip):

(+ we can/should have more padding on the sides, 0.25-0.5 ems I'd guess; 3-4px in non-shep units ;)

lqd (Jun 26 2018 at 21:09, on Zulip):

if we used this rounded-rect as a hook "look at meee" pasted image

Jake Goulding (Jun 26 2018 at 21:14, on Zulip):

You and your padding

Jake Goulding (Jun 26 2018 at 21:14, on Zulip):

it's the same padding as the config menu

Jake Goulding (Jun 26 2018 at 21:15, on Zulip):

Using the rect before the label means the label will bounce as people change options

Jake Goulding (Jun 26 2018 at 21:16, on Zulip):

could go wild... lemme try a jsbin

lqd (Jun 26 2018 at 21:17, on Zulip):

true; could go in the margin of after the label ;)

lqd (Jun 26 2018 at 21:17, on Zulip):

(to be clearer I meant padding inside the rounded rect; just a bit more whitespace/bluespace around the ellipsis that's all, the rest of the button is as fine as last time I bothered you about it :)

Jake Goulding (Jun 26 2018 at 21:20, on Zulip):

Oh, padding of the button. Could be a wee bit tricky cause the box is butting right up against the icon size at the moment

Jake Goulding (Jun 26 2018 at 21:20, on Zulip):

but probably worth tweaking

lqd (Jun 26 2018 at 21:24, on Zulip):

at least the bouncing of the Edition label could be animated into a slide, or not be that bad as the popover would still be static — but yeah, true, things would probably still bounce vertically as the aside is shown/hidden depending on the option

Jake Goulding (Jun 26 2018 at 21:35, on Zulip):

@lqd WDYT about a sliding background color? https://jsbin.com/ceyedapohu/2/edit?html,css,js,console,output

Jake Goulding (Jun 26 2018 at 21:38, on Zulip):

is as fine as last time

subtle :wink:

lqd (Jun 26 2018 at 21:39, on Zulip):

eg which would look this maybe ? pasted image

Jake Goulding (Jun 26 2018 at 21:40, on Zulip):

Yeah. Course the problem then would be switching from dark text to light text

lqd (Jun 26 2018 at 21:40, on Zulip):

indeed

Jake Goulding (Jun 26 2018 at 21:41, on Zulip):

maybe just a line on the bottom 10% of the label?

Jake Goulding (Jun 26 2018 at 21:41, on Zulip):

seems... unlikely to be good

Jake Goulding (Jun 26 2018 at 21:42, on Zulip):

https://css-tricks.com/reverse-text-color-mix-blend-mode/

lqd (Jun 26 2018 at 21:43, on Zulip):

pasted image

Jake Goulding (Jun 26 2018 at 21:45, on Zulip):

not as bad as I expected. WDYT?

lqd (Jun 26 2018 at 21:49, on Zulip):

something feels, maybe a bit inconsistent with what we have so far ? at first I was apprehensive of the wide underlined empty space but now that I look at it, it's not as bad as I thought, like you said, maybe could work

Jake Goulding (Jun 26 2018 at 21:50, on Zulip):

Yeah, there's other things that have "defaults" and we don't care about those.

lqd (Jun 26 2018 at 21:50, on Zulip):

I'm trying to see how a kind of icon to the right of the label would look

lqd (Jun 26 2018 at 21:52, on Zulip):

like pasted image

Jake Goulding (Jun 26 2018 at 21:54, on Zulip):

not bad. My only concern is "running out of space"

Jake Goulding (Jun 26 2018 at 21:54, on Zulip):

wonder about as part of the value, not label

lqd (Jun 26 2018 at 21:57, on Zulip):

in a sense we already have "default", and in the value we'd have to use text or suffer styling issues (hello firefox), so à la "2018 *" "2018 [not default]" ?

lqd (Jun 26 2018 at 21:58, on Zulip):

(note for other people, in the little chevron next to a stream, you can open a menu, to mute it ;)

Jake Goulding (Jun 26 2018 at 22:00, on Zulip):

Oh, I meant pasted image

lqd (Jun 26 2018 at 22:02, on Zulip):

oh ok next to the value interesting pasted image

lqd (Jun 26 2018 at 22:03, on Zulip):

makes sense as we're calling attention to the value, could be nice!

Jake Goulding (Jun 26 2018 at 22:03, on Zulip):

either on the left or right of the value, dunno.

lqd (Jun 26 2018 at 22:03, on Zulip):

let's see

Jake Goulding (Jun 26 2018 at 22:03, on Zulip):

although it would move around the value a bit, which could be annoying for the on/off selector

Jake Goulding (Jun 26 2018 at 22:04, on Zulip):

the dropdown is probably fine for the little movement, since the whole dropdown appears/disappears

lqd (Jun 26 2018 at 22:05, on Zulip):

pasted image it could be taking a %age of the label's width, and the value wouldn't move I don't think ?

lqd (Jun 26 2018 at 22:06, on Zulip):

or to the left of the note

lqd (Jun 26 2018 at 22:09, on Zulip):

and/or a colored left edge (but a bit more rounded than this screenshot, à la slack) pasted image

Jake Goulding (Jun 27 2018 at 22:52, on Zulip):

@lqd OK, not an illusion pasted image

Not sure where it's coming from

lqd (Jun 27 2018 at 22:55, on Zulip):

so we're _not_ crazy which seems like good news

lqd (Jun 27 2018 at 22:58, on Zulip):

I can help locate it while triaging NLL bootstrap if you got a link btw

Jake Goulding (Jun 27 2018 at 23:28, on Zulip):

haha, it's all me being dumb

I added a yellow fill, explicitly.

Jake Goulding (Jun 27 2018 at 23:28, on Zulip):

(disappear)

lqd (Jun 27 2018 at 23:29, on Zulip):

insert grandpa simpson old man yells at cloud meme but the old man is now me and the cloud has a kirby shape :p (a kirby shep)

Jake Goulding (Jun 27 2018 at 23:32, on Zulip):

But if you care to follow along at home... http://97623c3a.ngrok.io/

lqd (Jun 27 2018 at 23:34, on Zulip):

@Jake Goulding thanks :)

lqd (Jun 27 2018 at 23:34, on Zulip):

but also: pasted image

Jake Goulding (Jun 27 2018 at 23:37, on Zulip):

Hmm. a @lqd self portrait

lqd (Jun 27 2018 at 23:42, on Zulip):

advanced options looking good

lqd (Jun 27 2018 at 23:42, on Zulip):

nicely done

lqd (Jun 27 2018 at 23:43, on Zulip):

also makes me notice how Open Sans semibold 'E' is way shorter than the regular E

Jake Goulding (Jun 27 2018 at 23:50, on Zulip):

I'm thinking that the "non-default" UI is good enough for a first cut

Jake Goulding (Jun 27 2018 at 23:50, on Zulip):

@lqd you gonna make me change the fonts?

lqd (Jun 27 2018 at 23:51, on Zulip):

old man yells at font

Jake Goulding (Jun 27 2018 at 23:51, on Zulip):

where do you even notice that?

lqd (Jun 27 2018 at 23:52, on Zulip):

pasted image vs pasted image

Jake Goulding (Jun 27 2018 at 23:53, on Zulip):

For some value of "way"

lqd (Jun 27 2018 at 23:53, on Zulip):

"non-default UI" meaning this advanced options popover ?

lqd (Jun 27 2018 at 23:54, on Zulip):

(with only the Edition selector for now, I assume as well ?)

lqd (Jun 27 2018 at 23:57, on Zulip):

if so, agreed :100: :ship: it, :sheep: it, :shep: it

Jake Goulding (Jun 28 2018 at 03:31, on Zulip):

"non-default UI" -> The UI aspects that indicate "hey, something is set in this menu". The colored icon and the bolded label.

Yeah, the backtrace and rustflags are hanging out from your original code. Leaving them in that sidebranch until I implement them.

Can't ship it quite yet. Got to figure out the URL story.

Jake Goulding (Jun 29 2018 at 15:58, on Zulip):

@lqd do you think it's silly to have {default,2015,2018}?

Jake Goulding (Jun 29 2018 at 15:58, on Zulip):

Should I just have 2015/2018

lqd (Jun 29 2018 at 16:00, on Zulip):

I guess this is going to matter more during the transition period ?

lqd (Jun 29 2018 at 16:00, on Zulip):

that is, until the switch, we'll always be "default = 2015", and then "default = 2018"

lqd (Jun 29 2018 at 16:01, on Zulip):

(and the little "blue indicator that something is up to no good" will switch its active/inactive rules as well)

lqd (Jun 29 2018 at 16:02, on Zulip):

it does seem simpler to just have 2015/2018, and we handle the default when the transition period is over ?

Jake Goulding (Jun 29 2018 at 16:04, on Zulip):

Yeah, and just have a commit at that point. Means that the playground will have a different default than cargo.

lqd (Jun 29 2018 at 16:07, on Zulip):

why ? I'm not that familiar with the plans around the default edition value in cargo :/

Jake Goulding (Jun 29 2018 at 16:08, on Zulip):

Well, it would have a different default for a period of time until I updated the playground

lqd (Jun 29 2018 at 16:09, on Zulip):

yeah that for sure

Jake Goulding (Jun 29 2018 at 16:09, on Zulip):

But AFAIK, cargo new will set edition = "2018" at some point

lqd (Jun 29 2018 at 16:10, on Zulip):

could we ask cargo what its default edition is, the same way we ask its version?

lqd (Jun 29 2018 at 16:10, on Zulip):

(without hacking a cargo new && grep 2018 )

Jake Goulding (Jun 29 2018 at 16:23, on Zulip):

Well, we ask the version by running rustc --version and grepping the output ;-)

lqd (Jun 29 2018 at 16:23, on Zulip):

:)

lqd (Jun 29 2018 at 16:25, on Zulip):

we could have a different default for a short while until the playground is updated; if it's a different default for months then ok maybe it's worth thinking about it; but if it's days, it doesn't seem like a crazy situation, not mentioning people will have the same issue locally until they rustup to stable ¯\_(ツ)_/¯

Jake Goulding (Jun 29 2018 at 16:34, on Zulip):

That's a good analogy.

Jake Goulding (Jun 29 2018 at 16:57, on Zulip):

@lqd of course, now I have to decide if I leave it a dropdown or make it the fancy 2-value choice

lqd (Jun 29 2018 at 16:58, on Zulip):

the 2-value choice seemed consistent with the rest WDYT ?

Jake Goulding (Jun 29 2018 at 17:01, on Zulip):

yeah, but then I have to change the code in 3 years :-)

lqd (Jun 29 2018 at 17:02, on Zulip):

haha true

Jake Goulding (Jun 29 2018 at 17:08, on Zulip):

Ok, want to play with the feel any? https://c3ac9cf9.ngrok.io

lqd (Jun 29 2018 at 17:10, on Zulip):

oh yeah a side effect is now that switching to stable can change the edition

lqd (Jun 29 2018 at 17:10, on Zulip):

which makes sense ofc

lqd (Jun 29 2018 at 17:11, on Zulip):

did you want to keep your bold+color style on the Edition label when it is not the default (now that it's not using a dropdown anymore) ?

Jake Goulding (Jun 29 2018 at 17:25, on Zulip):

oh, yeah. that's what i get for being lazy the first time around

Jake Goulding (Jun 29 2018 at 17:31, on Zulip):

OK, fixed

lqd (Jun 29 2018 at 17:37, on Zulip):

looks good to me :) (I don't think we'll be able to do anything about the Advanced dialogs popover moving slightly to the right when the channel switches from Stable to the longer Nightly)

lqd (Jun 29 2018 at 17:39, on Zulip):

@Jake Goulding https://c3ac9cf9.ngrok.io/?version=nightly&mode=debug&edition=2015 switch to 2018 and the Edition label won't have its styling applied ? but it definitely works in other cases I've tried

Jake Goulding (Jun 29 2018 at 17:41, on Zulip):

uhhh. I swear I saw it do that for a second, but now I cannot repro...

lqd (Jul 02 2018 at 20:57, on Zulip):

@Jake Goulding you already shipped it, nice :D

Jake Goulding (Jul 03 2018 at 17:01, on Zulip):

@lqd Yeah, I :heart: those subtle releases. You are the first to mention it in ~ 4 days

lqd (Jul 03 2018 at 17:02, on Zulip):

all the share urls changed it was hard to miss for me even without visiting the playground :)

lqd (Jul 03 2018 at 17:03, on Zulip):

in any case: congrats for a smooth launch :tada: + it's very cool

Jake Goulding (Jul 03 2018 at 17:04, on Zulip):

Yeah, I kind of want to add my own "tracking pixel" to the share links because it was fun watching those show up

lqd (Jul 03 2018 at 17:07, on Zulip):

you mean, in a different way than just checking the logs for "edition="?

Jake Goulding (Jul 03 2018 at 17:09, on Zulip):

I mean so I can do it for any given release. moral equivalent of &playground-release=SHA

Jake Goulding (Jul 03 2018 at 17:09, on Zulip):

which is silly, of course

lqd (Jul 03 2018 at 17:10, on Zulip):

oh, yeah understood

lqd (Jul 03 2018 at 17:10, on Zulip):

we could handle the shortlink ourselves and save the playground rev at the same time as the code :3

Jake Goulding (Jul 03 2018 at 17:13, on Zulip):

not sure what you mean by handle it ourselves — how are we not already doing so?

lqd (Jul 03 2018 at 17:14, on Zulip):

we do, but I meant that we do not store additional information on them

lqd (Jul 03 2018 at 17:15, on Zulip):

which you would have to do if one did shortlinks à la twitter, say

lqd (Jul 03 2018 at 17:15, on Zulip):

we could add it to the gist for sure tho

lqd (Jul 03 2018 at 17:17, on Zulip):

and in a number of ways :) in the "Code shared from the Rust Playground" comment, in the filename, in another file in the gist (like the idea of saving the cargo.toml there) etc

Jake Goulding (Jul 03 2018 at 17:17, on Zulip):

you were reading in Discord, eh? ;-)

lqd (Jul 03 2018 at 17:17, on Zulip):

sometimes :3

lqd (Jul 03 2018 at 17:18, on Zulip):

in a more traditional webapp you could store it in the database and be done with it; here it would be harder for us to store anything on GH which we would want to query later I presume

Jake Goulding (Jul 03 2018 at 17:19, on Zulip):

not harder harder, just have to be more cautious. It's a write-once DB ;-)

lqd (Jul 03 2018 at 17:20, on Zulip):

storing the rev in the "code shared" seems easy to do; and I wonder if we can get gists in bulk from GH, to do the stat you want

Jake Goulding (Jul 03 2018 at 17:22, on Zulip):

The thing about the rev is that really there should only ever be a small number. The caching should expire after 24h, so it's up to how many releases are pushed in that window.

Jake Goulding (Jul 15 2018 at 18:14, on Zulip):

@lqd do you recall where you got the SVGs for the playground? I'm looking to see if there's a clipboard one

lqd (Jul 15 2018 at 19:05, on Zulip):

@Jake Goulding yeah I think from the Material Design site https://material.io/tools/icons/?style=baseline (btw https://play.rust-lang.org/ 502s :/)

simulacrum (Jul 15 2018 at 19:11, on Zulip):

Not 502ing for me

simulacrum (Jul 15 2018 at 19:11, on Zulip):

oh, wait, just browser cache

Jake Goulding (Jul 15 2018 at 19:18, on Zulip):

ah jeez

Jake Goulding (Jul 15 2018 at 19:18, on Zulip):

for about an hour

Jake Goulding (Jul 15 2018 at 19:22, on Zulip):

Should be back; checking the cause

Jake Goulding (Jul 15 2018 at 19:25, on Zulip):
Jul 15 18:04:29 ip-172-30-0-53 kernel: [1312205.811843] nginx invoked oom-killer: gfp_mask=0x24201ca, order=0, oom_score_adj=0
Jul 15 18:04:29 ip-172-30-0-53 kernel: [1312205.812250] Out of memory: Kill process 5008 (ui) score 865 or sacrifice child
Jul 15 18:04:29 ip-172-30-0-53 kernel: [1312205.822342] Killed process 13376 (docker) total-vm:174904kB, anon-rss:6228kB, file-rss:552kB
Jake Goulding (Jul 15 2018 at 19:25, on Zulip):

hmmmmm

Jake Goulding (Jul 15 2018 at 19:26, on Zulip):

Also, doh:

Jul 15 19:23:06 ip-172-30-0-53 CRON[15702]: (CRON) info (No MTA installed, discarding output)
Jake Goulding (Jul 15 2018 at 19:31, on Zulip):
[ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[  379]     0   379    12491     3683      29       3      420             0 systemd-journal
[  432]     0   432    25742       73      17       3       28             0 lvmetad
[  464]     0   464    10649      362      23       3       11         -1000 systemd-udevd
[  588]   100   588    25081      318      19       3       44             0 systemd-timesyn
[  956]     0   956     4030      239      13       3      152             0 dhclient
[ 1160]     0  1160    68622      824      36       3      205             0 accounts-daemon
[ 1161]     0  1161   192433    14852     116       5     2938          -500 dockerd
[ 1164]     0  1164     7154      132      18       3        1             0 systemd-logind
[ 1165]   104  1165    65157      878      29       4       74             0 rsyslogd
[ 1179]     0  1179     1099      302       8       4        8             0 acpid
[ 1182]     0  1182     6511      341      17       3        8             0 atd
[ 1186]     0  1186     6932      440      19       3       12             0 cron
[ 1190]   107  1190    10754      324      26       3        0          -900 dbus-daemon
[ 1195]     0  1195     1305       14       8       3       15             0 iscsid
[ 1196]     0  1196     1430      877       9       3        0           -17 iscsid
[ 1227]     0  1227    16377      517      36       3        5         -1000 sshd
[ 1229]     0  1229    76936     2885      37       5      328          -900 snapd
[ 1231]     0  1231   208104      988      35       4        0             0 lxcfs
[ 1251]     0  1251     3343      209      11       3       10             0 mdadm
[ 1255]     0  1255    31464      534      50       3       88             0 nginx
[ 1266]     0  1266    69277      259      38       3        6             0 polkitd
[ 1332]     0  1332     4868      426      14       3        0             0 irqbalance
[ 1344]     0  1344     3664      349      12       3       25             0 agetty
[ 1354]     0  1354     3618      366      12       3       36             0 agetty
[ 1369]     0  1369   241834     5665      65       6      809          -500 docker-containe
[ 5008]     0  5008  2207936  1795292    4034      12   256849             0 ui
[13671]    33 13671    31612      802      48       3       72             0 nginx
[13672]    33 13672    31612      883      48       3       72             0 nginx
[13457]     0 13457     1833      130       8       5        0          -999 docker-containe
[13459]     0 13459     1897      128       8       5        0          -999 docker-containe
[13460]     0 13460     1833      122       8       5        0          -999 docker-containe
[13478]     0 13478    48656     1753      25       5        0          -999 docker-runc
[13482]     0 13482    32624     1307      25       5        0          -999 docker-runc
[13492]     0 13492    32272     1306      24       5        0          -999 docker-runc
[13518]     0 13518    11462     1052      19       5        0             0 runc:[2:INIT]
[13548]     0 13548    11462     1066      20       5        0             0 runc:[2:INIT]
[13560]     0 13560    33912     4907      59       6        0          -999 exe
[13563]     0 13563    11462     1056      20       6        0             0 runc:[2:INIT]
[13567]     0 13567    33912     4910      60       5        0          -999 exe
[13568]     0 13568    34264     5038      59       5        0          -999 exe
[13582]     0 13582    24130     2193      32       3        0          -500 exe
[13583]     0 13583    24130     2622      33       3        0          -500 exe
[13584]     0 13584    24130     2340      31       4        0          -500 exe
[13609]     0 13609    10649      559      21       3       11             0 systemd-udevd
[13610]     0 13610    10649      400      21       3       11             0 systemd-udevd
[13611]     0 13611    10649      527      21       3       11             0 systemd-udevd
[13612]     0 13612    10649      369      21       3       11             0 systemd-udevd
[13613]     0 13613    10649      369      21       3       11             0 systemd-udevd
[13614]     0 13614    10649      213      21       3       11             0 systemd-udevd
Jake Goulding (Jul 15 2018 at 19:32, on Zulip):

I wonder if someone tried to do the equivalent of cat /dev/urandom

Jake Goulding (Jul 15 2018 at 20:00, on Zulip):

@lqd do you think you could help me identify which icons are which?

Jake Goulding (Jul 15 2018 at 20:04, on Zulip):

And did we make changes to the originals?

lqd (Jul 15 2018 at 20:07, on Zulip):

Tonight it’s gonna be hard but you can ask questions and I’ll answer in the morning — I made no changes, and they should be « cog » ,« chevron » or similar, « help », I think. You can search on this site btw, it’s helpful sometimes when there are many icons

Jake Goulding (Jul 15 2018 at 20:08, on Zulip):

No worries on time. I was using the browser's control-f find, is that what you mean?

Jake Goulding (Jul 15 2018 at 20:08, on Zulip):

The icons I'm downloading have like all 5 variants in them, which is odd

lqd (Jul 15 2018 at 20:56, on Zulip):

IIRC there is a search field on the left — but this all changed recently after we updated the playground so I might not be up to speed

lqd (Jul 15 2018 at 21:14, on Zulip):

@Jake Goulding from right to left "help_outline", "keyboard_arrow_down", "settings", "more_horiz" I think and finally "play_arrow"

Jake Goulding (Jul 15 2018 at 21:19, on Zulip):

Neat, thank you!

Jake Goulding (Jul 15 2018 at 21:20, on Zulip):

Working on: copy.gif

RalfJ (Aug 02 2018 at 15:14, on Zulip):

Btw I love that copy button so much, thanks :D <3

oli (Aug 02 2018 at 15:15, on Zulip):

Oh yea, recent playpen upgrades are totally rad. I already used a bunch of them

lqd (Aug 02 2018 at 16:03, on Zulip):

a couple "title" tooltips would be super nice (sorry Jake I'm abroad, I can do a PR in a couple weeks though)

Jake Goulding (Aug 03 2018 at 19:11, on Zulip):

a couple "title" tooltips would be super nice

@lqd On which?

lqd (Aug 03 2018 at 19:13, on Zulip):

on the icon buttons copying the urls

lqd (Aug 03 2018 at 19:13, on Zulip):

as feedforward to know what clicking them will do

Jake Goulding (Aug 08 2018 at 23:47, on Zulip):

Alright, what are good one-word verbs for "produce {LLVM IR, MIR, WebAssembly} output"? /cc @lqd

Jake Goulding (Aug 08 2018 at 23:47, on Zulip):

For example, making assembly is "assemble"

Jake Goulding (Aug 08 2018 at 23:48, on Zulip):

And there's Build / Run / Test already

Keith Yeung (Aug 09 2018 at 00:06, on Zulip):

if you ask @lqd they'll reply you with :frog:

Charles Lew (Aug 09 2018 at 05:22, on Zulip):

"compile"? @Jake Goulding

RalfJ (Aug 09 2018 at 07:45, on Zulip):

@Jake Goulding TBH I think this is also "Build"

RalfJ (Aug 09 2018 at 07:45, on Zulip):

which is "produce {binary, assembly, LLVM, MIR, wasm} output"

lqd (Aug 09 2018 at 08:07, on Zulip):

I'm used to "emit" but that might be because of the flag

lqd (Aug 09 2018 at 08:11, on Zulip):

"Build" and "compile to" also make a lot of sense indeed, especially sInce in other languages where they probably wouldn't say "emit"

pnkfelix (Aug 09 2018 at 08:11, on Zulip):

For MIR, you could use “Launch” ;)

lqd (Aug 09 2018 at 08:12, on Zulip):

:rocket:

Jake Goulding (Aug 09 2018 at 12:58, on Zulip):

@RalfJ but if the button changes to "build" for 3/4 different actions, it's not super useful to tell what's going on

Jake Goulding (Aug 09 2018 at 13:05, on Zulip):

@pnkfelix I do like the phrasing, but would worry people would think it would run the MIR e.g. miri

kennytm (Aug 09 2018 at 13:09, on Zulip):

For example, making assembly is "assemble"

"Assemble" is ASM → Binary, but playground is doing Rust → ASM. I think "Compile" is more appriopriate.

RalfJ (Aug 09 2018 at 13:18, on Zulip):

@Jake Goulding true. so were you asking for 4 different verbs?

lqd (Aug 09 2018 at 13:18, on Zulip):

if we're talking about this for the "redo what you just did" use case, at the time I was thinking the button label would just have what it emits: 1) you choose the MIR option in the popover, 2) then the main button label switches to MIR

pnkfelix (Aug 09 2018 at 13:19, on Zulip):

@pnkfelix I do like the phrasing, but would worry people would think it would run the MIR e.g. miri

well you could go super obtuse and use the verb "orbit" for generating MIR

lqd (Aug 09 2018 at 13:21, on Zulip):

(because that is a rather "advanced" playground use case where users would know that it's about the produced artefacts, and where the verb didn't seem 100% necessary; but if we absolutely need one, something like "emit MIR" also has the advantage of being short)

lqd (Aug 09 2018 at 13:23, on Zulip):

if "Build" is preferred for the artefacts actions, I guess building libs can also switch to "Check" to free up "Build"

kennytm (Aug 09 2018 at 14:05, on Zulip):

@lqd if the analogue is cargo check vs cargo build, note that cargo check won't invoke LLVM so e.g. cargo check won't catch errors like this:

#![feature(asm)]
#![crate_type = "lib"]
pub unsafe fn foo() {
    asm!("asdadasdasdas");
}
lqd (Aug 09 2018 at 14:06, on Zulip):

it could be just labeling it doesn't have to be "cargo check"

lqd (Aug 09 2018 at 14:06, on Zulip):

this is just the playground UI rather than its backend IIUC

kennytm (Aug 09 2018 at 14:08, on Zulip):

i understand, a concern would be check and cargo check would be subtly different (the playground check being bit stricter)

lqd (Aug 09 2018 at 14:25, on Zulip):

understood, diverging the meaning of Check would be a concern indeed. “emit” for the MIR/etc actions might then be a good candidate. Or “show MIR” or “MIR”

lqd (Aug 09 2018 at 14:26, on Zulip):

(I’m going through hell typing on the Zulip mobile app :) randomly capitalizing or switching case)

kennytm (Aug 09 2018 at 14:27, on Zulip):

Or “show MIR” or “MIR”

agreed. if we don't need a single verb for all actions, explicitly saying ASM / LLVM / MIR / WASM feels better

Jake Goulding (Aug 09 2018 at 15:06, on Zulip):

And I like "show"

Jake Goulding (Aug 09 2018 at 15:07, on Zulip):

Yeah, it doesn't have to be one word, but it has to be short

pasted image

Jake Goulding (Aug 09 2018 at 15:08, on Zulip):

I'd probably avoid "check" because some people have requested an actual check (although I'm not clear on the benefit yet)

Jake Goulding (Aug 09 2018 at 15:09, on Zulip):

Semirelated: it's annoying that cargo build doesn't generate artifacts that cargo check can use

simulacrum (Aug 09 2018 at 15:10, on Zulip):

We totally could, too. Maybe something to bring up.

kennytm (Aug 09 2018 at 15:13, on Zulip):

https://github.com/rust-lang/cargo/issues/3501 ?

Jake Goulding (Aug 09 2018 at 15:34, on Zulip):

And if someone adds the "Run WASM", that's a good distinction

lqd (Aug 09 2018 at 16:05, on Zulip):

“Show” has a bit of precedent in that the existing help text is already “build and show MIR”

Last update: Nov 20 2019 at 11:25UTC