I refuse to believe this was written by actual practitioners in the field
I refuse to believe this was written by actual practitioners in the field
I don't know where these numbers are coming from. "optimistically" 2000 lines/developer-year?????
I just finished a year at Oxide and in the main repo I've worked on, to which I've dedicated around half of my time, GitHub says my contributions are +82,102/-50,485 lines. The rest of my time was spent in reviews, other repos, doing design work, written documents, presentations, and so on (all things that are part of the job with senior+ engineers).
@rain That comment seems to assume that a port/rewrite is all-or-nothing? One of the killer features of Rust, for me, was that it allowed leaving a C project halfway-ported and it was always kept working. Porting first the most critical parts for memory safety - parsers - gave us peace of mind to continue porting the rest at leisure.
At least for librsvg, I'd say memory safety was nice and all, but the real benefits came from better tooling (cargo test!), and better data representation.
@rain FWIW this lifts a lot of language from this other document, which *does* have a byline: H. Hinnant, R. Orr, B. Stroustrup, D. Vandevoorde, M. Wong
I thought I recognized the "we at C++ do not advertise and that's why we're falling behind" crap from somewhere.
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2759r1.pdf
@rain Yeah, that article also throws in
"Rust, originally from Mozilla, built on top of C++ became
the poster child of a safe browser language." Missing comma in original.
Rust: it's bad, but also we're going to insert a grammatically-incorrect clause taking some credit for it.
@rain here's a pretty good post that picks that apart the same way I would have, but is already written by someone else.
The NSA recently published a Cybersecurity Information Sheet about the importance of memory safety, where they recommended moving from memory-unsafe programming languages (like C and C++) to memory-safe ones (like Rust). Dr. Bjarne Stroustrup, the original creator of C++, has made some waves with his response. To be honest, I was disappointed. As a current die-hard Rustacean and former die-hard C++ programmer, I have thought (and blogged) quite a bit about the topic of Rust vs C++.
The lifetime of temporaries in Rust is a complicated but often ignored topic. In simple cases, Rust keeps temporaries around for exactly long enough, such that we don’t have to think about them. However, there are plenty of cases were we might not get exactly what we want, right away. In this post, we (re)discover the rules for the lifetime of temporaries, go over a few use cases for temporary lifetime extension, and explore a new language idea, super let, to give us more control.
std::mem::drop reaction: