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.

The Linux Kernel Prepares for Rust 1.77 Upgrade

131 pointsby mindracerover 1 year ago

7 comments

kramergerover 1 year ago
The LKM post mentions binary size improvements.<p>One issues I have had with Rust applications is the huge binary size (yes, I know this has improved a bit lately). Is there a good comparison between kernel C and kernel Rust code in this regard?
评论 #39419735 未加载
评论 #39419496 未加载
评论 #39419498 未加载
评论 #39419594 未加载
评论 #39419815 未加载
评论 #39419721 未加载
评论 #39420743 未加载
评论 #39422448 未加载
SushiHippieover 1 year ago
Do I understand it correctly that upgrading to a new rust version is mostly implementing new best practices and new features, instead of needing to &quot;fix&quot; your code, as rust is backwards compatible?<p>I&#x27;ve only used rust nightly for my own projects and didn&#x27;t give too much thought about rust versions
评论 #39419322 未加载
评论 #39420235 未加载
评论 #39420081 未加载
评论 #39420022 未加载
评论 #39420628 未加载
loegover 1 year ago
So this is a huge tangent but couldn&#x27;t most of the uses of the non_null!() macro in this diff just be (safe!) pointer comparisons or subtractions, without the unsafe{} logic to convert a pointer value to a reference just for the purposes of comparison or subtraction? <a href="https:&#x2F;&#x2F;lore.kernel.org&#x2F;lkml&#x2F;20240217002717.57507-1-ojeda@kernel.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lore.kernel.org&#x2F;lkml&#x2F;20240217002717.57507-1-ojeda@ke...</a>
评论 #39420819 未加载
1letterunixnameover 1 year ago
My wishlist would include gradually refactoring core in Rust and formal verification a-la seL4 to prove correctness. There&#x27;s no point to refactor churn from one language religion to another for low entropy, core code without improvements in assurance that it&#x27;s also provably bug-free, race-free, and secure while also being as fast or possibly faster.
ameliusover 1 year ago
How many % of the kernel is Rust now, in terms of LoC?
评论 #39419851 未加载
评论 #39419869 未加载
srousseyover 1 year ago
Curious, why Rust instead of Zig?
评论 #39427222 未加载
bsd_sourceover 1 year ago
Rust is going to kill LFS
评论 #39419512 未加载
评论 #39419647 未加载
评论 #39419955 未加载
评论 #39420786 未加载