HN user

eMSF

598 karma
Posts0
Comments244
View on HN
No posts found.
iPhone Air 11 months ago

Even with a 5" screen, it was bigger than for example iPhone 17 in every single dimension due to its hefty bezels (and not insignificantly so; iPhone 17 is closer in width to iPhone 13 Mini than a Dell Streak).

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.

While it is true that only class types have member functions in C++, that does not mean that objects of other types demand the use of macros. C++ also supports non-member functions, and the standard library contains a fair amount of these; including `std::size` that can be used to "get" the length of an array.

(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.)

How could you ever continue after the second statement without checking if you actually read an integer or not? How would you know what you can do with a?

Well, obviously it doesn't have parentheses. It's not like this is the only instance where adding parentheses affects the end result.

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.)

ABP was initially released almost a full decade before UBO was a thing (although I don't know if the Chrome version is related), so I wouldn't judge someone for just using it...

The Finnish caption is quite a bit worse than "all your base are belong to us" type of invalid grammar. Translating it back, even with best intentions (ignoring the naive attempt of translating "from" in place) it reads "Create images from AI generated words".

A lot of folks write char const * (and T const& in C++), and the "rule of thumb" is to read the declaration right to left. In this case, pointer (to) const char. Works also with multiple consts or levels of indirection.

Block heaters can be used to heat the engine coolant (and afterwards the cabin) with or without running the engine. I doubt any cars have special batteries for these (even a drive battery of a non-plugin hybrid is somewhat small to be useful); block heaters that don't require external electricity simply use the car's fuel in an auxiliary burner.

While writing a fancy word counter I learnt that glibc iswspace (or the glibc locale data) actually does not consider non-breaking spaces as, well, spaces even when using a Unicode locale. This apparently conforms to ISO 30112. (For example MSVCRT does do so.)

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.)

The type of the expression 'x' is int, not char (in C). The type of an expression consisting of a variable name is the type of the variable (as far as sizeof is concerned).

That may have been the case sometime between the World Wars, but the only reason you'd do that these days is if you particularly enjoy visiting the shop.

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.

A local community had a rather similar programming challenge years ago (although it was limited to digits-only/letters-only and pi-digits categories).

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.

You only have one life. If you want to spend it using public transport, going through places you aren't visiting and stopping at stops you are not leaving at, then go right ahead (by the way, these are the main reasons why using public transport is slower almost everywhere). I'd rather spend that time doing something I enjoy.

Hard Reset 4 years ago

Agreed. I can't even tell if the circle is the worst thing, but it doesn't behave like a cursor as it moves off the screen while scrolling, but jumps back (with visual noise) when the mouse if moved even 1px. Anyway, this grabbed my focus and I did not finish reading the article.

You'd gave to be quite lucky to buy a high-power GPU like that which, under load, wouldn't have coil whine significantly louder than quiet case fans. (GPU fans usually aren't that quiet even at lowest operating speeds but these days 0rpm modes on low loads are pretty much a standard feature.)

PCs usually aren't completely silent under load anyway (at least none that I've owned). No fan is silent at nominal voltage (and unmodulated) but when slowed down to a low enough RPM they can easily be less audible than GPU coils, many monitors, powered on speakers, room lighting, ... (and "more silent" than a powerful PC's static parts under load).

I can't believe physical exhaustion is not at least as important a part in this. Personally, I skip a night's sleep every now and then to readjust my sleeping patterns, and I've never experienced anything strange after something like 32-36 hours without sleep (but note: no significant physical exertion involved).

It doesn't even feel that bad once you get past the slump in the 20-24 h region.

Not as much as you'd think. While someone may always have wind or sun, at times that someone is unfeasibly far from Northern Europe. (Low wind conditions in all of Nordics, and to some extent even all over Europe are quite possible.)

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.

It only seems bonkers to you because you're so wildly off the mark. Finland currently has over 4GW of installed wind power capacity, but there have been not just hours but entire days where wind power production has been less than one hundredth of that -- last Thursday's problems were aggravated by such a situation. 9GW of installed capacity will absolutely not guarantee 1GW at all times -- not even close.