News for hackers. Stuff that matters.
Re:Implementing Mario's Stack Blur 15 times in C++ (with tes... by sudara on Friday November 10, 2023 @10:58AM (#38220436)
Probably! The dequeue implementation was just for fun, as I miss working in higher level languages :) Home cooked circular buffers is usually how one usually sees real-time audio code written... I haven't had much hands on experience with std::span, but seeing as it's a non-owning view, maybe it would be perfect?
Re:Implementing Mario's Stack Blur 15 times in C++ (with tes... by lionkor on Friday November 10, 2023 @12:21PM (#38221581)
I must confess I didnt read the whole article yet, but yeah, if you are looking for a view onto some data, spans are awesome and surprisingly easy to use