前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【Rust日报】2020-03-10 - A C# programmer 尝试 Rust - Part 1

【Rust日报】2020-03-10 - A C# programmer 尝试 Rust - Part 1

作者头像
MikeLoveRust
发布2020-03-12 20:23:38
3920
发布2020-03-12 20:23:38
举报

对 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

推荐阅读。

附带赠送一个小小的性能评测。

代码语言:javascript
复制
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

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2020-03-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Rust语言学习交流 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 对 Rust build pattern 的新思考 - Init Struct Pattern
  • 用 Rust 写的 NATS 监控 web app
  • Cloudsmith 支持直接上传 Cargo 包到他们的云平台
  • A C# programmer 尝试 Rust - Part 1
  • wasm-tetris - Rust 写的 Tetris 克隆
相关产品与服务
NAT 网关
NAT 网关(NAT Gateway)提供 IP 地址转换服务,为腾讯云内资源提供高性能的 Internet 访问服务。通过 NAT 网关,在腾讯云上的资源可以更安全的访问 Internet,保护私有网络信息不直接暴露公网;您也可以通过 NAT 网关实现海量的公网访问,最大支持1000万以上的并发连接数;NAT 网关还支持 IP 级流量管控,可实时查看流量数据,帮助您快速定位异常流量,排查网络故障。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档