News for hackers. Stuff that matters.
Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by shmerl on Thursday June 07, 2018 @05:51PM (#17260605)
> It promises a secure memory handling enabled by its principle of zero-cost abstraction.

I thought memory safety comes from enforcing proper memory usage through ownership rules (borrow checker), not through zero cost abstraction, which simply indicates that high level language features are translated into efficient system level code.

Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by tybit on Thursday June 07, 2018 @08:38PM (#17261633)
You are correct, the sentence implies that it is the zero cost abstractions that makes it possible which is not right. The zero cost abstractions part is a nice benefit, but unrelated to ensuring safety.
Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by monocasa on Thursday June 07, 2018 @06:35PM (#17260953)
Well, the borrow checker is a zero cost abstraction. It's enforced at compile time.
Re:A Rust-Based Unikernel: First Version of a Rust-Based LibOS by laughinghan on Thursday June 07, 2018 @06:36PM (#17260963)
I think because said enforcement is done at compile-time (by the borrow checker) and not at runtime, it is considered a zero-cost abstraction by the creators of Rust.