10 ms·
Rust 1.1 Stable, the Community Subteam, and RustCamp
- kibwen 11y agoThe 1.1 release came out a day earlier than I expected, I suppose we're releasing on Thursdays now. :P Note that 1.1 is a relatively small release, since, due to launching the train release model, it was in development for just three weeks prior to 1.0 (rather than the usual six weeks that all subsequent releases will have spent in development), and during that time we were all understandably in a tizzy preparing for a post-stability world. :) However, despite that short and distracted development window, we still managed to squeeze out compiler performance improvements that should result in 30% faster compiles for crates in the wild. You can expect even more progress on the compilation speed front for 1.2, due to be released August 6, along with a slew of stabilized and much-demanded stdlib APIs. Let me also mention that tickets have just gone on sale for the first official Rust conference, a small one-day event in Berkeley: http://rustcamp.com/ http://rustcamp.com/ We'll be using the experience from this proto-conference as a guide for larger events in the future, so even if you can't go we'd love to get your feedback as to what you'd like to see from a Rust conference.
- kbenson 11y agoIf I wasn't going to be on vacation during that conference, I would be strongly tempted to go, and I haven't written a line of rust. I get excited about every rust submission I see on HN though, and greedily gobble up as much information as I can. I can't help it, Rust just excites me. So, whatever you guys are doing, WRT marketing, you are doing something right.
- kibwen 11y agoSorry, it took us a while to find a venue and pull together initial sponsorship funding (ultimately provided by Jane Street, Skylight, and Mozilla), which resulted in us only announcing the date of the conference about a month ago. Next year we should be able to announce much further in advance, so maybe you'll be able to schedule your vacation around it. :)
- mlitchard 11y agoWhat I like about rust is how I think it will go together really well with a language like idris. The idea is, whatever rust cannot guarantee an idris-to-rust transpiler can. People should have a much easier time making solid low-level code in the future.
- oconnor0 11y agoWhat about Rust and Idris make them go together? Or how would they go together?
- mlitchard 11y agohttps://hackage.haskell.org/package/atom https://hackage.haskell.org/package/atom Imagine atom, written in idris, and compiling to rust. Things like that.
- Tyr42 11y agoI can't really imagine rust being a better target than C-- or something at that point, as you've got an infallible machine managing your memory already. If you output code that is rejected by the rust lifetime checker, you've still got a problem.
- metaguri 11y agoRust as a target for projects like atom instead of C could lead to easier/safer/faster atom development.
- cwzwarich 11y agoIdris is already more safe than Rust. What would this give you?
- jroesch 11y agoUnfortunately safety is not the only concern. Idris' tooling is severely limited. There are very few executables written in Idris (and even fewer that aren't bit-rotted), the build tooling and package management are very simple, the runtime is heavily optimized, concurrent or parallel (like GHC's) and the single-threaded performance is far from Rust's. I want to be clear that I'm not hating on Idris I love the goals of the project and am probably one of the few people outside the core contributors who has written a backend for the compiler, but you can't really compare a production quality compiler with a full time team of 10 or so to a research compiler worked on by researchers (who have different goals) and volunteers. Edit: To clarify for this reason I could see why it would be cool to be able to write some critical code in Idris and extract to Rust where you could get performance and tooling for the rest of your application.
- arielby 11y ago1.2 (which was stabilized today) is also a mostly-quality release (`const fn` and associated constants landed behind a feature gate, but are still not-really-done).
- kibwen 11y agoIndeed, the 1.2 development cycle was relatively sleepy as the preceding six months were spent in crunch mode preparing for 1.0, and everyone was eager for a bit of summer vacation. :) A lot of this cycle has also been spent prioritizing for future language development and organizing the new subteams. But I'd still say that 1.2 managed to get a lot done, since there's just so much low hanging fruit wrt stdlib APIs to stabilize.
- alexnewman 11y agoOOh and there's a rust podcast out as well. You can find it in the new section of hacker news.
- mwcampbell 11y agoWhat exactly does MSVC support entail? For example, will one be able to debug Rust programs with WinDbg or the Visual Studio debugger? IIUC, that would require LLVM to output PDB files.
- steveklabnik 11y agohttps://github.com/rust-lang/rust/pull/25350 https://github.com/rust-lang/rust/pull/25350 was the PR with the initial support. > The tl;dr; of this change is that there is a new target of the compiler, > x86_64-pc-windows-msvc, which will not interact with the MinGW toolchain at > all and will instead use link.exe to assemble output artifacts. We're very interested in improving support so that you can use VS's features fully. These are just first steps.
- brson 11y agoMSVC support primarily means that Rust programs link with the MSVC toolchain, and use structured exception handling for unwinding. There are no GNU components involved and no need to install MinGW.
- alexcrichton 11y agoIn addition to not interacting with the GNU toolchain at all (through MinGW), MSVC support will indeed enable native Windows debug info (as you mentioned) so native tools can be used to debug Rust code. Note that this isn't 100% implemented yet, but it's coming soon! Additionally you'll get interoperation with MSVC-compiled libraries. Libraries compiled with MinGW don't interoperate well with MSVC (and vice versa), so this enables Rust code to link against an MSVC-compiled native library.
- alricb 11y agoHave there been documentation improvements? For instance http://doc.rust-lang.org/nightly/std/str/ http://doc.rust-lang.org/nightly/std/str/ is still quite obscure: it talks about the traits returned by certain methods, but there isn't an obvious way to get to the documentation for those methods, if you'd like to know how .lines() is different from .lines_any(), for example. Compare with https://docs.python.org/3/library/stdtypes.html#str https://docs.python.org/3/library/stdtypes.html#str where all the methods are listed, along with what they do.
- steveklabnik 11y agoThere have been a number of doc fixes, but they've largely been polish more than brand new things. I've had about ~50 PRs in this release myself, after a quick look, and we had a bunch of community stuff as well. The specific issue you're talking about is due to using Markdown rather than ReST, basically. We didn't manually link those methods, but probably could. In general, the API docs could use a lot of work. There's always so much more to do.
- gmjosack 11y agoYou probably want this page for str: http://doc.rust-lang.org/nightly/std/primitive.str.html http://doc.rust-lang.org/nightly/std/primitive.str.html It's unfortunate that most of the links navigate you to the less useful doc.
- bpicolo 11y agoI'm getting bizarre rendering errors in chrome for whatever character prefixes "self" in all those (I assume &?)
- kibwen 11y agoPeople were hitting that a few months ago, is this the first time that you've visited the docs in a while? In their case it was due to a problem with the page's font file itself, and it may be that your browser still has that version of the font cached. Maybe try a force-refresh?
- gamegoblin 11y agoI hope the Rust team also starts prioritizing compiler crashes. I started using Rust exclusively for hobby projects after the 1.0 release, to force myself to learn the language, but I found myself running into compiler panics on nearly a daily basis. Admittedly, the code the compiler tended to crash on was very macro-heavy, but a goal of rust is safe macros. (And even if the macro-expanded code was invalid, the compiler should just report an error, not crash). There are currently 207 open issues regarding ICE (Internal Compiler Error): https://github.com/rust-lang/rust/labels/I-ICE https://github.com/rust-lang/rust/labels/I-ICE
- steveklabnik 11y agoIt's not perfect, but https://github.com/rust-lang/rust/issues?page=1&q=is%3Aissue+label%3AI-ICE+closed%3A%3E2015-05-15+is%3Aclosed https://github.com/rust-lang/rust/issues?page=1&q=is%3Aissue... seems to indicate that we closed 81 issues tagged ICE between 1.0 and now. Not all of those made it into 1.1, bunches are in 1.2, and some of them are duplicates... If you're running into ICEs or any other bug, please either open up a ticket or :+1: the ticket that exists. It helps to know which things are biting people more often.
- deleted 11y ago[deleted]
- arielby 11y ago1.2 is much less ICE-ey than 1.0 (the annoying "capacity overflow" macro ICE is no longer an ICE - it still prints "internal compiler error: unprintable span" but doesn't crash).
- kibwen 11y agoIt's definitely something to work on, but note that the Rust compiler tries hard to eagerly crash rather than possibly generate broken code. I'm very pleased at how few codegen-related bugs have been found since 1.0.
- Jenny1975 11y agoI've seen this complaint about the Rust compiler a number of times now, here and at other sites. Isn't one of the main selling points of Rust that it's supposed to make it much harder to write code that crashes? It is my understanding that the Rust compiler is mostly written in Rust. While maybe these ICEs aren't traditional segfaults that can be exploited, they're still unexpected crashes none the less! The software stops working without warning. If the best Rust experts around have so much trouble avoiding those kinds of crashes, then how is an average Rust user, or even a complete beginner like me, supposed to write Rust code that's any less susceptible to crashing?
- jrapdx3 11y agoI'm glad to see Rust's progress. I'm still very interested in Rust, and incrementally learning the language. I do appreciate the documentation, IMO the developers have done a tremendous job in that respect. One question though. When is Cargo going to be available on FreeBSD (and other BSD's)? I think these platforms are significant in the server space where Rust would be highly relevant. Having Rust usable there would likely augment uptake of the language.
- steveklabnik 11y agoThere are community builds to several of the BSDs, but we don't have CI running at the moment. We're working on ways to possibly provide infrastructure for community members to hook into to help make sure that the build is always green...
- brson 11y agoI've heard progress on this front recently (it's mostly about the automation infrastructure), and I might expect official nightlies of both rustc and cargo for FreeBSD by the end of summer. Don't hold me to that.
- throw982734 11y agoGiven Steve Klabnik's recent actions to suppress people who hold political opinions he does not like, I have a considerable amount of trepidation knowing he has a leadership position in the community sub-team.
- worklogin 11y agoYou'll get downvoted when you make seemingly opinionated statements with no context.
- throw982734 11y agoDownvotes don't bother me. Being ostracized from the Rust community would, however, hence the throwaway.
- kibwen 11y agoIf you feel as though any member of the Rust team is failing to uphold the principles of the project then you may contact the moderation team at rust-mods@googlegroups.com . Note that that is a private mailing list and that Steve is not on the moderation team (nor is any member of the Rust core team, by design).
- MetaCosm 11y agoInteresting, how was the mod team picked? I think it is a good check to have it be separate from the Rust team (assuming it wasn't picked by and answers to the Rust team).
- kibwen 11y agoThe moderation team was conceived and designed by Manish Goregaokar, an experienced moderator from Stack Overflow and a volunteer for the Servo project. The original roster for the mod team was picked by Manish and the core team, though moving forward the mod team can expand its ranks on its own. Also notice that the moderation team has no formal leader, every member has the same amount of authority. One of their explicit goals is to police the other teams, including the core team, hence the requirement for disjoint membership between the mod team and the core team.
- worklogin 11y agoSo I assume 1.x.x won't break features from 1.0? Is Rust using proper semantic versioning?
- barosl 11y agoBasically, no, it won't. Rust still reserves some rights to break the existing code if the found issue is considered to be "severe" (e.g. type system soundness issues), but those cases should be extremely low. In most cases workarounds will be introduced rather than breaking changes. More details at https://github.com/rust-lang/rfcs/blob/master/text/1122-language-semver.md https://github.com/rust-lang/rfcs/blob/master/text/1122-lang... Also note that the Rust team tests all the crates before making a (minor) breaking change to see the impact of the breakage to the ecosystem. (possibly "popular crates only", when the ecosystem grows huge in the future)
- MetaCosm 11y agoRust core team has taken the approach of breakage without major version increments being acceptable as long as they deem the breakage "minor" (based on crates.io and companies they have close relationships to).
- kibwen 11y agoQualifying with "close relationships to" is misleading, as every company using Rust is welcome to sign up to receive new versions of the compiler to run against their codebases to test for regressions. See the email address in my profile if you'd like to add your company to our list!
- MetaCosm 11y agoOK -- replace "close relationships to" to "have emailed kibwen at his gmail address to get on a list". If I could go back and edit I would -- but it has been too long.
- pcwalton 11y agoI don't want to relitigate this issue again, but that's not an accurate description of the policy. If you tell us that one of the changes in a point release broke your code, then appropriate action will be taken, regardless of who you are. No organization is given special privileges regarding breaking changes based on "close relationships" to the developers. It is true that Rust, like all actively-maintained languages, can make changes that are theoretically breaking if all evidence strongly suggests that no code is actually going to break.
- exacube 11y agoI'm happy things are moving along, but I would still like to see the documentation be more polished. I still don't know how to write a task queue (ie queue of closures) that executors can concurrently read and run from. I don't feel like the docs empower me enough to write multi threaded code comfortably without the borrow checker spitting at me. Is it just me, or does anyone else feel this way?
- steveklabnik 11y agoWhen you start documenting a language from scratch, you have to start at the beginning. A language is a huge project as well. The current book is about ~250 pages when rendered as a PDF. I've finally gotten to the point where the basics of almost everything have been documented, and am starting to move on to more intermediate style things. In addition, we've only had a stable Rust for six weeks: there just hasn't been enough time to write more advanced things. Nobody wants to invest in stuff while things are still changing. As an example of this, I know there's an O'Reilly book coming out in the fall which covers advanced topics exclusively. A basic task pool isn't too many lines of code: https://github.com/rust-lang/threadpool/blob/master/src/lib.rs https://github.com/rust-lang/threadpool/blob/master/src/lib.... Hopefully that can help for that case, though obviously, this isn't just a comment about threadpools :)
- andy_ppp 11y agoI really love that you can (have?) put tests in the same file as the threadpool implementation. I think I will start doing this myself...
- steveklabnik 11y agoRust convention is to put unit tests in the same file. I like it too :) Also, doc comments run as tests too, so https://github.com/rust-lang/threadpool/blob/master/src/lib.rs#L69-L84 https://github.com/rust-lang/threadpool/blob/master/src/lib.... will actually get executed as a test.
- exacube 11y ago
- bfrog 11y agoImpressed daily by the amount of stuff being done to advance Rust as an incredibly useful language.
- JeffKilborn 11y agoWhile I find Rust interesting, how exactly will Rust deal with a 900lb gorilla that's about to get released from a cage? Opensource Swift is only few months away and it already has a much bigger user base and is backed by the biggest company in tech. Rust & Swift share many common traits and kinda look alike as well. Why should anyone pick Rust over Swift when Swift will be able to do everything Rust can do and is also positioned as a systems programming language? And Swift will also be a full-stack programming language and you will be able to program apps and backends with it. I feel like Rust is about to get killed. And killed quickly.
- andresmanz 11y ago> Why should anyone pick Rust over Swift when Swift will be able to do everything Rust can do and is also positioned as a systems programming language? Well, honestly, that's just what I thought about C/C++ in comparison to some 'newer' programming languages like Go, Rust (and also Swift, maybe? I don't know enough about Swift yet). Personally, I would only use Swift if there was an easy way to write cross-platform (mobile) software with it. It's as simple as that.
- kibwen 11y agoSwift is an applications programming language where the runtime is non-optional (at least AFAICT) and memory is managed dynamically. It will be competing with .Net and Java, not with C and C++ (though, as ever, there are surely plenty of C++ projects that don't actually need C++'s level of control and could benefit from a rewrite in Swift). Swift isn't going to penetrate to the bottom of the stack with pervasive reference counting. You'd either have to start managing memory manually (as per C) or implement a borrow checker (as per Rust), and even then your entire ecosystem is still going to use reference counting pervasively due to the language's defaults. One of the benefits of Rust defaulting to linear types and borrowed references is that it creates an entire package ecosystem where dynamic memory management is the exception, not the rule. For the record, I think Swift is super fantastic as a language and I'm thrilled that it's going open-source. I think the two languages will work swimmingly together. :)
- 11y ago
- deleted 11y ago[deleted]