Rust 国外学校使用 rust 来上操作系统课程

crazyjin · 2015年07月08日 · 最后由 waytohigh 回复于 2017年04月12日 · 9469 次阅读

原帖地址:Using Rust for an Undergraduate OS Course 里边详细描述 rust 的优缺点,以及与其它语言的对比。

课程结束后的总结:

In summary, I really enjoyed using Rust and think it is a very promising language with a lot of potential for teaching, as well as for industrial systems programming.

It is irresponsible for universities to continue to teach students to write C code riddled with security vulnerabilities, memory leaks, and race conditions. There are good alternatives available, and Rust appears to be the most promising to me, but I hope others will explore both ways to teach students to write safe C code as well as different languages for teaching systems programming that don't suffer from the legacy flaws of C.

翻译: 总的来说,我很享受 rust, 它是一门非常有前途的语言。它在教学方面很有潜力,在商业程序设计上也一样。

在大学里继续教学生写充满了安全问题/内存泄漏/竞争状态的 c 代码是不负责任的。有很多编程语言可以替代 c, 而 rust 在我看来是最有前途的。但是我希望其他认在教学生去写安全的代码的同时也用其它语言去教学生操作系统编程而不必忍受 c 的缺陷。

它在教学方面很有潜力

我是通过这个课入坑 rust 的,这个课用的 0.8,语法上和 1.0 以后差别很大。1.0 以后 rust 的语法借鉴 ruby 的味道十分明显。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号