598 karma · joined November 7, 2018
Screen diameter is in general a bit misleading figure for phones from different generations as "full screen" phones tend to have a taller aspect ratio and hence larger diameter even with same body dimensions.
(C++ arrays are different from arrays in many other programming languages, though not necessarily Rust, in that their type specifies their length, so in a way this is something you already "have" but certainly there are cases where it is convenient to "get" this information from an object.)
You could write even more complex declarators (but don't have to), but that would not prove that some other syntax is inherently intuitive. Case in point, I cannot parse the Go syntax as I do not know Go.
In my experience pointers to arrays are rather uncommon and I'm not sure that I've ever written a function returning one, having even less of a need for a pointer to such. (Thus out of all these, only your first example is somewhat common in practice.)
I happened to notice this via a result mismatch as GNU wc does count NBSPs as word separators. Even though it uses iswspace, it also additionally checks for a hard coded set of Unicode non-breaking spaces.
(I have to say I'm a bit surprised at being at getting voted hidden here. I thought this was mostly related to the topic at hand. I would of course gladly be corrected if mistaken about the details.)
Aka "my opinions are the objective viewpoint".
>They are the primary destructive force in society
Hyperbolic nonsense.
Today's mobile society with cars is better than anything else that has ever existed.
Modern oils can easily last 20000 km (if you'd want, you could only change the oil every other time you change the filter) barring particularly harsh conditions or poor and obsolete engine design. Also, lots of driving (as in typically longer trips) means the oil lasts better.
Oil changes are a common nuisance only if you make them one.
I revisited the challenge some years later, and managed to achieve a little over 200 MH/s per core on a 2013 CPU. I'd expect (or at least hope) for modern very high-end CPUs to reach somewhere between 5000-10000 MH/s when using all cores, using a similar decently optimized solution. (The thing you want to optimize is the hashing part.) A high-end GPU from 2016 should manage at least 10000 MH/s and more modern ones are likely to be several times faster.
It doesn't even feel that bad once you get past the slump in the 20-24 h region.
PV produces absolutely nothing when electricity is most used and absolutely necessary (midwinter).
Hydro capacity in Finland is at its maximum potential and even now cannot make up for times when wind is producing close to nothing.
Also, all these workarounds cost money -- some of them, lots of it. For TVO, Olkiluoto 3 costs roughly 5B euros for 1.6GW of nuclear.