Wasmer 2.1.0 釋出
經過幾個月的工作,WASMER 釋出了 2.1 版本。包含一些新功能和錯誤修複,包括:
- Wasmer Js.
- 虛拟檔案系統
- iOS 支援
- Windows 下支援 Singlepass 編譯
- LLVM ARM64 支援 & LLVM 13
- 更快的 Singlepass 編譯
- 可重複和确定性建構
- 新語言內建:LISP 和 Crystal
Wasmer 2.1: https://wasmer.io/posts/wasmer-2.1
Rust 的 Mutex 真的比 C++ 慢嗎?
作者試圖對比 Rust 和 C++ 中 Mutex 的性能,結果發現 Rust 中的 Mutex 比 C++ 慢了大概 30 倍。
經過讨論,現階段的結論是:C++ 可能存在一些作弊現象。在将所有東西包裝在一個線程中後,Rust 與 C++ 在 Mutex 上具有相當的性能。
Reddit - Why is std::sync::Mutex 60-70x time slower than C++'s std::mutex?: https://www.reddit.com/r/rust/comments/r75wm6/why_is_stdsyncmutex_6070x_time_slower_than_cs/
This Week in Rust 419
新一期的 Rust 周報速遞釋出,快來看看有哪些内容你曾經關注過 :)
This Week in Rust 419: https://this-week-in-rust.org/blog/2021/12/01/this-week-in-rust-419/
- Rust.cc 論壇: 支援 rss
- 微信公衆号:Rust 語言中文社群