< 返回版块

PsiACE 发表于 2022-01-14 09:16

Glicol - 以图为导向的音乐实时编程语言

Glicol 可以帮助您使用代码制作音乐。您可以简单地连接不同的节点以形成循环,用 Rust 编写,得益于 WebAssembly,它可以在浏览器中丝滑运行。

glicol.org: https://glicol.org/

GitHub - glicol: https://github.com/chaosprint/glicol

Rust 1.58.0 稳定版发布

Rust 1.58 在格式字符串中引入了捕获的标识符、对 Windows 上的搜索路径的更改、 #[must_use] 标准库中的更多注释以及一些新的库稳定性。

let (width, precision) = get_format();
for (name, score) in get_scores() {
  println!("{name}: {score:width$.precision$}");
}

另外在 release note里一些编译器和库的改进也值得一看,比如:

  1. *const T 现在可以在 const 上下文中解引用指针
  2. 重新启用调试检查copy和copy_nonoverlapping
  3. 为 Rc 实现了 RefUnwindSafe
  4. 稳定了 relaxed_struct_unsize ,参考:https://github.com/rust-lang/rust/issues/81793
  5. Rust 编译器支持 LLVM CFI (Control-flow integrity ,控制流完整性) , CFI 通过检查确保间接函数调用(indirect function call)未被攻击者修改过,从而堵住系统漏洞。

(感谢张汉东老师供稿)

Announcing Rust 1.58.0: https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html

Changelog - Version 1.58.0 (2022-01-13): https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1580-2022-01-13

This Week in Rust 425

新一期的 Rust 周报速递发布,快来看看有哪些内容你曾经关注过 :)

This Week in Rust 425: https://this-week-in-rust.org/blog/2022/01/12/this-week-in-rust-425/


From 日报小组 PsiACE

社区学习交流平台订阅:

评论区

写评论
zzliujianbo 2022-01-14 14:13

格式字符串好评!

1 共 1 条评论, 1 页