13 ms·
Announcing Rust 1.0-alpha2
- parley 12y agoSteve: Perusing or pursuing the trifecta? =o)
- steveklabnik 12y agoI always friggin' do this, it's one of those typos I perpetually make :( Care to make a PR so you get a commit credit, or should I just fix it? rust-lang/blog.rust-lang.org is the repo.
- parley 12y agoIt's fine, go ahead and fix it. And thanks for your hard work on Rust! =o)
- steveklabnik 12y agoDone: https://github.com/rust-lang/blog.rust-lang.org/pull/28 https://github.com/rust-lang/blog.rust-lang.org/pull/28 And you're very welcome. I couldn't do it without Mozilla paying my bills, though I hope to strike out on my own later in the year.
- e12e 12y agoObviously need a perusing stage before committing changes to the docs.
- knocte 12y agoWhat's up with the "pure" keyword? Has someone managed to work on this area so that the default is pure, and the opt-in keyword is "impure" instead?
- pcwalton 12y agoRust used to work that way several years ago, but it proved too inconvenient and was removed.
- comex 12y agoRust doesn't currently enforce pure functions at all; there is no 'pure' keyword. Here is an old mailing list post related to this decision - note that because it is 2 years old and Rust has been in a state of constant flux for most of that time, it may not fully reflect current thinking. https://mail.mozilla.org/pipermail/rust-dev/2013-January/002903.html https://mail.mozilla.org/pipermail/rust-dev/2013-January/002...
- erickt 12y agoYears ago we had pure functions that have since been replaced with our current function model. I'm betting that we are still reserving "pure" from that time. I haven't heard of anyone proposing to use it for something, so should probably unreserve it.
- knocte 12y agoI've recently attended a conference where they gave a D talk, and almost immediately after a Rust talk. This let me compare these two interesting languages in a quite detailed way. While Rust seems to be more safe in terms of trying to prevent as much as it can that you shoot yourself in the foot, it can be understood that the way to achieve this is maybe too extreme. I've read that programmers new to this language invariable struggle with lifetime issues that the compiler keeps arising. I'm sure this is a good thing. But I'm not sure the ways to fix those issues, at least in a number of examples I've seen, are pretty. Most of them involved abusing the "*" and "&" symbols, which put you in a territory in which you seem to be dealing with pointer arithmetic again like in low-level C, something which I thought Rust was trying to escape from. One thing I really liked about D is the string mixins, which could allow for what has become common these days in F#: type generation at compile time (which at the end of the day allow you to, for example, parse XML or JSON with static APIs, hence allowing intellisense/codeCompletion/youNameIt). I'm really excited about what these kind of high&low (hybrid) level languages will allow. I hope they get into mainstream soon, and surpass other less interesting (but trendy) ones like Go.
- pcwalton 12y ago> Most of them involved abusing the "∗" and "&" symbols, which put you in a territory in which you seem to be dealing with pointer arithmetic again like in low-level C, something which I thought Rust was trying to escape from. First off, Rust doesn't have pointer arithmetic. Moreover, though, Rust is not trying to "escape from" pointers in C and C++; it's a manually memory-managed language, not a garbage-collected one. For Rust's domain (systems programming without automated memory management), learning about pointers is a necessity. What Rust saves you from is making dangerous mistakes with memory management. > One thing I really liked about D is the string mixins, which could allow for what has become common these days in F#: type generation at compile time (which at the end of the day allow you to, for example, parse XML or JSON with static APIs, hence allowing intellisense/codeCompletion/youNameIt). Rust has macros and compiler plugins, which allow you to do the same thing.
- knocte 12y ago
- doe88 12y agoI must say what worry me the most is what happens once 1.0 is shipped in term of language changes and compatibility with previous versions. Because I've observed and of course I understand the huge amount of changes the language has undertaken until now, but I must say I worry it will continue at this pace right after 1.0. Currently, I'm on the verge of choosing the language I will choose for an important project I'm about to start, I have a good knowledge of Rust and I think it's a great language, but despite all of this I think I will pass on Rust for this project because I'm not sure I'm ready / be able to keep-up with this level of changes.
- pcwalton 12y agoRust 1.0 will be stable and will cease making breaking changes.
- CatDevURandom 12y agoThe concern isn't that the pace of breaking changes will mean Rust breaks sem-versioning but that the duration between Rust 1x and 2x will be short. In practice, it doesn't make a difference what number is assigned to a release if the major stability turns out to be short. Can you comment on that -- possibly entirely incorrect -- concern I have about Rust's development? Are we going to see Rust 2.x popping up in six months?
- steveklabnik 12y agoWe have no current timeline for a 2.0. It certainly will not be on the order of months, I would prefer on the order of a decade, I'd bet on the order of years. Furthermore, and this is speculation, since again, we haven't talked about it as a group, but I wouldn't imagine a Rust 2.0 where it's like breaking changes are today. I would imagine a very long period of deprecations, a nice upgrade path, and all that jazz. Nobody likes when the entire world changes out from under them all at once, and sudden, massive changes are something we're trying to avoid with the release train model.
- cwzwarich 12y ago
- kibwen 12y agoI haven't had much time in the past month to help out with Rust, but I'm excited at how things are proceeding. Conceiving, proposing, and implementing I/O reform in the span of a single six-week alpha cycle is very impressive, to say nothing of the sea of tweaks and refinements that have appeared in the same period. That said, I see this as basically just a "heads down, working furiously, nothing-to-see-here" release... six weeks from now is when the real action starts. :)
- steveklabnik 12y agoNot to rain on our parade, but IO reform discussion started in the middle of last December, so it's been longer than that.
- snissn 12y agoAwesome, with their announcement that "all major API revisions are finished" this seems like the turning point where I will finally invest my time into thoroughly learning the language! I'm really excited!
- 14e3d901150a21d 12y agoI was hoping that the prelude would re-export the new io/path modules, but it looks like old_io and old_path are still exported. Regardless, great work. Rust seems rather promising.
- IsTom 12y agoI tried rust, I tried honestly, but it's just enraging when you can't just write: let x = ys.filter(|y| self.p(y)); self.z = x;