< 返回版块

Mike Tang 发表于 2023-02-08 22:24

Rust面向对象研究 - 封装

在本篇中,作者对面向对象做了初步的介绍,并用代码展示了Rust的基本封装方法。

https://www.thecodedmessage.com/posts/oop-1-encapsulation/

Rust面向对象研究 - 多态

在本篇中,作者对面向对象理论的第二根支柱——多态——进行了实践研究。

https://www.thecodedmessage.com/posts/oop-2-polymorphism/

sniffnet - Rust实现的网络监控工具

界面非常不错,现在发布了v1.1版,功能更加完整。

使用Rust为Python写扩展的9条原则

Bed-Reader(一个Py生物信息学库)的作者总结的经验教训,包含9条:

  1. Create a single repository containing both Rust and Python projects
  2. Use maturin & PyO3 to create Python-callable translator functions in Rust
  3. Have the Rust translator functions call “nice” Rust functions
  4. Preallocate memory in Python
  5. Translate nice Rust error handling into nice Python error handling
  6. Multithread with Rayon and ndarray::parallel, returning any errors
  7. Allow users to control the number of parallel threads
  8. Translate nice dynamically-type Python functions into nice Rust generic functions
  9. Create both Rust and Python tests

https://towardsdatascience.com/nine-rules-for-writing-python-extensions-in-rust-d35ea3a4ec29

Matrix 2.0 官方正在引入Rust

Matrix 就是那个 Fediverse 的聊天网络。之前的Home server - Synapse 是用python写的。现在准备一点一点分模块使用Rust进行性能优化。另外一个出现的地方是SDK,使用Rust替换了之前js实现的密码学的部分。

另外还有一个第三方的Home server实现是用Rust写的:https://conduit.rs

https://github.com/matrix-org/synapse

Rustproofing Linux

这是一个系列文章,基于Rust已进入Linux kernel。此团队将研究如何将C驱动迁移到Rust上来的最佳实践。当然在迁移过程中,也会对比采用Rust来写driver到底有什么优势。

文章有四篇,强烈建议阅读学习:

tui-rs 需要人接手维护

tui-rs 作者貌似跑路(不出现)了。大家在商讨如何接手推进的事情。

https://github.com/fdehau/tui-rs/issues/654

--
From 日报小组 Mike

社区学习交流平台订阅:

  • Rust.cc 论坛: 支持 rss
  • 微信公众号:Rust 语言中文社区

评论区

写评论

还没有评论

1 共 0 条评论, 1 页