HNHacker News
TopNewBestAskShowJobs

YSFEJ4SWJUVU6

67 karma · joined December 10, 2016

submissionscomments
YSFEJ4SWJUVU6··on The Lost Art of C Structure Packing
Any valid pointer values can be compared for equality. Only pointers that point within a single object (like an array, or a struct) can be compared for ordering. Nesting doesn't matter as long as down the line there's a common "parent" of sorts. (That is, if you want to have well-defined behaviour.)

(Edit: and for any pointers that you can compare for ordering, you may also calculate their offset from one another. However, like GP said, in practice you can do that for any pointers on common platforms.)

YSFEJ4SWJUVU6··on The Lost Art of C Structure Packing
Well, you can compare pointers (to distinct objects) too, but only for equality.

(The only in any case not-undefined way of calculating some sort of difference value between such is with the use of the optional uintptr_t, but I'd guess this isn't a sort of undefined behaviour which triggers unwanted compiler tricks, anyway.)

YSFEJ4SWJUVU6··on Useless design features in modern products
Block heaters are used in somewhat milder climates as well – even though a modern ICE will start quite fine at even below -20°C (increasingly more unreliably the lower you go), doing so is somewhat harmful for the engine. (Also, by heating the engine fluids you can also blow some warmer air into the cabin to prevent the windows from frosting when you get inside – not to mention the added comfort.) Actual battery warmers are much rarer I think, but that isn't often an issue as long as you keep your battery well charged (and obviously have a more capable battery to begin with).

The usual recommendation is to start using the block heater even before temperature gets below freezing (for convenience reasons not many people do so).

YSFEJ4SWJUVU6··on MasterCard Ending Signature Requirements
>I think I've had that happen exactly once in my life.

I haven't signed my cards in years. I know they technically say they are not valid unless signed, however it's not a problem around here: on the other hand, many stores will not sell anything with only signature validation any more (PIN+signature was never a thing here, and with PIN your card is not in the interests of cashiers).

YSFEJ4SWJUVU6··on Boom in American Liquified Natural Gas Is Shaking Up the Energy World
A shunned upon line of thought on HN, it seems.
YSFEJ4SWJUVU6··on New Research on How Ride-Hailing Impacts Travel Behavior
Yes, but that doesn't actually prove anything about the safety aspects of switching from public transit to a taxi-like service. The comparison would have to be made like-for-like trips.

However, the risks for both are quite small, and that's why the quite big gap in convenience dominates the equation, anyway.

YSFEJ4SWJUVU6··on Microsoft gives up on Windows 10 Mobile
What was the last Linux laptop you installed a Windows on? (edit: removed unnecessary remark.)

The last laptop I did a clean install of Windows (7) on was a HP netbook. Even though it was a Windows machine, and I used their Windows install disc, it was a miserable experience (because I didn't have the separate driver disc). Not only did not the WLAN work, neither did the Ethernet port: the only way to get online was by using my phone as a Bluetooth dial-up – luckily I had a Symbian device you could do that with. And even then, Windows Update was of no help – I had to navigate to HP's website to download the very separate driver packages for WLAN and Ethernet functionality (and any other packages I can no longer remember).

By the way, with Ubuntu connectivity worked fine out-of-the-box – which is lucky, because although I have used Linux for over a decade as my daily driver, I have never had to install WLAN drivers for one, and probably couldn't. (Nothing could save the slow Atom from offering woeful user experience, though. One of the worst deals I ever had as far as computers go.)

edit: wording and clarification

YSFEJ4SWJUVU6··on Changing Lanes
Don't we? Transit distance with cars, that is?
YSFEJ4SWJUVU6··on The Autocrat's Language
Regarding NPR's choice of words: it is in fact quite common to avoid very direct accusations in politics and news. I really doubt the author came about this for the first time ever, but rather wonder if he detested it as much each and every time earlier.
YSFEJ4SWJUVU6··on Announcing Microsoft Edge for iOS and Android, Microsoft Launcher
One thing that catches me surprisingly often when I use Edge (which is very, very rarely, contributing to this), is that all the browser controls, like Back, stay in focus when you click them until you click something else. I don't think any other common browser has this behaviour, which is why I'm not used to un-focusing them, and the next press of space definitely does something I did not intend it to do.
YSFEJ4SWJUVU6··on Scrolling your website past the iPhone X’s notch
In font sizes yes, other sizes not so much :-) (I couldn't reproduce the issue highlighted in musage's source by altering Firefox' default font size, but perhaps that's an IE only thing.)
YSFEJ4SWJUVU6··on Useful GCC warning options not enabled by -Wall -Wextra
Unintended code (like having both arms of an if-else-statement execute the same action, or a duplicate condition in a logical expression) is sometimes perfectly valid as far as the standard goes. A double condition for example may simply be a result of poor refactoring, and thus the program even works as intended – however, the compiler cannot know that. That's why the helpful warnings flag those statements – -Werror then makes the compiler abort the compilation altogether on any warnings which is clearly not standard-compliant in cases like the one I outlined.

The majority of the warning options showed in the article are intended to find unintended code (which can however perfectly defined if not intended behaviour as opposed to invalid, undefined behaviour). The very basic examples showed for those options also themselves do not contain anything that by itself would make the code not standard-compliant.

YSFEJ4SWJUVU6··on Useful GCC warning options not enabled by -Wall -Wextra
Worth noting that some warning flags (at least when combined with -Werror* ) make the compiler not standard compliant.

* It's been some time since I last partook in language lawyering, and can't remember if standard compliant C compilers are allowed to produce diagnostics, the term used, for well-defined code as long as they also succeed.

YSFEJ4SWJUVU6··on Scrolling your website past the iPhone X’s notch
Slightly smaller than the default font size, with an increased line height.
YSFEJ4SWJUVU6··on Scrolling your website past the iPhone X’s notch
On the small side perhaps, but 175 % would be at the other extreme (unless there's something that causes OP to have even smaller fonts than I have with a monitor with similar pixel pitch). IMO 125 % at the very most should be enough to not get called a not decent sized typeface.
YSFEJ4SWJUVU6··on 19th century cyclists paved the way for modern motorists' roads (2011)
That may be the situation in the U.S. – definitely not comparable in most of the EU.

Also worth bearing in mind that not all the money that goes to road infra for motor vehicles can be attributed to the costs of enabling the use of passenger cars, as at least part of that is needed for other aspects of a functioning society (transport, etc.)

YSFEJ4SWJUVU6··on The tale of aux.c
While GNU's not unix... afaik GNU coreutils' rm has done exactly what you expect it to when given a single dash as an argument for who knows how long.

The problem is names that could be interpreted like options, like '-f' or '--help'.

YSFEJ4SWJUVU6··on Parallel processing with Unix tools
The mentioned tool 'turbo-linecount' is, well, odd. It targets what I'd think is a very niche application of counting lines very fast (a domain usually limited by I/O speed), using a rather complex design... and then manages to throw much of the gained advantage away by using what is perhaps one of the slowest ways of counting newlines in a buffer.
YSFEJ4SWJUVU6··on Readers on food inequality in eastern Europe
>Markets and naked capitalism as solutions go these issues have proven ineffective.

On the contrary. You're mostly making up that there actually is a huge demand for higher priced, higher quality products there, while the fact that no one has gone for that supposed huge and very available market speaks against that being true. That wishes of a small minority are not being catered for doesn't prove anything.

YSFEJ4SWJUVU6··on Taking a full course of antibiotics doesn’t help prevent spread of resistance
He sure can't help calling himself an expert.
YSFEJ4SWJUVU6··on A village where little girls turn into boys aged twelve (2015)
How do these cases prove that – a genetically male person feeling like a male, proving that the exact opposite is true? That conclusion has absolutely no substance if you give it any thought at all.
YSFEJ4SWJUVU6··on W3C abandons consensus, standardizes DRM, EFF resigns
For all the DRM Netflix has pushed down our throats, they still serve many titles (mainly movies and not their own productions) in piss-poor quality with those browsers whose users' freedom they have crippled. And I do mean absolutely awful quality as some titles clock in at less than 1000 kbps which isn't even nowhere near DVD quality.
YSFEJ4SWJUVU6··on Buffett wins $1M decade-old bet that the S&P500 would outperform hedgefunds
That certainly depends on how the law is written. Where I live, the wording is that you are recommended (and on certain roads, required) to stick to the rightmost available lane – which means that you're certainly not breaking the law by driving at the speed limit on the leftmost lane if all the other lanes are already at full capacity, which also makes perfect sense to me. (However, exceeding the speed limit would be against the law in any situation, unless perhaps where you could avoid an accident by doing so – although that may be hard to prove.)
YSFEJ4SWJUVU6··on Google Chrome to stop autoplaying content with sound
>Some news sites do it as well even when you go and Pause the player, it will go on and play ahead after a few seconds

Perhaps even worse than that, some sites (including TIME, at least previously) unpause the video when you scroll.

YSFEJ4SWJUVU6··on ASCII and Unicode quotation marks
>And of course I used ascii analogues to type these into HN :-(

But why, though? To the best of my knowledge, HN supports unicode quite well, including the following quotes: »«›‹„“‚‘ (available with the help of AltGr and sometimes shift from keys y, x, v, b when selecting the German keyboard layout on my computer).

YSFEJ4SWJUVU6··on ASCII and Unicode quotation marks
Worth noting that international layouts (with dead keys) support many of those without the use of compose key (for obvious reasons not your first example – but the € symbol has its own key combination at least where it's commonly used). I admit it might be hard to adjust to caret being a dead key, though.
YSFEJ4SWJUVU6··on NTSB: Tesla’s Autopilot UX a “major role” in fatal Model S crash
There was another accident in China, in a controlled access divided highway where a Tesla failed to notice a maintenance vehicle moving slowly ahead on the side of the road, ended up rear-ending it and killing the driver.[1]

By the way, can you point me to statistics about “traditional fatality rates” at controlled access divided highway in conditions where the line markings are clearly visible? It's dishonest to compare apples to oranges, especially given that a Tesla can't or won't recognize one from the other.

[1] https://www.nytimes.com/2016/09/15/business/fatal-tesla-cras...

YSFEJ4SWJUVU6··on Mercedes-Benz will electrify its entire car lineup by 2022
Which wouldn't come as a surprise on any other community that wasn't as obsessed with Tesla as HN is.

Mercedes (or other German manufacturers) aren't doing this lip service because of Tesla (not everything revolves around them) but because of the situation in Germany. It's a broader topic, but in short the big manufacturers are working together with the government, and making some concessions in exchange for no diesel bans of any kind.

YSFEJ4SWJUVU6··on Mercedes-Benz will electrify its entire car lineup by 2022
This means that you can have any model with an electric or a hybrid powertrain. If it helps you to grasp it, consider the current situation: you can have most of their cars with a a petrol engine (several variants), or a diesel (several variants) – in the future that list will include either hybrid or EV versions, or both, for all models.
YSFEJ4SWJUVU6··on With a $1k Price, Apple’s iPhone Crosses a Threshold
That's odd, considering their first phone was launched in stores less than 4 years ago.

In any case, I used to have one too until about 2 weeks ago when it finally broke down (tbh, possibly due to moisture). While it's not odd they still release updates for their phone OS for the only phone they've ever sold to regular customers, I can't brush away GP's point entirely. The hardware is definitely sub-par by now (it wasn't that good to begin with), not to mention the trade-offs made in the construction of the phone (loudspeaker issues are rather common, and my phone started later to have problems with the display back-light, too).

← PreviousPage 3 of 7Next →