Mateusz Pusz

Results 651 comments of Mateusz Pusz

> Concurrency is hard and the total lack of warnings, static checks and support form compilers is offending. Do you mean C++ in general or something specific with this simple...

> The main issue is that it is returning a reference to a scope that has ended. The library should return a reference only in case of `task`. Otherwise, it...

> Basically it means that if one thread got the std::binary_semaphore signaling the value is ready the value it then reads might not be, unless explicit memory fence synchronization is...

Well, we could argue if that is a valid formula. In the link you provided, it is explicitly stated that `d` is a "distance covered" which is different from the...

I would like to mention that without introducing `norm`, `vector_product`, and `scalar_product`, it is nearly impossible to make any vector quantities like (velocity, acceleration, force, moment of force) work correctly...

We also probably should refactor our [tree of quantities of kind length](https://mpusz.github.io/mp-units/latest/users_guide/framework_basics/systems_of_quantities/#system-of-quantities-is-not-only-about-kinds) to something like: ```mermaid flowchart TD length["length[m]"] length --- width["width / breadth"] length --- height["height / depth /...

We can't rename ISQ quantities. Their names are standardized. A user can always provide an alternative name with: ```cpp constexpr auto velocity_vector = velocity; ``` Also, a helper for `norm(isq::displacement)`...

Looking at the tree above and discussing the problem with automotive experts in the ISO C++ Committee who know mp-units really well already, we decided to redefine `speed` to: ```cpp...

Now the question is, does passing a `norm(isq::position_vector)` make any physical sense? It will compile, but it probably is not a correct behavior. Despite `radial_distance` being defined as : >...

Yes, it means exactly that. Separate tree is not an option. Displacement and position vector are still quantities of length and they are measured in metres. I considered putting them...