【Rust日报】2020-05-12 Yandex: Rust语言和C++语言安全性和性能操作对比

剑桥大学技术报告 - 《ASAP:静态优先内存管理》

ASAP: As Static As Possible memory management

https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-908.pdf

剑桥大学计算机实验室技术报告,《ASAP:静态优先内存管理》

让LLVM再次更快起来

Make LLVM fast again

https://nikic.github.io/2020/05/10/Make-LLVM-fast-again.html

因为有报告显示LLVM V10编译Rust语言性能居然降低了10%。虽然LLVM的主要目的是编译Clang的C/C++,但是还有有必要让LLVM跑起来更快才行。

测试Rust异步函数的两种简单的方法

2 Easy Ways To Test async Functions

https://blog.x5ff.xyz/blog/async-tests-tokio-rust/

技术文章描述测试Rust异步函数的两种简单的方法。

用Rust语言写Wayland排版器 - 下一代Linux的X11图形库和UI界面的组件

Writing A Wayland Compositor In Rust

https://wiki.alopex.li/WritingAWaylandCompositorInRust

Wayland是Linux的下一代API,用于取代X11图形库和UI。Wayland的排版器叫Way Cooler. Wayland is Linux’s next-gen API to replace X11 for graphics and user interaction, so this was pretty cool, two next-gen technologies playing nice together.

几年前曾经有过Way Cooler放弃Rust语言而改回用C语言做编程语言的事情:https://way-cooler.org/blog/2019/04/29/rewriting-way-cooler-in-c.html

Rust语言和C++语言安全性和性能操作对比

Comparing the safety and performance of operations in Rust and C++

https://www.viva64.com/en/b/0733/

C++ Is Faster and Safer Than Rust: Benchmarked by Yandex

Yandex的Benchmarked分析结果显示:C++比Rust语言更快更安全。大家可以直接仔细看测评报告原文。

这篇文章有意思。更像是站在 C++ 这边的一个高级程序员对 Rust 的吐槽(似贬实褒,找出 Rust 目前可能不足的地方)。内容目录如下:

  • Myth 1. Rust's arithmetic is no safer than C++'s

  • Myth 2. The only strong point of Rust is object lifetime analysis

  • Myth 3. Rust's function calls touch memory without good reason

  • Myth 4. Rust is slower than C++

  • Myth 5. C → C++ — noop, C → Rust — PAIN!!!!!!!

  • Myth 6. unsafe turns off all Rust checks

  • Myth 7. Rust won't help you with C libraries

  • Myth 8. Rust's safety isn't proved

  • Conclusion

LLVM 10 对Rust语言的编译性能衰退

LLVM 10 has performance regressions with Rust

https://lists.llvm.org/pipermail/llvm-dev/2020-May/141482.html

[llvm-dev] 7-8% compile time slowdowns in LLVM 10

[llvm-dev] LLVM 10 对Rust语言的编译性能衰退,同样的输入代码编译时间慢了7-8%。

--

From 日报小组 BobQin

社区学习交流平台订阅:

  • Rustcc论坛: 支持rss

  • 微信公众号:Rust语言中文社区

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值