r/rust • u/small_kimono • Aug 29 '24
One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"
https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
586
Upvotes
r/rust • u/small_kimono • Aug 29 '24
-25
u/maxjmartin Aug 29 '24
To my knowledge Rust is dependent on C++ for at least a portion of itself. Recently I was wondering if C++ expression templates could be used as a wrapper around the internal implementation of many of Rusts data types. Simply because the simple code I wrote in C++ gave me around the performance I see with methods like zip for example in Rust. Hope that clarifies.
If Rust does depend on C++ for a portion of itself then C++ will never go away. Instead it will evolve. This has happened with other languages. JavaScript for one. C++ for another. C++ code written in Cxx20 is different than the renaissance that Cxx11 was. Which is completely different than Cxx98. In that sense C++ will I’m sure get a memory and borrow checker at compile time. Along with rewriting the standard to remove UDB.
Concepts and Traits are a good example of this evolution.
I really like OOP. But I LOVE functional programming. So for me combining the two makes for a solid workflow and environment. Basically OOP is no different from FP. The methods of an object are simply postscript function invocation using dot method invocation. Or using infix operations by passing an argument.
So having a thing that can be reasoned in that way means that it is easier to manipulate. A Vec is an object. Which can be vec.zip(), vec.push(x), or sum(vec). We naturally just think about things as objects. The concept of a bit is an object. And just think about what reason about it like that has accomplished. There will always be OOP.