Forwarded from Блог*
#prog
В C++ в наследство от C достались операторы инкремента и декремента (
Если это не костыль, то я даже не знаю, как это назвать.
stackoverflow.com/questions/15244094/c-overloading-for-both-pre-and-post-increment
В C++ в наследство от C достались операторы инкремента и декремента (
++ и --). Как и любые операторы, их можно перегружать для своих типов. Но есть один нюанс: как различать префиксный и постфиксный инкременты? В C++ решение таково: префиксный оператор не принимает аргументов, а постфиксный принимает неиспользуемый параметр типа int.Если это не костыль, то я даже не знаю, как это назвать.
stackoverflow.com/questions/15244094/c-overloading-for-both-pre-and-post-increment
Stack Overflow
C++: overloading ++ for both pre and post increment
Can we overload operator++ for pre-increment and post-increment? i.e. calling SampleObject++ and ++SampleObject results correctly.
class CSample {
public:
int m_iValue; // just to directly
class CSample {
public:
int m_iValue; // just to directly
Forwarded from Блог*
#prog #rust
Статья об опыте использования Rust в софте для видеоконференций, который, по словам разработчиков, превосходит по малости задержки все альтернативные решения.
Experiencing no software-related downtime so far is both a pleasant surprise, and a testament to the safety provided by Rust's guarantees. Rust has also made it easy to write performant code with efficient resource usage - both our CPU and memory usage has been predictable and consistent. Without a garbage collector, we can guarantee consistent latency and frame rates.
Our experience maintaining a Rust codebase has also been great. We've been able to introduce significant improvements to our latency through sizable changes to our codebase with confidence. A clean compile doesn't always imply everything will work, but honestly, that's been the case more often than not.
blog.tonari.no/why-we-love-rust
Статья об опыте использования Rust в софте для видеоконференций, который, по словам разработчиков, превосходит по малости задержки все альтернативные решения.
Experiencing no software-related downtime so far is both a pleasant surprise, and a testament to the safety provided by Rust's guarantees. Rust has also made it easy to write performant code with efficient resource usage - both our CPU and memory usage has been predictable and consistent. Without a garbage collector, we can guarantee consistent latency and frame rates.
Our experience maintaining a Rust codebase has also been great. We've been able to introduce significant improvements to our latency through sizable changes to our codebase with confidence. A clean compile doesn't always imply everything will work, but honestly, that's been the case more often than not.
blog.tonari.no/why-we-love-rust
blog.tonari.no
3K, 60fps, 130ms: achieving it with Rust | tonari blog
How we chose the Rust programming language to advance the state-of-the-art in real-time communication
Forwarded from Блог*
#prog #rust
Начался опрос о состоянии Rust в 2020 году: https://blog.rust-lang.org/2020/09/10/survey-launch.html. Рекомендую поучаствовать, если вы как-то связаны с Rust. Если что, опрос доступен на нескольких языках, в том числе на русском.
Начался опрос о состоянии Rust в 2020 году: https://blog.rust-lang.org/2020/09/10/survey-launch.html. Рекомендую поучаствовать, если вы как-то связаны с Rust. Если что, опрос доступен на нескольких языках, в том числе на русском.
blog.rust-lang.org
Launching the 2020 State of Rust Survey | Rust Blog
Empowering everyone to build reliable and efficient software.