Skip to content

Commit bb7e7d0

Browse files
committed
This weeks minutes
1 parent 95c1e1e commit bb7e7d0

File tree

1 file changed

+301
-0
lines changed

1 file changed

+301
-0
lines changed

minutes/meeting notes 2017-06-19.md

Lines changed: 301 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,301 @@
1+
# June 19th 2017
2+
3+
Triage week, irc meeting in #rust-dev-tools
4+
5+
## Notes
6+
7+
### Triage
8+
9+
* https://github.com/rust-lang/rust/issues/42667
10+
11+
We decided that libsyntax should not be included with the rust-src component.
12+
We'd be happy to create a new component rust-src-internal which includes the
13+
compiler source, but it is not a priority. The reason for multiple components is
14+
size.
15+
16+
There was some discussion of the role of the source component: whether users
17+
should expect to be able to use it to rebuild the distro from source, or whether
18+
it is there purely to support tools (Racer, RLS, IDEs).
19+
20+
21+
* https://github.com/rust-lang/rust/issues/42617
22+
23+
After some time, we did not reach a conclusion. We agreed that *if* we support
24+
doc comments on statements (and we acknowledge that removing the feature would
25+
be effort, but not impossible) then the current situation with tests is bad. We
26+
would prefer to run tests. If that is not possible, we should lint against them.
27+
Next step is to decide if we want such doc comments at all.
28+
29+
I think it is interesting to consider the role of doc comments - are they purely
30+
input for Rustdoc? Or are they a canonical form in their own right which can be
31+
interpreted by Rustdoc or other tools.
32+
33+
* https://github.com/rust-lang/rfcs/pull/1946
34+
35+
Ready for FCP \o/
36+
37+
38+
### Tools check-in
39+
40+
* Rustfmt using RFC style and libsyntax
41+
* RLS supports formatting
42+
* Rustup added support for version files
43+
* teddriggs has been doing lots of good stuff on Racer
44+
* New rustdoc is coming along - something to show soon
45+
* Clippy moved to linting the markdown of doc comments with pulldown-cmark
46+
47+
48+
## IRC log
49+
50+
```
51+
8:00 AM <•nrc> this week is a triage week in irc
52+
8:00 AM <•nrc> https://public.etherpad-mozilla.org/p/rust-dev-tools
53+
8:01 AM <•nrc> There are no nominated issues this week
54+
8:01 AM <•nrc> I'm just having a quick look through all the tagged issues: https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AT-dev-tools
55+
8:01 AM <mw> o/
56+
8:02 AM <•nrc> https://github.com/rust-lang/rust/issues/42667
57+
8:02 AM <misdreavus> o/
58+
8:03 AM <•nrc> I would say the source bundle should not include compiler sources such as libsyntax because the audience is so small
59+
8:03 AM <jntrnr> looks like by design?
60+
8:04 AM <jwilm> Agree that libsyntax shouldn't be included
61+
8:04 AM <japaric> is there a tool that needs libsyntax *source*?
62+
8:04 AM <killercup> hm, i'd have guessed its the rustc source package
63+
8:04 AM <•nrc> japaric I don't think so
64+
8:04 AM <killercup> otherwise it should be rust-std-soruce or something like that
65+
8:04 AM <misdreavus> what's the purpose of the rust-src package, again?
66+
8:04 AM <•nrc> I think it is only useful for rustc devs, and they work on the source code anyway
67+
8:05 AM <•nrc> misdreavus: for Racer, basically
68+
8:05 AM <jwilm> If it ever became a need, another component could maybe be added like rust-src-internals
69+
8:05 AM <•nrc> aiui
70+
8:05 AM <oli_obk> misdreavus: racer being able to generate hints and xargo being able to generate libstd
71+
8:05 AM <misdreavus> so mainly for libstd and its deps, then
72+
8:05 AM <misdreavus> at least, that was its intent
73+
8:05 AM <jwilm> misdreavus: previously, std completions from racer required manually downloading and installing rust src package
74+
8:06 AM <misdreavus> i tried using racer in those days ._.
75+
8:06 AM <•nrc> brson: should we close that issue?
76+
8:07 AM <brson> if you think it's wontfix sure
77+
8:07 AM <brson> i'm less certain
78+
8:07 AM <brson> people do link against the rustc sources
79+
8:07 AM <brson> this person did
80+
8:08 AM <•nrc> brson: do you know why?
81+
8:08 AM <brson> no
82+
8:08 AM <brson> i might say that if we are distributing a lib in the rustlib dir then it should hvae source
83+
8:09 AM <•nrc> I'd like to understand the use case better - why not link the libs? Or if they *need* source, why not `git pull` it?
84+
8:09 AM <brson> i mean, personally, i was pretty happy that it was literally the entire rust repo in the source package and could be used to build rust...
85+
8:10 AM <oli_obk> nrc: because it's hard to get the correct commit maybe
86+
8:10 AM <•nrc> I guess there are two very different roles for the source package
87+
8:10 AM <mw> what would be the downside of providing all the source?
88+
8:10 AM <•nrc> oli_obk: yes. I want to know why that is important for someone
89+
8:10 AM <•nrc> mw: size - it made a big difference
90+
8:10 AM <oli_obk> nrc: code completion while building stuff depending on rustc internals
91+
8:11 AM <•nrc> 36MB vs 1.3MB - https://github.com/rust-lang/rust/pull/41546
92+
8:11 AM <mw> nrc: that *is* a big difference
93+
8:11 AM <oli_obk> what about the `rust-src-internals` idea? Opt-in for everyone who needs it
94+
8:11 AM <jntrnr> at that new size, shouldn't we just pull it in always?
95+
8:12 AM <•nrc> jntrnr: pull what in?
96+
8:12 AM <•nrc> with what?
97+
8:12 AM <mw> rust's source is 247MB uncompressed? that seems much
98+
8:12 AM <jntrnr> rust-src (isn't that what we were talking about?)
99+
8:12 AM <misdreavus> i.e. make rust-src a default component in rustup?
100+
8:13 AM <jntrnr> possibly, yeah
101+
8:13 AM <•nrc> ah, right
102+
8:13 AM <jntrnr> the other idea might be also to work with it in the compressed version rather than requiring it to be decompressed
103+
8:13 AM <•nrc> I think that a separate issue
104+
8:13 AM <jntrnr> it is
105+
8:13 AM <jntrnr> I'm giving two points :)
106+
8:13 AM <•nrc> (but agree we might want to)
107+
8:14 AM <•nrc> mw: I assume that includes LLVM maybe?
108+
8:14 AM <mw> so, from what I can see, rust's source is "only" 40 mb uncompressed
109+
8:14 AM <•nrc> agree it seems pretty big
110+
8:14 AM <mw> yes, llvm accounts for the rest
111+
8:14 AM <•nrc> which if the intention is that we want to be able to build from source, then we need to include
112+
8:14 AM <•nrc> but if we want to enable code completion etc., we don't
113+
8:15 AM <mw> compressed w/o llvm it's 13 MB
114+
8:15 AM <mw> tar.gz
115+
8:15 AM <•nrc> there was some talk of making rustc builds work with a compiled llvm which would spare us distributing that with the source?
116+
8:15 AM <mw> which is still a lot more than 1.3 MB
117+
8:16 AM <•nrc> so, I think if we want to distribute compiler source it should be an additional component
118+
8:16 AM <•nrc> brson: do you agree ^?
119+
8:16 AM <mw> sgtm
120+
8:17 AM <brson> sure
121+
8:17 AM <sfackler> you could leave the source zipped rather than tarballed and read directly out of it - that's what Java tooling tends to do
122+
8:17 AM <sfackler> since .zip gives you access to individual files
123+
8:19 AM <•nrc> I would be more concerned about the download size than the size on disk
124+
8:19 AM <killercup> sfackler: i' pretty sure i've done that with tgz as well, tar tz or something
125+
8:19 AM <sfackler> tar doesn't have a file index so you'd need to build one up in memory
126+
8:20 AM <•nrc> as for whether we *should* offer rust-src-internals - I think we should, but I wouldn't be in a hurry to implement it, so p-low?
127+
8:20 AM <•nrc> brson, acrichto ^
128+
8:21 AM <brson> sgtm
129+
8:21 AM <•nrc> ok
130+
8:21 AM <•nrc> https://github.com/rust-lang/rust/issues/42617 had a bit of discussion
131+
8:22 AM <•nrc> should we (a) ban doc comments on statements
132+
8:22 AM <•nrc> or (b) run doc tests on such comments
133+
8:22 AM <brson> omg
134+
8:22 AM <brson> looks bonkers to me
135+
8:23 AM <killercup> i was pretty surprised that you could add doc comments to those items tbh
136+
8:23 AM <misdreavus> the reasoning to have them in the first place was so that tools like racer could pick up on them
137+
8:23 AM <misdreavus> killercup: same
138+
8:23 AM <•nrc> it seems like a natural (but surprising) extension of allowing attributes on statements
139+
8:24 AM <brson> hm yeah, do these parse as attributes today?
140+
8:24 AM <killercup> nrc: ah, that pov makes sense
141+
8:24 AM <jwilm> Sounds like there's precident for other language tooling supporting it
142+
8:24 AM <oli_obk> My vote is for allowing it but linting doctests, since they make little sense there.
143+
8:25 AM <•nrc> IMO we should not ban - it would be a back incompat change and there should be a higher bar for that than 'this is a bit weird'
144+
8:25 AM <misdreavus> the implementation note is whether these items are even visible at a level where rustdoctest could scan for the doc attributes
145+
8:25 AM <•nrc> re doctests we could: run them, lint against them, ignore them (what we currently do, aiui)
146+
8:26 AM <misdreavus> these doctests are currently ignored, correct
147+
8:26 AM <•nrc> misdreavus: that wouldn't apply to a lint, though, right?
148+
8:26 AM <misdreavus> nrc: yeah, if these were linted then the lint would just work as normal
149+
8:26 AM <•nrc> ping steveklabnik who had opinions on thread
150+
8:26 AM <brson> i think it's very weird to have documentation that is not displayed in the documentation
151+
8:26 AM <killercup> i would keep it, but _also_ run doc tests ideally, because… well, why not?
152+
8:27 AM <oli_obk> brson: it's less documentation and more commenting as I see it
153+
8:27 AM <killercup> oli_obk: think of a doc test like "when we call it like this, this var gets set to 42, and thus the result is bla"
154+
8:27 AM <brson> but these are doc-comments, designed specifically for display in rustdoc
155+
8:27 AM <killercup> (in form of an assert)
156+
8:27 AM <•nrc> brson: I think that depends on what the definition of "the documentation" is - they are disaplyed in some views of the documentation (e.g., in IDEs)
157+
8:27 AM <misdreavus> the major note if we allow and run these tests, they only have access to public items from the crate
158+
8:27 AM <oli_obk> killercup: interesting idea
159+
8:27 AM <misdreavus> just as if it were a doctest on a private item
160+
8:27 AM <jwilm> brson: they may not be displayed today, but it would open the door for some sort of side-by-side commented and code view in rustdoc
161+
8:28 AM <misdreavus> some kind of rustw lens? i like it
162+
8:28 AM <killercup> oli_obk: i was first thinking of it like some form of literate programming
163+
8:28 AM <brson> ok. if this is considered docs then i think rustdoc should test it
164+
8:28 AM <brson> since the purpose of doctesting is to make the docs present working code
165+
8:29 AM <•nrc> sounds like implementation might be tricky though
166+
8:29 AM <misdreavus> ^
167+
8:30 AM <misdreavus> doubly so in rls-rustdoc
168+
8:30 AM <misdreavus> rustc-rustdoc *may* be able to scan for it, if it can see items within function bodies
169+
8:30 AM <•nrc> in particular, what is the env for executing the code?
170+
8:31 AM <misdreavus> the cleaned items probably don't hold them, but that could be changed
171+
8:31 AM <•nrc> should code above the comment be executed first?
172+
8:31 AM <steveklabnik> oh hey sorry why does my friggin' IRC client not ping me
173+
8:31 AM <misdreavus> imo, it's a doctest, it should be run like any other doctest
174+
8:31 AM <misdreavus> i.e. no env but the crate itself
175+
8:31 AM <•nrc> that would be simpler
176+
8:32 AM <steveklabnik> my feeelings are basically "I wish this was never allowed but oh well"
177+
8:32 AM <•nrc> yeah
178+
8:33 AM <brson> it's possible to get rid of this feature without breaking code
179+
8:33 AM <brson> just parse it as a warning forever
180+
8:33 AM <brson> "looks like you wrote a doc comment here"
181+
8:33 AM <•nrc> how about - we should run the tests, but if that is not possible (due to implementation) then we should lint against it
182+
8:34 AM <misdreavus> sgtm
183+
8:34 AM <steveklabnik> that seems reasonable
184+
8:34 AM <killercup> nrc: sgtm
185+
8:34 AM <brson> My preference is to stop parsing these as attributes and turn them into a warning forever.
186+
8:34 AM <•nrc> anyone else agree with brson?
187+
8:34 AM <brson> it seems like a really marginal feature
188+
8:34 AM <brson> why add the complexity
189+
8:34 AM <oli_obk> brson: the complexity is already there
190+
8:34 AM <steveklabnik> brson: i'd love to do that if we thought it was feasable
191+
8:35 AM <brson> oli_obk: but it doesn't work
192+
8:35 AM <brson> it is half-implemented
193+
8:35 AM <oli_obk> brson: only the doc tests
194+
8:35 AM <brson> exactly
195+
8:35 AM <•nrc> I'm on the fence - it seems like a marginal feature, but there is some utility (for IDEs, etc) and precedent from other langs (apparently)
196+
8:35 AM <killercup> i dont hold a strong opinion on this. i wont be sad to see this go either way, and i probably wont ever use it…
197+
8:36 AM <•nrc> and it does just fall out from attributes on statements
198+
8:36 AM <misdreavus> i stated my opinion in-thread - i'm in favor, if racer/rls could pick up on them
199+
8:36 AM <killercup> which other lang actually does this? let gather some facts
200+
8:36 AM <•nrc> from thread: "JS and TypeScript"
201+
8:37 AM <mw> when would this be useful? mostly for very large functions that don't fit on one screen?
202+
8:37 AM — jntrnr perks up at mention of TypeScript
203+
8:37 AM <killercup> nrc: there is no single canonical js api doc renderer, so i'll have a look at tsdoc
204+
8:37 AM <oli_obk> mw: it would be useful for every variable that you put a comment infront normally
205+
8:37 AM <•nrc> mw: yeah, I think so
206+
8:38 AM <mw> oli_obk: but in which cases don't you just see the comment right there?
207+
8:38 AM <killercup> there is no official ts api doc thing? :O
208+
8:38 AM <oli_obk> true...
209+
8:38 AM <•nrc> mw: I imagine more of a use case for nested functions, rather than statements?
210+
8:39 AM <•nrc> I sometimes see large functions with a few nested functions, the uses of the fns are then a long way from the defs
211+
8:39 AM <misdreavus> nrc: i hadn't even considered that :o
212+
8:39 AM <mw> nested functions are not variables, right?
213+
8:39 AM <mw> but closures are...
214+
8:39 AM <•nrc> I'm assuming this applies to nested items as well as statements
215+
8:40 AM <•nrc> this does seem really niche
216+
8:40 AM <•nrc> the argument for seems to me that it is natural and not worth the effort to ban
217+
8:41 AM <misdreavus> documenting nested functions can be fraught if i stick to my "no private items" rule in doctests
218+
8:41 AM <•nrc> like it is a bit weird, but it is does not seem problematic
219+
8:41 AM <misdreavus> the person who posted that issue is in #rust, if we'd like them to weigh in in here
220+
8:41 AM <misdreavus> they asked about it while working on racer
221+
8:42 AM <•nrc> ok, I think we've spent enough time on this for now. Let's continue on thread and re-visit
222+
8:42 AM <misdreavus> (^^)b
223+
8:43 AM <•nrc> I'll write up later
224+
8:43 AM <•nrc> there is only one PR and that is waiting on the author - https://github.com/rust-lang/rust/pull/42219
225+
8:43 AM <•nrc> RFCs: https://github.com/rust-lang/rfcs/pulls?q=is%3Aopen+is%3Apr+label%3AT-dev-tools
226+
8:44 AM → teddriggs joined ([email protected])
227+
8:44 AM <•nrc> 1946 looks ready for FCP
228+
8:44 AM <killercup> finally!
229+
8:44 AM <killercup> :D
230+
8:44 AM <misdreavus> lol
231+
8:45 AM <misdreavus> +1 from me about fcp
232+
8:45 AM <killercup> so, yeah, from my end it's ready. i think i've covered a points made in the comments so far
233+
8:46 AM <killercup> there hasn't been much discussion about the syntax, but i guess that's something we could also revisit later on if there are pressing issues
234+
8:47 AM <•nrc> I thought there had been some? It looks fine to me now
235+
8:47 AM <•nrc> I summoned rfcbot, lets see if it works....
236+
8:47 AM <killercup> nrc: …lately ;)
237+
8:47 AM <•nrc> 1990 - there is an alternative syntax proposed, not much feedback
238+
8:47 AM <misdreavus> i do not appear to be in the rfcbot roster ;_;
239+
8:48 AM <steveklabnik> :(
240+
8:48 AM <•nrc> that may be a doc team issue?
241+
8:49 AM <•nrc> although I should make t-dev-tools-doc exist for rfcbot too
242+
8:49 AM <•nrc> ok, tools check-in
243+
8:49 AM <•nrc> who has news about their tools?
244+
8:50 AM <•nrc> rustfmt moved to the new RFC style and to using libsyntax rather than Syntex
245+
8:50 AM <•nrc> formatting in the RLS is ON
246+
8:50 AM <Manishearth> no news on clippy
247+
8:50 AM <Manishearth> AFAICT clippy is just waiting for the RLS stuff to move forward
248+
8:50 AM <killercup> can i just say, i really enjoy the rfc rustfmt style? big thumbs up on that
249+
8:50 AM <•nrc> and xanewok has been implementing more Cargo stuff (working with binary projects better, etc.)
250+
8:51 AM <•nrc> killercup: thank :-)
251+
8:51 AM <•nrc> s
252+
8:51 AM <brson> rustup has a big new feature https://github.com/rust-lang-nursery/rustup.rs/pull/1172
253+
8:51 AM <brson> a .rust-version file
254+
8:51 AM <brson> looking for feedback
255+
8:51 AM <steveklabnik> i should have some amount of rustdoc demo very soon; i ran into some issues at the end of the last week that meant i didn't ship it yet.
256+
8:51 AM <steveklabnik> i also don't want to get TOO hyped about it, it's just barely a skeleton
257+
8:51 AM <killercup> oh, fyi, clippy moved to linting the markdown of doc comments with pulldown-cmark this week
258+
8:52 AM <steveklabnik> brson: i will check it out
259+
8:52 AM <Manishearth> oh, yeah, that
260+
8:52 AM <•nrc> oh, and RLS is learning about borrowing - nashen88 has been doing some cool stuff there
261+
8:52 AM <jwilm> I have a bit of news about Racer
262+
8:53 AM <jwilm> Recently, an awesome person named TedDriggs has started contributing many fantastic patches to the project
263+
8:53 AM <killercup> brson: i like the feature, but i also don't want it in another file and have been thinking about suggesting using cargo.toml [metadata] in a few tools
264+
8:53 AM <jwilm> A PR was just opened for restricted visibility completions by him as well
265+
8:53 AM <•nrc> nice!
266+
8:53 AM <killercup> brson: but that's a whole other thing, and i'm looking forward to a .rust-version file in the meantime :)
267+
8:53 AM <misdreavus> ^ teddriggs is the one who posted the "doc comments on items" issue
268+
8:53 AM <jwilm> All around, really great contributor. His work is doing a lot to move Racer forward ;)
269+
8:54 AM <jwilm> I just wanted to acknoledge him here since he is doing such awesome work
270+
8:54 AM <•nrc> :-)
271+
8:54 AM <misdreavus> <3
272+
8:54 AM <steveklabnik> :D
273+
8:54 AM <teddriggs> thanks jwilm! :) you're making me blush right now.
274+
8:54 AM <jwilm> glad to have you on board :)
275+
8:55 AM <•nrc> fitzgen did some work on bindgen to improve the contributor docs - he wanted feedback, so would be great if anyone wanted to go through them (I plan to do it too)
276+
8:56 AM <teddriggs> the community has been great thus far. I've started looking at nrc's work in rls-analysis lately too; trying to understand the long-term direction (and RLS architecture) better.
277+
8:56 AM <•nrc> ok, finally, topic for the focused meeting next week
278+
8:56 AM <•nrc> (teddriggs: cool, please ping me if you have any questions)
279+
8:56 AM <•nrc> anyone want to nominate something for next week?
280+
8:57 AM <•nrc> if not, then I would like to nominate cross-compilation support and Xargo
281+
8:57 AM <•nrc> does that sound good?
282+
8:57 AM <•nrc> japaric?
283+
8:57 AM <steveklabnik> :+1:
284+
8:58 AM <oli_obk> :+1: for cross compilation
285+
8:58 AM <japaric> nrc: sgtm
286+
8:58 AM — mw is traveling next week
287+
8:59 AM <steveklabnik> oh right
288+
8:59 AM <steveklabnik> i am not sure when my flights are
289+
8:59 AM <•nrc> if you are interested in the meeting, then please read the Xargo roadmap - https://github.com/nrc/dev-tools-team/blob/master/roadmaps/xargo.md
290+
9:00 AM <•nrc> brson: will you be available?
291+
9:00 AM <brson> yes
292+
9:00 AM <brson> nrc: are you coming to the ww?
293+
9:00 AM <killercup> oh, i've been meaning to look into getting `cross` (not xargo) working on macos, maybe we can talk a bit about that tool as well
294+
9:00 AM <japaric> killercup: sure
295+
9:00 AM <•nrc> brson: I am, I'm travelling on Sunday, so I'll be in SF on Monday
296+
9:01 AM <•nrc> killercup: do you have a link?
297+
9:01 AM <killercup> nrc: https://github.com/japaric/cross/
298+
9:01 AM <•nrc> thanks!
299+
9:02 AM <•nrc> OK, time's up, thank you everyone!
300+
9:02 AM <brson> maybe we can also talk about refreshing smoke next week
301+
```

0 commit comments

Comments
 (0)