3 ms·
Rust doesn’t handhold you for anything low-level. It’s just that Rust hides all that complexity beneath Unsafe Rust, which is an eldritch language that no one q
by cyber_kinetist 4y ago
Rust doesn’t handhold you for anything low-level. It’s just that Rust hides all that complexity beneath Unsafe Rust, which is an eldritch language that no one quite knows all the rules yet (including things related to undefined behavior…) I hope the MiniRust project (https://github.com/RalfJung/minirust https://github.com/RalfJung/minirust) succeeds in writing a formal spec of it someday.
- b20000 4y agook, so you just confirmed rust does some stuff behind the scenes for you. and that comes at a cost. what is more important is to understand how to architecturally build software and achieve performance and maintainability and so on. i rather spend my limited hours becoming better in a language like c or c++ which is not going away anytime soon than learning syntax, a new way of thinking and a package management system i don’t need.
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- howinteresting 4y agoThe performance ceiling of C++ is substantially lower than that of Rust. For example, it is roughly impossible for humans to use `restrict` with C or C++, while it's a completely normal part of writing Rust (and LLVM optimizations have finally been turned on: https://github.com/rust-lang/rust/issues/54878 https://github.com/rust-lang/rust/issues/54878) Also see https://github.com/rust-lang/rust/pull/103070 https://github.com/rust-lang/rust/pull/103070 and https://reviews.llvm.org/D136659 https://reviews.llvm.org/D136659, which start introducing further Rust-specific optimizations.