4 ms·
I wonder what the correlation is between "took a long time to become productive in Rust" and "uses Rust rarely."
by whatshisface 8y ago
I 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.