TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust 1.26 released

495 pointsby dikiaapabout 7 years ago

24 comments

kibwenabout 7 years ago
So yeah, 1.26 is the most substantial release since 1.0, but there&#x27;s lots more goodies coming in the pipeline. :) It just so happened that all the initiatives from last year are preparing to land at approximately the same time. For example, coming up next in 1.27 is stable SIMD: <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;pull&#x2F;49664" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;pull&#x2F;49664</a> (though only for x86&#x2F;x86_64 at first; more platforms and high-level crossplatform APIs are on the way).
评论 #17041537 未加载
评论 #17042115 未加载
dikaiosuneabout 7 years ago
I recently found myself inserting &amp;&#x2F;*&#x2F;ref&#x2F;ref mut into match expressions before I&#x27;d even seen a compiler error. My first thought was &quot;aha, look at how experienced I am with Rust now!&quot; Followed immediately by &quot;I can&#x27;t wait until this isn&#x27;t something you have to learn to be productive with the language.&quot; And now that day has come! Really exciting for me.<p>I also need to go and find all of my impl Trait TODO comments and get to work on cleaning those up! What a good day.<p>I should also say that while I haven&#x27;t read the second edition of the book yet I am excited to have some new Rust-related content to read. The first edition of the book was a really eye-opening learning experience for me (both about computers and Rust and also about how to build a community and prioritize teaching) and I can only imagine what an improvement on that is like.
评论 #17047074 未加载
steveklabnikabout 7 years ago
So, so, so much stuff in this release! The next few are shaping up to be similar. Very exciting times!<p>As always, happy to answer questions, provide context, etc.
评论 #17041166 未加载
评论 #17044530 未加载
评论 #17042545 未加载
评论 #17044208 未加载
评论 #17042891 未加载
评论 #17041721 未加载
评论 #17041587 未加载
评论 #17041070 未加载
runevaultabout 7 years ago
Everyone keeps talking about impl Trait (which is great) but I&#x27;m super pumped for ? working in main now. Was recently writing some code as I finally got back to rust and forgot about that edge and had to write a match block when ? would have been good enough (felt silly to make a method just to handle that).
评论 #17041831 未加载
评论 #17043523 未加载
pcxabout 7 years ago
The wonderful thing about Rust is that despite being fairly new and rare to get paid for working on it, it is still enticing( to most programmers I&#x27;ve met). The consistent effort to improve it is really paying off. I hope it gets to a place where it&#x27;s `batteries included` like Python. There are some glaring holes in the stdlib I would like to see fixed sometime soon.
评论 #17041936 未加载
评论 #17041832 未加载
ovaoabout 7 years ago
The post doesn’t go into much detail about how the new i128 and u128 types are implemented, so for anyone who’s as curious as I was, the RFC is here: <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rfcs&#x2F;blob&#x2F;master&#x2F;text&#x2F;1504-int128.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rfcs&#x2F;blob&#x2F;master&#x2F;text&#x2F;1504-int1...</a>
cjcoleabout 7 years ago
&quot;Speaking of print, you can pre-order a dead tree version of the book from NoStarch Press. The contents are identical, but you get a nice physical book to put on a shelf, or a beautifully typeset PDF. Proceeds are going to charity.&quot;<p>Which charity&#x2F;charities?
评论 #17041253 未加载
GolDDranksabout 7 years ago
There&#x27;s so much long-awaited features that are finally stabilised.<p>impl Trait is HUGE. And there&#x27;s tons of other stuff too. This must be the biggest single release since 1.0.
bpicoloabout 7 years ago
&gt; Inclusive ranges are especially useful if you want to iterate over every possible value in a range<p>Out of curiosity, why was the (or an alternative) choice not to make the compiler understand that the 0..256 was not inclusive, and somehow correct the literal value to do what&#x27;s intended? Would that have been unusually complicated or?<p>Edit: Overall, still an amazing release, this was just the bit I&#x27;m curious about :) Great work by the whole Rust team&#x2F;community
评论 #17041311 未加载
评论 #17045580 未加载
hardwaresoftonabout 7 years ago
As a person who started writing rust this last week, I think I might have picked the best possible time to get in on it.<p>The community is amazing, and I actually understand all these features that were released I&#x27;ve run into about half of the issues they fix already.<p>Rust is coming along very very nicely.
评论 #17044291 未加载
sushisourceabout 7 years ago
Super excited to see how much better my code will look with impl Trait and the &quot;no need for &amp;&#x2F;ref in pattern matches&quot; stuff.<p>Keep it up Rust team. The language is incredible! Really my only daily complaint is IDE support is still abysmally slow, in both IntelliJ and VSCode.
vvandersabout 7 years ago
So freaking excited about impl trait.<p>This and not being able to do paramterized array sizes for things like SoA, AoSoA where the two things that I feel like were missing from Rust. Really happy to see the first landing(and I understand work is going on for the second).
评论 #17041290 未加载
mathwabout 7 years ago
I wrote a program yesterday in 1.25 which did some simple file I&#x2F;O right there in main, didn&#x27;t need to be fancy at all... and then this morning I come online and find that we now have fs::read_to_string and main can return a Result... great!<p>But I needed this yesterday!<p>Seriously though, this is an amazing release and so much stuff in here I&#x27;ve been looking forward to for ages. impl Trait is going to change the way I write Rust.
ben0x539about 7 years ago
Hooray, congrats to the rust contributors, once again. :)<p>Personally, not a fan of the match change. But then I was already not a fan of autoderef in method calls.
评论 #17043134 未加载
jmhainabout 7 years ago
Is it possible to match the end of a slice with slice patterns? Something like:<p><pre><code> fn foo(s: &amp;[char]) { match s { [&#x27;a&#x27;, &#x27;b&#x27;] =&gt; (), [.. &#x27;b&#x27;, &#x27;c&#x27;] =&gt; (), _ =&gt; (), } }</code></pre>
评论 #17041995 未加载
_zachsabout 7 years ago
I&#x27;m super excited about the &quot;Basic slice patterns&quot;. I&#x27;ve been learning some Elixir at the same time and was blown away by the different style of programming you can write in using matching. Glad to be able to try it out in Rust as well.
kccqzyabout 7 years ago
Existential types are great! Although I must mention that existential types are basically the way to model OO-style information hiding. It&#x27;s a great tool to have in any mature type system, although I do wonder how it is compiled. Trait objects are kind of easy to imagine: a heap-allocated dictionary of methods for that trait. I do wonder how heap allocation is being avoided in this case.<p>EDIT: I didn&#x27;t read closely enough. Only a single type is allowed, so the traditional existential type construct (&quot;trait objects&quot;) are still needed.
评论 #17043742 未加载
pjungwirabout 7 years ago
Oh wow, this sounds great! I&#x27;ve hit both the long signatures when returning iterators, and also the dereferencing song-and-dance with match, and my Rust projects have been very limited. So I think these are huge improvements that will help a lot of other newbies like me. I can&#x27;t wait to start using 1.26 instead. Thanks Rust team! :-)
leshowabout 7 years ago
I have been so excited for this release! impl Trait is wonderful, thanks everybody
Promargedabout 7 years ago
Congrats on the release!<p>Would the book be updated as new features are added to Rust? I see some useful things being incorporated slowly into the language...
评论 #17041594 未加载
shmerlabout 7 years ago
Congrats on impl Trait release!<p>By the way, how is the progress of supporting XDG base directory spec for rustc and cargo?
评论 #17041141 未加载
jeffdavisabout 7 years ago
Why is a filtered iterator a different type than an unfiltered iterator?
评论 #17046545 未加载
nikolayabout 7 years ago
I really wonder why is Golang so popular today when Rust is just killing it?
评论 #17042658 未加载
评论 #17042005 未加载
评论 #17042254 未加载
评论 #17043521 未加载
评论 #17044964 未加载
评论 #17043492 未加载
freeopinionabout 7 years ago
Yeah, but can it run Rocket? :-)
评论 #17042373 未加载