19 ms·
Announcing Rust 1.33.0
- zach43 8y agoIt is nice to see the const fn improvements! maybe this is normal for the minor version Rust announcements, but is the page missing a link to the list of contributors?
- mark-simulacrum 8y agoWe're going to publish that soon -- it needs to be generated after the release is tagged and it took longer today. We'll edit the blog post when it's ready to go.
- steveklabnik 8y agoTo be even more clear, I had to give my old computer back to Mozilla, and had not yet set up all of the necessary stuff on my new computer yet. For Reasons(tm), the contributor list is a full webapp backed by postgres, and so I have to get all that set up locally. Oops! I really need to re-write it to make it more simple this time. UPDATE: list is live at https://thanks.rust-lang.org/rust/1.33.0 https://thanks.rust-lang.org/rust/1.33.0, blog post has been amended to include the link. Should show up in a few minutes. Thanks for your patience, everyone.
- kibwen 8y agoExpanding the capabilities of const fn is a tremendous achievement, years in the making. Congratulations to all involved (though of course there's much work yet to be done)! I especially appreciate that the syntax for const fn is "just" Rust, without being any sort of DSL or metalanguage, making it quite approachable and usable. The stabilization of the Pin API is also quite the achievement; the GitHub issue discussing it is one of the densest and most extensive threads I've seen: https://github.com/rust-lang/rust/issues/49150 https://github.com/rust-lang/rust/issues/49150
- tiniuclx 8y agoI have been paying attention to Rust for the past year or so and I think it'll be the next language I will end up learning. I do have a question: what is const fn supposed to be used for? Is it for denoting pure functions? That would be really nice, considering that not many non-functional languages explicitly recognise pure functions.
- steveklabnik 8y agoconst fn is used for compile-time programming. "pure" is a bit over-loaded of a term, but you can sort of think of it that way, sure. You can of course also run these functions at runtime; they're a more restricted kind of function. You cannot even currently use if inside of them, for example. We're working on expanding it out, but we're going slow because it's important for soundness reasons.
- lultimouomo 8y agoShould we think of them like the equivalent of constexpr functions in C++?
- steveklabnik 8y agoI am not familiar enough to declare an equivalence, but roughly the same, yes.
- tux3 8y agoYes, but hopefully without the amusing issue of non-constant constexpr functions in C++ :) http://b.atch.se/posts/non-constant-constant-expressions/ http://b.atch.se/posts/non-constant-constant-expressions/
- PowerGuido87 8y agoSo they're more like C++20's consteval? http://wg21.link/p1073r3 http://wg21.link/p1073r3
- Arnavion 8y agoThis release also enables Windows binaries to run in Windows nanoserver containers. Previous releases would produce Windows binaries that depended on shell32.dll for parsing the commandline into argv, but this DLL is not present in nanoserver. With this release the standard library implements the logic of parsing argv itself. https://github.com/rust-lang/rust/pull/56568 https://github.com/rust-lang/rust/pull/56568
- rienbdj 8y agoWhere does async stand at this point?
- ilovecaching 8y agohttps://areweasyncyet.rs https://areweasyncyet.rs
- jcranmer 8y agoTo summarize: * The Pin trait is stable. * std::task/std::future, i.e., the ability to use futures is still unstable. * The async/await syntax is still unstable. And apparently being bikeshedded like mad, from what I've heard.
- Arnavion 8y agoNote that it is usable in nightly. So if you just want to play with it, don't let the fact that it's unstable stop you. Occasionally a nightly will break your code (the most recent case being when LocalWaker was renamed), and you might have to wait a few more days after that for the futures-preview crate to catch up.
- beatgammit 8y agoIt's more common on less popular OSes, like FreeBSD, so I ended up sticking to stable for those platforms (e.g. production).
- fstephany 8y agohttps://areweasyncyet.rs/ https://areweasyncyet.rs/
- liveoneggs 8y agoright about where ocaml-multicore is :)
- est31 8y agoFinally, the Duration::as_... functions are stable. Allows one to do duration calculations much more nicely now that it's one variable.
- beatgammit 8y agoI was actually on nightly for a bit because of this, then I realized I only needed them in a few places so I did it myself so I could go back to stable. I'm glad this is in the release. :)
- ilovecaching 8y agoThe const improvements are indeed awesome. I wonder if there were any big improvements to compile times? Is that in the road map for this year?
- steveklabnik 8y agoWe have not published a roadmap yet (I'm getting there), but compile times are always of a lot of concern to the compiler team and they're going to be working on it for sure. It's the #1 requested feature.
- bmer 8y agoI personally don't understand why compile times are such a concern, as the larger libraries I have worked with take less than a minute to compile. Are there programs that take hours to compile?
- beatgammit 8y agoThe edit + reload cycle is the biggest concern, though it's mostly moot these days with incremental compilation. However, I still dislike updating dependencies because it'll take several minutes to rebuild everything. Also, building third-party tools is a pain as well (compile diesel or ripgrep sometime), which is the most annoying part for me. Also, it's a bit annoying for CI since I like to make sure everything can build from scratch, and it can be quite the wait to see if your build succeeded.
- burntsushi 8y agoCould you say more about the annoyances you experienced while compiling ripgrep? Is it just the time it takes to build it or is there something else?
- blaisio 8y agoI think one of the main problems is programs compiled in debug mode are surprisingly slow and unrepresentative of things compiled in release mode. So, some projects have to always compile in release mode while testing things, and it takes a long time.
- sridca 8y agoDoes anyone use Rust for hobbyist game development? What is your experience?
- steveklabnik 8y agoYou might want to ask over at /r/rust_gamedev
- drclau 8y agoYou may find this site useful: http://arewegameyet.com http://arewegameyet.com
- Errsher 8y agoIs there a list of these websites anywhere?
- bhargav_ 8y agoI don't think so, but so far the only other such websites I've seen are http://www.arewewebyet.org/ http://www.arewewebyet.org/ and https://areweasyncyet.rs/ https://areweasyncyet.rs/ . Though looks like there used to be a areweembeddedyet.org[1], but now https://docs.rust-embedded.org/ https://docs.rust-embedded.org/ seems to be the main jumping off point for rust embedded. [1]: https://github.com/rust-embedded/wg/issues/15 https://github.com/rust-embedded/wg/issues/15
- deleted 8y ago[deleted]
- the8472 8y agoCheck http://arewemetayet.com/ http://arewemetayet.com/
- mbrubeck 8y agohttps://wiki.mozilla.org/Areweyet https://wiki.mozilla.org/Areweyet
- 8y ago
- mchan 8y agoDoes anyone know of any good resources for learning Rust from a beginner's perspective? For someone with very little or no C/C++ experience?
- luladjiev 8y agoI think The Rust Book might be good for you: https://doc.rust-lang.org/book/ https://doc.rust-lang.org/book/ Also there are more resources here: https://doc.rust-lang.org/ https://doc.rust-lang.org/