【Rust日报】2023-02-08 Rustproofing Linux
2023-03-07 09:14:44 时间
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条:
- Create a single repository containing both Rust and Python projects
- Use maturin & PyO3 to create Python-callable translator functions in Rust
- Have the Rust translator functions call “nice” Rust functions
- Preallocate memory in Python
- Translate nice Rust error handling into nice Python error handling
- Multithread with Rayon and ndarray::parallel, returning any errors
- Allow users to control the number of parallel threads
- Translate nice dynamically-type Python functions into nice Rust generic functions
- 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到底有什么优势。
文章有四篇,强烈建议阅读学习:
- Part 1 – Leaking Addresses:https://research.nccgroup.com/2023/02/06/rustproofing-linux-part-1-4-leaking-addresses/
- Part 2 – Race Conditions(待写)
- Part 3 – Integer Overflows(待写)
- Part 4 – Shared Memory(待写)
tui-rs 需要人接手维护
tui-rs 作者貌似跑路(不出现)了。大家在商讨如何接手推进的事情。
https://github.com/fdehau/tui-rs/issues/654
相关文章
- 基于 ElasticSearch 服务对 Application Load Balancer 日志做可视化分析
- 三星公司利用 Fargate 与 ECR 构建高安全性开发者门户
- 使用自定义词汇表与 Amazon Augmented AI,提升 Amazon Transcribe 的语音到文本转录效能
- 在筹备中;位于印度海得拉巴的 AWS 区域
- 新增功能 – 使用 Amazon EventBridge 存档和重播事件
- Amazon MQ 更新 – 新的 RabbitMQ 消息代理服务
- 计划中 – 位于瑞士苏黎世的新 AWS 区域
- java Thread interrupt()
- 2020 年 Amazon Prime 会员日 – 由 AWS 提供支持
- Amazon SNS FIFO(先进先出)发布/订阅消息传递简介
- CloudWatch 警报和 OpsCenter 的全新集成
- 使用 SAML 和 Keycloak 建立 AWS SSO 登录 Console
- Amazon Personalize 现将快速变化的新产品与全新内容目录的个性化推荐效果提升达50%
- 自建 Kubernetes 集群提交和管理 Amazon SageMaker 训练任务(一)SageMaker Operator 安装及任务提交
- 公开预览 – AWS Distro for OpenTelemetry
- 基于 Chef InSpec 的基础设施测试
- 使用 AWS CDK 结合 OPA 实现“策略即代码”
- 利用 Slack 和 AWS AppStream2.0 集成进行 AppStream2.0 Fleet 队列管理
- 新增功能 — 使用 AWS PrivateLink 通过 AWS 专用网络访问 AWS Lambda
- 利用 Auto Scaling Group 生命周期功能实现有状态应用的管理