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.59.0 with inline assembly support etc.

233 pointsby 0xedbabout 3 years ago

13 comments

Arnavionabout 3 years ago
Not mentioned, but the previous release's feature of capturing idents in format strings automatically did not work for `unreachable!`, ie `let x = 5; unreachable!("{x}");` panicked with the message `"{x}"` instead of `"5"`. This is fixed in 1.59
tiddlesabout 3 years ago
Glad to see inline asm is finally stabilised, that's one less reason to use nightly for osdev!
评论 #30458668 未加载
评论 #30458912 未加载
mleonhardabout 3 years ago
Dear Rust Team, Thank you for your hard work! Rust helps me be more productive. It makes our systems more reliable, which reduces stress. And sometimes I have fun while working with it. :)
ezekiel68about 3 years ago
Good stuff in here. But since they found a bug which caused them to disable incremental compilation by default for this release, I'll likely skip this one and wait a few weeks for 1.60.0 (which these release notes state will likely address the problem and restore default incremental compilation)
评论 #30458584 未加载
评论 #30459340 未加载
评论 #30460940 未加载
评论 #30458410 未加载
dthulabout 3 years ago
Really looking forward to const generics becoming more and more useful in the future! A current limitation I hit yesterday is that you can't use a (non-literal) expression as a const generic parameter yet. I wanted to specify 32KiB as "32 * 1024" but had to write "32768" instead.
评论 #30457955 未加载
评论 #30458230 未加载
exitcode0about 3 years ago
Neat! Interestingly Ada has had this feature since its inception around 1983 (use in action with CPUID - <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;AdaDoom3&#x2F;6466215" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;AdaDoom3&#x2F;6466215</a>).
评论 #30462108 未加载
评论 #30459554 未加载
Keltesethabout 3 years ago
&gt; Today&#x27;s release falls on the day in which the world&#x27;s attention is captured by the sudden invasion of Ukraine by Putin&#x27;s forces. Before going into the details of the new Rust release, we&#x27;d like to state that we stand in solidarity with the people of Ukraine and express our support for all people affected by this conflict.
tikkabhunaabout 3 years ago
Very much a rust newbie. What is this syntax called?<p>&gt; inout(reg) a,<p>inout looks like a function but I don&#x27;t see how that works with the `a` variable. Is this some magic specifically for asm!?
评论 #30460965 未加载
mrlonglongabout 3 years ago
I really appreciated the inline ASM in the nightlies when doing a tutorial on working with the RISC-V architecture. Glad it&#x27;s gone stable.
pc2g4dabout 3 years ago
Looks like a great release
rackjackabout 3 years ago
`ControlFlow` is a nice QoL addition.
benibelaabout 3 years ago
Inline assembly? Is that not too unsafe for Rust?
评论 #30459028 未加载
评论 #30458930 未加载
评论 #30463414 未加载
ncmncmabout 3 years ago
It was only a few years ago (2015?) that people asking for destructured assignment were treated like simpletons, with a long, jargon-laden explanation how the language formal syntax for destructured &quot;let&quot; was incompatible with assignment syntax as it was then, as if syntax were not something that could be extended anytime, or as if there would be no choice but to express it using the same nonterminals for both.<p>Yet, here it is. I was not fooled, but the attitude left a deep impression.
评论 #30461979 未加载
评论 #30464053 未加载