【Rust日報】2020-03-10 – A C# programmer 嘗試 Rust – Part 1
- 2020 年 3 月 12 日
- 筆記
對 Rust build pattern 的新思考 – Init Struct Pattern
文章淺顯易懂,有一些有價值的思考,推薦閱讀:
https://xaeroxe.github.io/init-struct-pattern/
用 Rust 寫的 NATS 監控 web app
Rust warp web框架寫的後端。NATS[https://nats.io/]
NATS.io is a simple, secure and high performance open source messaging system for cloud native applications, IoT messaging, and microservices architectures.
https://github.com/sphqxe/NATS-WebUI
Cloudsmith 支持直接上傳 Cargo 包到他們的雲平台
可以直接使用 cargo publish 上傳。
構建私源( a private 『single source of truth』 )的幾個優點,他寫了:
- Can be managed, secured and controlled in a systematic way
- Is available to teams and individuals within the organization anywhere in the world via a 『web-scale』 cloud infrastructure
- Can be distributed on a commercial/licensed basis if necessary on the same basis
- Supports assets all common languages and formats (Rust and Cargo being just one of dozens of supported formats)
https://blog.cloudsmith.io/2020/03/09/announcing-native-cargo-uploads-in-cloudsmith/
A C# programmer 嘗試 Rust – Part 1
推薦閱讀。
附帶贈送一個小小的性能評測。
Test Elapsed Milliseconds Peak Memory Usage Memory Usage After Processing Memory Usage After Gen2 GC C# - Imperative 5444 3.4GB 3.4GB 2.05GB C# - Declarative 6785 3.2GB 3.2GB 1.9GB Rust - Declarative 2851 859MB 464MB N/A
https://treit.github.io/programming,/rust,/c%23/2020/03/06/StartingRust.html
wasm-tetris – Rust 寫的 Tetris 克隆
俄羅斯方塊啦,網頁上運行的。
https://github.com/ha-shine/wasm-tetris