-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #512 from yHan234/master
add blog 2024a-stage1/2-yhan234
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: 2024a-stage1-blog-yhan234.md | ||
date: 2024-11-07 23:44:14 | ||
tags: | ||
- author:yHan234 | ||
- repo:https://github.com/LearningOS/rust-rustlings-2024-autumn-yHan234 | ||
--- | ||
|
||
## Rustlings 总结 | ||
|
||
在本次训练营之前都是写的 C/C++,也接触过一点 Rust,读了点官方教程,尝试用它写过几道力扣,感觉非常的痛苦,后来就没有再用了。 | ||
|
||
这次训练营第一次知道有 Rustlings 这个东西,通过 100 多道题来慢慢带新手入门,合理的难度设置加上之前的一点基础,让我基本熟悉了 Rust 的使用。 | ||
|
||
现在已经能够熟练编写 Rust 基础代码,使用所有权、泛型、Trait 等特性。但是标准库和各种高级用法如宏定义等还不太熟悉,用来完成 rCore 是够用了。 | ||
|
||
这次训练营的确让我喜欢上了 Rust,写代码不用考虑悬垂指针、内存泄露,以及优秀的包管理,写起来真是太爽了。期待以后使用 Rust 进行更多的项目! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: 2024a-stage2-blog-yhan234 | ||
date: 2024-11-08 00:00:15 | ||
tags: | ||
- author:yHan234 | ||
- repo:https://github.com/LearningOS/2024a-rcore-yHan234 | ||
--- | ||
|
||
## rCore 总结 | ||
|
||
实验文档的第一句说:*从零开始*写一个内核,但后来发现并不是让学生真的从零开始写,只是在写好的内核上添加功能,有一点点失望,但还是学到了很多。 | ||
|
||
本次实验让我学到了: | ||
|
||
- Rust 的一些编程技巧,如 UPSafeCell。 | ||
- RISC-V 的特权级机制 | ||
- 使用上下文保存/恢复来进行多道程序调度 | ||
- SV39 多级页表机制及在内核中的实现 | ||
- shell 的原理:fork + exec | ||
- 文件系统的原理:inode + ... | ||
- 并发同步互斥的原理 | ||
|
||
虽然没有感觉理解得非常深入,但感谢 rCore 带我在操作系统领域入了门,让我对之后的阶段有更多期待。 |