Problems with adding a `lazy` keyword to C#

I am curious what kind of considerations a feature such as this should have to go through. First off, I write a blog about this subject, amongst others. See my old blog: http://blogs.msdn.com/b/ericlippert/ and my new blog: http://ericlippert.com for many articles on various aspects of language design. Second, the C# design process is now open … Read more

How to kill process on GPUs with PID in nvidia-smi using keyword?

The accepted answer doesn’t work for me, probably because nvidia-smi has different formats across different versions/hardware. I’m using a much cleaner command: nvidia-smi | grep ‘python’ | awk ‘{ print $3 }’ | xargs -n1 kill -9 You can replace $3 in the awk expression to fit your nvidia-smi output. It is the n-th column … Read more

Does the ‘mutable’ keyword have any purpose other than allowing a data member to be modified by a const member function?

It allows the differentiation of bitwise const and logical const. Logical const is when an object doesn’t change in a way that is visible through the public interface, like your locking example. Another example would be a class that computes a value the first time it is requested, and caches the result. Since c++11 mutable … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)