Forwarded from codedump的电报频道 (老C)
#Rust
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8aebac82933ff1a7c8eede18cab11e1115e2062b
Rust for Linux已经被合并到了Linux内核代码的主干分支了。
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8aebac82933ff1a7c8eede18cab11e1115e2062b
Rust for Linux已经被合并到了Linux内核代码的主干分支了。
Forwarded from ⊨ roife : ฅ^•ﻌ•^ฅ
😁4
Forwarded from valueless channel
xuanwo.io
Rust std fs slower than Python!? No, it's hardware!
Achieving Data Freedom Through Open Source and Rust
👍1
Forwarded from TimeAxis
#rust
一个比较逆天的编译器 bug
输出:
第一次
第二次
IDE rust-analyzer的 hint 和反汇编均证明了这一点(
https://github.com/rust-lang/rust/issues/121453
一个比较逆天的编译器 bug
trait Trait {
fn abs(self) -> Self;
}
impl Trait for i64 {
fn abs(self) -> Self {
2 * self
}
}
fn main() {
let x = 42;
println!("{}", x.abs());
println!("{}", x.abs());
}
输出:
84
42
第一次
x.abs()
调用了 Trait::abs
第二次
x.abs()
调用了 core::num::abs
IDE rust-analyzer的 hint 和反汇编均证明了这一点(
https://github.com/rust-lang/rust/issues/121453
GitHub
Surprising non-idempotent behavior on `{integer}` inference + method resolution · Issue #121453 · rust-lang/rust
Excerpt from Zulip (originally https://rust-lang.zulipchat.com/#narrow/stream/144729-t-types/topic/Question.20from.20t-spec/near/422487076): trait Trait { fn abs(self) -> Self; } impl Trait for ...
Forwarded from &'a ::rynco::UntitledChannel (Rynco Maekawa)
#PL #Rust #OS #Linux | Ubuntu 从 25.10 开始将会使用 uutils 替代 GNU coreutils。
https://www.osnews.com/story/141908/ubuntu-to-replace-classic-coreutils-and-more-with-new-rust-based-alternatives/
https://www.osnews.com/story/141908/ubuntu-to-replace-classic-coreutils-and-more-with-new-rust-based-alternatives/
Forwarded from AIGC
[$] Asterinas: a new Linux-compatible kernel project
中国南方科技大学团队开发了名为Asterinas的新型Linux兼容内核项目。该项目采用Rust语言编写,基于"框架内核架构"设计理念,试图融合单体内核与微内核的优势。
Asterinas与Rust for Linux项目有部分目标重叠,但采取了不同的技术路线。该项目保持与Linux ABI兼容,旨在通过Rust语言的安全特性提升系统可靠性。
原文链接:https://lwn.net/Articles/1022920/
#Linux #操作系统 #Rust #内核开发 #开源项目
#AIGC
Read more
中国南方科技大学团队开发了名为Asterinas的新型Linux兼容内核项目。该项目采用Rust语言编写,基于"框架内核架构"设计理念,试图融合单体内核与微内核的优势。
Asterinas与Rust for Linux项目有部分目标重叠,但采取了不同的技术路线。该项目保持与Linux ABI兼容,旨在通过Rust语言的安全特性提升系统可靠性。
原文链接:https://lwn.net/Articles/1022920/
#Linux #操作系统 #Rust #内核开发 #开源项目
#AIGC
Read more