Skip to content

Commit

Permalink
Merge pull request #247 from 255doesnotexist/master
Browse files Browse the repository at this point in the history
+ add 2024春季开源操作系统训练营第一阶段总结报告-255doesnotexist
  • Loading branch information
ZhiyuanSue authored Apr 25, 2024
2 parents c5e7f7b + dd2ed75 commit 0249199
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: 2024春季开源操作系统训练营第一阶段总结报告-255doesnotexist
date: 2024-04-24 10:30:40
tags: rcore
---

# 2024春季开源操作系统训练营第一阶段总结报告

一个月之前其实跟着 The Rust Programming Language 学习过 Rust,从同学那里听过 rustlings,但没有做过。这次有机会搓了一下,对理解的帮助还是挺大的。

## 实验

rustlings 的实验其实挺简单的。基本上跟着编译器和提示都能独立完成。它的 check 也不严格,数据点少、过编译即可。基本上完成质量全靠自觉

Rust 语言的约束,在最后 10 道算法题上还是体现得比较棘手的。一部分数据结构的实现需要套 Arc 甚至 unsafe。这也是所谓“必要的牺牲”吧。此外,生命周期的处理感觉还是不够优雅。有些奇怪的感觉。

除了这 10 题以外,其他部分基本都是语言基本语法、内容的介绍,也包括包管理器的使用,cargo test 的使用。相对来说都是比较基础的内容。只要跟着做就很简单。

# 总结

rustlings 是个很好的 Rust 学习项目,很适合计划做 rCore Lab 的同学入门 Rust 使用。是这样的。没错。

希望后期也能继续跟下去。

0 comments on commit 0249199

Please sign in to comment.