News for hackers. Stuff that matters.
Re:Building a Website with C++ by steveklabnik on Saturday January 20, 2018 @02:03PM (#16194806)
Rust is more than just safety though. We had a huge community discussion last year: https://brson.github.io/fireflowers/
Re:Building a Website with C++ by fauigerzigerk on Saturday January 20, 2018 @02:39PM (#16195008)
I know it's more than that. But what you can't do, in my opinion, is love Rust for its other modern features and merely tolerate the new approach to memory management.

Memory management in Rust is so dominant in terms of syntax and in terms of restrictions imposed on common idioms that it must be either embraced or rejected wholeheartedly.

This is just my personal opinion obviously, not any sort of truth or prediction.

Re:Building a Website with C++ by duneroadrunner on Saturday January 20, 2018 @04:06PM (#16195431)
Two main components of Rust's approach to memory management are i) the imposing/exploiting of scope lifetimes on objects and references, and ii) the restriction that a mutable reference may not co-exist with any other references (to the same object).

I suggest that with C++ there is kind of the option of embracing the former, without so much of the latter, to achieve a performance-safety combination that is closer to Rust's than current "modern C++" practices. That's sort of the premise of the SaferCPlusPlus library [1]. If you're a C++ programmer, the barrier to adoption is low. Though without a "borrow checker" or something equivalent, you wouldn't be able to match Rust's performance-safety combination in all cases.

[1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus

edit: edited the link

Re:Building a Website with C++ by steveklabnik on Saturday January 20, 2018 @03:23PM (#16195216)
Yeah, I totally hear you. I shared that opinion too, but, surprisingly enough, it seems to some degree that that's in the minority. Or at least, there's a pretty significant number of people who do "love Ruts for its other modern features and merely tolerate the new approach to memory management."

I feel that way myself now, but figured that I was just too close to have a mainstream opinion about it :)

Re:Building a Website with C++ by fauigerzigerk on Saturday January 20, 2018 @03:36PM (#16195280)
That's good to know. Perhaps I just need more practice then.