14 ms·
Rust 2018 survey results
- whatshisface 8y agoI wonder what the correlation is between "took a long time to become productive in Rust" and "uses Rust rarely."
- weberc2 8y agoAgreed. I also wonder what "productive" means. It would be interesting if they framed it in terms of other languages ("I'm as productive as I am in my most-frequently-used non-Rust language") or similar.
- twanvl 8y agoThis is still a meaningless question, because different languages are good for different things. Are you as productive in rust when doing web front-end development as in javascript? Are you as productive when doing one-of scripts as in perl? Are you as productive when doing exploratory data analysis as in python? Are you as productive when doing database queries as in SQL?
- the_duke 8y agoI disagree. This is obviously a subjective question. You will feel productive once you have a sufficient grasp on the language and the parts of the ecosystem you need. Basically no-one will have Rust as a first language so there will be a point of comparison to other languages too.
- Retra 8y agoNobody said anything about feeling productive. They're talking about being productive.
- weberc2 8y agoIt's not meaningless; it's just not very meaningful. You can doctor the phrasing to filter out the specific issues you raised (hence, "or similar"). More importantly though, it's never going to be a perfect metric because there is some inherent subjectivity; however, it's still far more meaningful than the current question. There is a difference between "meaningless" and "not 100% meaningful".
- yoklov 8y agoI use Rust daily, and it took me a while to be productive. Productive is hard to define, and I guess I'm not "all the way there"; the design of a Rust project still takes me longer than a C++ or JavaScript one, mostly due to its pervasive restrictions around mutability. There are still things I'd have trouble doing. I used to do game development professionally, and I still don't think I'd use Rust for it. I also have worked on virtual machines and high level programming language runtimes, and I wouldn't want to write a GC in Rust. (Yes, I've seen shifgrethor[0] and the rustconf 2018 closing keynote[1] (I was there, actually) -- both are great, but they're almost more examples of my point; Rust makes certain patterns much harder). [0]: https://github.com/withoutboats/shifgrethor/ https://github.com/withoutboats/shifgrethor/ [1]: https://kyren.github.io/2018/09/14/rustconf-talk.html https://kyren.github.io/2018/09/14/rustconf-talk.html
- sam0x17 8y agoComing from Crystal/Ruby, I just could never get it to do what I wanted it to do. Tried writing a generic stream API, and using closures naturally like anyone would to do things like "on_data" etc., only to run into insurmountable life cycle and borrowing problems. Tried for 4 weeks straight to get the same 100 lines of code to work. Ended up giving up when the rust gitter told me it was impossible to do this sort of thing, and wrote a perfectly working implementation in crystal in an afternoon.
- p0nce 8y agoPerhaps a GC would help Rust being this productive?
- majewsky 8y agoWe have a ton of GC languages already. Rust is unique for being able to do a lot of things very safely, but also fast because it does not require a GC.
- pjmlp 8y agoBeing able to generate fast code doesn't imply not having a GC. It is all a matter how it is implemented and the additional language features for manual types and control of allocations, and how good the compiler backend is transforming all that AST information into actual code. Something like Modula-3, Active Oberon, System C#, Eiffel, D and so forth.
- Jach 8y agoRust had an optional GC once, they removed it. Nim is the answer to scrubs like me who thought Rust was interesting up until that point, since Nim is super fast and lets you allocate/deallocate directly (use of GC is optional) and has three different GC implementations to choose from (including a soft real time one).
- rcxdude 8y agodespite the name for the syntax, rust never really had a GC, just a slightly shorter syntax for reference-counted heap-allocated objects and a vague idea of 'probably it'll handle loops one day', until the language design solidified around an extremely minimal runtime and preferring standard library features over language features.
- dman 8y agoHow/why are so many people using nightly as their rust version? Usually companies are conservative about jumping onto newer compiler versions.
- the_duke 8y agoAt this point, I think it's mostly being used to it as nightly was more convenient for a long time. I've currently switched to nightly to use the 2018 edition changes already, which will soon be unnecessary. Almost all libraries work fine on stable now. (the new async/wait support is an exception, but it's still very experimental right now and not used by many) Important note: You can always develop on nightly and get potential speedups etc, but not use any features and then deploy only with stable.
- cp9 8y ago> When asked why they used nightly, people responded with a broad range of reasons including: access to 2018 edition, asm, async/await, clippy, embedded development, rocket, NLL, proc macros, and wasm. as for how `rustup install nightly`
- zellyn 8y agoFor a long time, there were really useful things that were available only in nightly, I believe. The Rust team has also done an unprecedented job of balancing stability and improvement.
- steveklabnik 8y agoYes. Note that there’s also lag, this survey was taken much earlier this year. And so: > When asked why they used nightly, people responded with a broad range of reasons including: access to 2018 edition, asm, async/await, clippy, embedded development, rocket, NLL, proc macros, and wasm. wasm, clippy, embedded, and proc macros aren't nightly any more. NLL, 2018 edition are coming soon. (December 6)
- yoklov 8y agoIt's very easy to use nightly (install via rustup, then `cargo +nightly blah --args` instead of `cargo blah --args`), and there are (ugh, still) a number of somewhat popular libraries that require nightly versions of the compiler. In particular, using nightly allows you to opt-in to a number of experimental language features in exchange for maintenance burden. It's not a choice I make, although it's fun to do every now and then just to get a feel for what's available in the nightly builds.
- openredbull 8y agoAre these results published in multiple languages, as the survey was conducted in multiple languages?
- steveklabnik 8y agoNot currently, as we only blog in English. We’re still, as a project, working on i18n. Conducting the survey was one of the big first steps. We’ll get there.
- arialeks 8y agoCan someone explain to me what a good use-case for Rust would be? I mean, why would I pick it over C#/Go/Python for web development? Does it only outperform them, or is it also a pleasant language to use?
- sanxiyn 8y agoI would not pick Rust over C#/Go/Python for web development.
- wild_preference 8y agoI think "web development" is too generic to say something like that. I'd consider a small data processing service, maybe a service invoked from the web server you're already using in Ruby or whatever, is a perfectly pleasant place to use Rust, and often likely to be 1:1 identical to those other languages.
- v_lisivka 8y agoTry percy. It's still in alpha, but it awesome.
- qaq 8y agoGo? Here's Rust enum for working with JSON enum Value { Null, Bool(bool), Number(Number), String(String), Array(Vec<Value>), Object(Map<String, Value>), } How would this look in Go?
- happysanta 8y agoNot proficient in Go but I see an interface{} somewhere in the answer.
- qaq 8y agoAt which point type safety goes out the window
- 8y ago
- jononor 8y agoAll the pie charts except for the very first would be better presented as bar-charts, I think.
- wongarsu 8y agoThat's true of 95% of all pie charts in existence. Yet pie charts still seem to be the default choice for graphs. I honestly don't understand it.
- ChrisSD 8y agoNitpick: Some of those pie charts are not very nice to read. Some of the busy ones have me scanning for labels left and right. A table would be simpler to read (especially as the labels are small and light grey for some reason). I think pie charts are perhaps better when you've got, say two to four items and labels are short enough to be in place instead of off to the side.
- steveklabnik 8y agoThanks! And to jononor's comment below as well. We're not exactly data scientists... maybe for next year we'll make some of these changes.
- ChrisSD 8y agoNo worries. It's a great survey regardless, so thank you!
- forrestthewoods 8y agoI’m surprised to see library support so high on the “needs to improve” list. It makes sense when compared to the rich Python ecosystem. Coming from a C++ background I consider the Rust library ecosystem to be one of its strong points already!
- pritambaral 8y ago> Coming from a C++ background I consider the Rust library ecosystem to be one of its strong points already! In a sense, I agree with you. Certain kinds of features available in the Rust ecosystem are much more easily available than in the C++ world, and there's been a lively pace of articles published about libraries and applications in Rust. But another sense I got from looking at libraries to use myself and applications to learn from was that the ecosystem is quite smaller and ... not quite as matured as the C/C++ ecosystem (I'm _completely_ ignoring FFI for this argument). Of course, all of this is completely natural, and I'm simply not expecting them Rust ecosystem to be competitive with the much older C/C++ ecosystem(s), but this realization does temper my excitement with Rust a bit.
- forrestthewoods 8y agoSome of my excitement is for potential rather than current offerings. But having a gamedev background we tend to roll most things ourselves. C++ is such a hodgepodge of mixed build systems that adding a moderately sized library is a huge PITA.
- jayflux 8y agoI have a feeling some of it is due to all the "Why isn't X in the std library" questions being bundled into library support. If this is the case then its a bit misleading as it could be loads of people asking for a single thing, rather than people asking for better library support in general. I don't think the Rust Standard lib is too bad, so i'm also surprised its so high up.
- cantsaymyname 8y agoIt is sad that I can't even reveal who I am to talk about this but it needs to be done. If you look at 3 recent surveys of developers you find that the % of women respondents is extremely low. For example: StackOverflow Survey: 6.9% Javascript Survey: 5.1% Rust Survey: 2.7% Apparently answering an anonymous survey is either too much trouble for women to bother with or they just aren't participating in the development community at all. Women developers on HN, why aren't women participating? There are allegedly 25% women in development jobs. Are those surveys stretching the definition of developer? Why should companies be expected to hire women developers when it appears there are so few? The places with more than a few women developers also attract more, making it even more difficult for other companies to hire them. I am exasperated every time someone asserts that it isn't a pipeline problem. Based on these results there just aren't any out there at scale.
- uluyol 8y ago> Apparently answering an anonymous survey is either too much trouble for women to bother with Comments like this are what put people off. Trying to find out why women or other minorities are not participating is constructive and useful, but not when you frame the problem as their fault.
- kbenson 8y agoI agree the GP comment was worded a little weirdly, but I'm not sure it actually is trying to frame the problem as their fault. Later portions, such as: > Why should companies be expected to hire women developers when it appears there are so few? The places with more than a few women developers also attract more, making it even more difficult for other companies to hire them. I am exasperated every time someone asserts that it isn't a pipeline problem. Based on these results there just aren't any out there at scale. Seem to indicate to me they view it more as the quoted industry numbers are wrong, at a minimum misleading (e.g. maybe female developers are much more likely to be relegated to junior positions or not have or feel they have the freedom to explore less mainstream solutions). In any case, it's an interesting question. Why are there major discrepancies between what is reported by the industry for gender involvement and by community driven efforts? Finally, I think it's worth noting that in a comment where the author felt the need to not only post it anonymously, but explain that they felt the need to do so, you picked out one sentence, chose a negative interpretation of it, and then called out the original comment for attibuting blame to women when the comment clearly ended with the sentiment "we need to make it easier for women to enter the industry." That doesn't exactly foster good discussion. :/
- mrec 8y agoThe "Do you consider yourself a member of an underrepresented demographic in technology" result is interesting - 92.06% No, but a total summing to 156.3%. Assuming this question was phrased as "either No, or check all that apply", this suggests that many of those who do feel underrepresented feel that way on multiple counts. Is the "The survey also highlights some challenges, as the number of women is still lower than the industry average of women in programming fields" editorial comment based solely on this result? It seems to exclude the possibility of women who don't identify as belonging to an underrepresented group.
- dep_b 8y agoIt was a bit weird to me as well. There's like 7.x% of gay people which would leave 0.4% for non-gay people that feel that they belong to some kind of minority. It makes gay people look like having a ton of issues at once and I can't imagine that's true. Or is it: "Yes I'm a woman, but I don't feel underrepresented"?
- lern_too_spel 8y agoWomen are definitely underrepresented in technology relative to their representation in the human population at large. LGBT are not underrepresented in my experience. If anything, a higher percentage of technologists are LGBT vs. the general population.
- Vinnl 8y agoI think being a woman means (and certainly is intended to mean) you're automatically part of an under-represented group - namely, that of women. There are (far) fewer women among Rust users than in the general population, which you could say is the (a?) definition of under-represented. The percentages can add up to >100% because you can be part of multiple groups, e.g. a gay woman.
- mrec 8y ago1. Yes, but if the "women" stats only come from a question about self-identifying as underrepresented, your "automatically" doesn't kick in. If women don't check that box, you don't know they're there. 2. I get that, I'm just surprised it's so pronounced. With most statistical distributions, when 0 (flavours of underrepresentation) covers 92% of responses, you'd expect 1 to cover a major chunk of the remainder, and that doesn't appear to be the case here.
- msvan 8y agoRust is such a great language, and I wish I had more excuses to use it frequently. It is well-designed and pleasant to use. It has a vibrant and friendly community. It is fast. The library ecosystem is getting there. Go Rust!
- hartror 8y agoPie charts :(
- dom96 8y agoIn case you guys want a comparison to a similar survey for another language, here is Nim's 2018 survey results: https://nim-lang.org/blog/2018/10/27/community-survey-results-2018.html https://nim-lang.org/blog/2018/10/27/community-survey-result...
- Narishma 8y agoThe low contrast of the text in the graphs makes them near illegible to me.
- schmichael 8y agoI really wish languages would standardize on at least some of these questions to make comparisons possible.
- manigandham 8y agoSide note: Pie charts are terrible for conveying any real information. Stick with bar charts for ratios.
- GhostVII 8y agoIt's interesting how 7.71% of respondents said they felt they were underrepresented due to being non-heterosexual. If 7.71% of Rust users are non-heterosexual wouldn't that be roughly in line with the expected number, since less than 10% of people fall into this category? It is also possible that this study is not a representative sample of Rust users, but then that also makes the rest of the results less useful as well.
- tjoff 8y agoShould they have had a perfect idea of how many others were non-heterosexual?
- GhostVII 8y agoWell that's my point, they seem to have a perception of the Rust community that is incorrect. It's not neccesarily a bad thing, just an observation.
- tjoff 8y agoAh, doesn't sound surprising to me. If the topic isn't regularly discussed I'd assume that most minorities would feel underrepresented. Also not necessarily a bad thing.
- pseudalopex 8y agoThe question asked about "technology", not the Rust community. It can be interpreted as implying that non-heterosexuals are underrepresented and simply asking if the respondent identifies as non-heterosexual. Also, people's concepts of representation often include visibility.
- BuckRogers 8y agoI don't program in Rust regularly, but it's on my short list of languages that I keep up on and am a member of the local user group (Meetups, to use the commercial implementation). I have a trio that I keep up on, C# (gen purpose, my language of choice), Rust (systems) and Elixir (web). I only really use C#. I've kicked the tires on Rust and Elixir, and I could see myself using Elixir on a personal project but unlikely I'll ever have a good usecase for Rust. It does power a large portion of my Firefox browser, so from that sort of usage viewpoint I'm using something built with Rust everyday, which I can't say likely will never say for Elixir, discounting the other language on the BEAM platform.
- ksec 8y agoThe most surprising thing was "Rust should do more marketing, not many people know about it". I would have thought literally every programmer on earth would have heard of rust. Whether they have looked into it or use it would be a different question. But unless those programmers don't keep up with their tools, I find it hard to believe they don't know about Rust.
- di4na 8y agoMost of the programmers out there do not have any community contact outside of the company they are part of. We are not representing the majority here
- ksec 8y agoI assume they would have read news, Reddit, or Digg ( in the old days ) Internet forum, HN etc. If they have not heard of Nim, Crystal, D, then I would not be surprised. But Rust?
- steveklabnik 8y agoA lot of people do not read reddit, digg, hacker news, or internet forums. Way way more than those that do.
- ksec 8y agoI don't mean normal everyday consumers. But I would be surprise if programmer don't go on internet often for information. Not information on latest news, but documentation, problem solution, etc. Stackexchange, Google. Even good old manuals of long lost chips, reference in assembly languages. The chances of these people never heard or bump into the word "Rust"? That is like saying programmers have never heard of Swift. They may not know anything about it. But not "heard" of it, is.... strange?
- di4na 8y agoAnd still it is the truth. More than you think. Hell i work for a car manufacturer with thousands of devs. Most of them have not heard from anything since early 00s Perl, PHP and Java. And they have not moved. Everything newer is "Startup stuff, we live in the real world here"