rust-based-os-comp2022 icon indicating copy to clipboard operation
rust-based-os-comp2022 copied to clipboard

[2022开源操作系统训练营](https://learningos.github.io/rust-based-os-comp2022/)

Results 102 rust-based-os-comp2022 issues
Sort by recently updated
recently updated
newest added

通过rust-init进行安装,一切顺利 在第二步vscode环境配置上:rust-anlalyser一直安装不上:通过https://www.jianshu.com/p/567efc9fd871提示离线安装成功;安装失败的原因是rust-analyser版本与现在的vscode不一致。从githuba下载了低版本。 然后是编译失败报 linker `link.exe` not found。但明明已经安装了visual studio 2009.后来通过https://blog.csdn.net/jimo_lonely/article/details/122013975换了一种才编译成功原因不明

note

阅读到2.3章节:对于语句和表达式的用法还是不太甚解。只能后面多敲代码来体会。 if的引用和Java很不一样。

note

https://github.com/TwistzzLuffy/Daily_Schedule/blob/main/README.md

note

https://learningos.github.io/rust-based-os-comp2022/chapter1/2remove-std.html 移除main函数部分,未得到预期报错。

question

在看[practical intro to macros](https://danielkeep.github.io/practical-intro-to-macros.html)时看到了这个操作 ``` let mut swap_tmp = next; for i in (0..2).rev() swap(&mut swap_tmp, &mut self.mem[i]); ``` 作者声称用swap的好处是使得上面的代码也可以作用于non-copyable的类型。swap基于unsafe的操作,想问下swap这种使用方式是通常做法么?想不出对 无法copy的类型进行swap操作会用在哪里?储存引用/指针,然后直接swap引用不是更好

question

学习了流程控制和复合类型。 流程控制和java相比 少了括号 其他并无差别 字符串的切片没有搞懂。 元组和数组十分类似容易搞混, 结构体的失效没有搞懂

note

# chapter3练习 - Open-Source-OS-Training-Camp-2022 文档 [https://learningos.github.io/rust-based-os-comp2022/chapter3/5exercise.html](https://learningos.github.io/rust-based-os-comp2022/chapter3/5exercise.html)

## 背景 目前 Issue 中包含了 `提问`, `文档勘误`, `个人学习笔记`, `功能修复讨论` 等诸多类型, 已经不太便于阅读检索了. 需要提供一种方式, 方便地对 Issue 进行分类. ## 使用方法 ### 创建 Issue 采用 Issue Template 和 Label 配合来实现 Issue 分类. 目前预置了 4...

note

# 移除标准库依赖 - Open-Source-OS-Training-Camp-2022 文档 [https://learningos.github.io/rust-based-os-comp2022/chapter1/2remove-std.html](https://learningos.github.io/rust-based-os-comp2022/chapter1/2remove-std.html)

# 构建用户态执行环境 - Open-Source-OS-Training-Camp-2022 文档 [https://learningos.github.io/rust-based-os-comp2022/chapter1/3mini-rt-usrland.html](https://learningos.github.io/rust-based-os-comp2022/chapter1/3mini-rt-usrland.html)