HNHacker News
TopNewBestAskShowJobs

wildmusings

4,144 karma · joined February 18, 2013

submissionscomments
wildmusings··on YouTube bans coronavirus-related content that directly contradicts WHO advice
Maybe I'm imagining it, but I've noticed that it's difficult to find user-generated current-events content on Youtube. The search results are dominated, artificially it feels, by clips from the major broadcasters and news agencies. User-created content is pushed down. I guess that's what preferring "authoritative" sources looks like, and I wonder if people are just "choosing" ("demanding") what the search results have been rigged to give them.
wildmusings··on Why Aren’t More Users More Happy With Our VMs? Part 1 (2018)
Emacs does this. See https://emacs.stackexchange.com/questions/2364/what-is-the-f...
wildmusings··on The U.S. tried to build a new fleet of ventilators
Yes, people in this thread are letting the perfect be the enemy of the good. Everyone knows that doctors are overqualified for the vast majority of tasks they are responsible for. Normally, there's good reason for this, because you want a highly-trained eye to spot unusual and atypical cases.

But when you're dealing with a pandemic, you can do without. Do you really think that your typical doctor spent all that much time in med school or residency learning how to operate a particular kind of machinery? If we have the ventilators, we'll be able to find people to operate them.

wildmusings··on How to burn the most money with a single click in Azure
Yes, of course. But you were suggesting it was necessarily fraud. I'm just pointing out that that's not necessarily the case.
wildmusings··on How to burn the most money with a single click in Azure
I'm not a lawyer, and this is not legal advice: You'd be surprised. There's often enough give and take, enough ambiguity, in contract law and/or in any given contract such that disputing a debt is not a further wrong (criminal or civil). But you might be on the hook for interest and damages resulting from the delay if you lose.
wildmusings··on How to burn the most money with a single click in Azure
I'm not a lawyer and this is not legal advice: disputing debts is not by itself fraud, even if you end up losing. If you have some "colorable claim" (i.e. some basis in law and fact to think that a court might plausibly rule in your favor), then you are in your rights to test it in court. But don't be surprised if upon losing, you are forced to pay interest and/or other damages accrued due to the delay.
wildmusings··on Congrats! Web scraping is legal! (US precedent)
Dangerously misleading headline. There is a circuit split on the interpretation of the CFAA, including on what counts as “unauthorized access”. If you are sued outside of the Ninth Circuit, you might get very different results.
wildmusings··on U.S. files lawsuits over robocall scams
I would never advocate for being mean. There’s no warm and fuzzy way to put it, that some people are taken advantage of because of their low intelligence. I was responding to someone who said that the suggestion was “insulting”.
wildmusings··on U.S. files lawsuits over robocall scams
You acknowledge it yourself. There’s “risk” to both complying and ignoring the call.

Anyway, risk tolerance isn’t the right lens to look at this. It’s about knowing whether that’s the way the government would actually issue demands and take payments. That requires some savvy and insight about the world. Some people have it and some people don’t. And relatedly, it’s about being skeptical vs. trusting in general.

wildmusings··on U.S. files lawsuits over robocall scams
Can we really not acknowledge that some people are dumb or ignorant and easily taken advantage of? It’s harsh but if you’re not willing to accept that, then you won’t be able to understand the world and make it better.
wildmusings··on Why We Terminated Our Partnership with Microsoft
The function of a patent is to give a temporarily monopoly to someone who has invented something new. It’s disingenuous to say “slightly different business” as if that’s the only possibility. It is true that they encourage disclosure, but they also obviously encourage invention of things by letting you make monopoly profits on them for a limited time.
wildmusings··on U.S. surveillance laws have proven ineffective at countering terrorism
This is a pretty absurd thing to say. Natural or accidental deaths are different than planned attacks. There is no shortage of murderous, suicidal people. If you made it easier for them, more of them would go for it. The 3 successful attacks on 9/11 contributed something like an extra 20% to the US murder rate. That’s not insignificant.

Also, we do spend an enormous amount of money on safety in the US. Why do you think the absolute cheapest new cars in the US are two to four times as expensive as new cars in countries that don’t have the same kind of safety standards (e.g. Mexico or India)? And because of the tort system, businesses spend untold amounts of money making their facilities and products safer in general.

wildmusings··on The Hunt for the Fastest Zero
I don't think it's about long-running vs. short-running. That might be a heuristic, but what really matters is whether there is idle CPU time to be had between when you need large zeroed chunks of memory, or even if not, if you have some other performance characteristic you want (e.g. stable, consistent throughput) that would benefit from parallelizing the zeroing instead of having to periodically block.
wildmusings··on The Hunt for the Fastest Zero
Because if you're needing to repeatedly free giant amounts of RAM, the OS probably doesn't have many zeroed pages and will need to zero them itself. Linux, at least, does not idle-zero, so if you want to take advantage of otherwise idle CPU time to do the zeroing, then you need to take matters into your own hands.
wildmusings··on Why do we fall into the rewrite trap?
I’ve never understood why they had to port it at all. The 32-bit version of Pinball would have kept working just fine. And apparently, the binary from Windows XP still runs on Windows 10.
wildmusings··on The Hunt for the Fastest Zero
I doubt it. Needing to zero ultra large chunks of memory often enough that you care about performance to this extent is a very niche scenario. If I had to guess, Java probably just zeroes the memory upon garbage collecting it or before handing it back out; fresh pages from the OS are already zeroed.

But anything is possible. Maybe some big customer used this pattern and now Java detects it and does something fancy like what I suggested. But really, this is an unusual scenario for an application.

wildmusings··on Filling large arrays with zeroes quickly in C++
Do you have a link where I can read more?

I also wonder, for typical workloads, what percent of CPU time is spent zeroing pages.

wildmusings··on The Hunt for the Fastest Zero
If you're routinely zeroing this much memory and the performance matters, you might benefit from idle-zeroing it. That is, when you need to zero the massive block, just switch to a different block that has already been zeroed or partly-zeroed in the background. Whatever hasn't already been zeroed, finish synchronously. The background thread doing the zeroing would be scheduled with the lowest priority, so that it only runs when the system otherwise has nothing to do.

At first, I thought you might just want to get fresh pages from the kernel (which are always zeroed), but this answer convinced me that might not actually be faster because of the overhead from syscalls and fiddling with virtual memory https://stackoverflow.com/questions/49896578/fastest-way-to-... . And Linux doesn't idle-zero or pre-zero pages (though I believe there's a switch to enable pre-zeroing for purposes of security hardening), so you're probably gonna end up with the OS doing a synchronous[1] zeroing anyway.

[1] Synchronous from when you actually first write to each page. My understanding is that when your process gets new pages, they're all mapped to a special zero-page and set to copy-on-write. So there is still some efficiency here in theory: you don't have a long wait for the entire range to be zeroed all at once and you never have to zero pages that you don't modify.

wildmusings··on The light is off. War is over
Take out the bulb and get a floor lamp. Better yet, unplug the damn thing altogether.
wildmusings··on The World’s 2,153 Billionaires Are Richer Than 4.6B People, Says Oxfam
It's just not true that those things are problems because of some lack of money. Those things are problems because of corruption, crime, and bad government. Regimes that get it right, e.g. the Asian Tigers, experience rapid growth.
wildmusings··on The World’s 2,153 Billionaires Are Richer Than 4.6B People, Says Oxfam
Bezos is not simply some idiot who happened to be first. He runs a massive organization with extremely tight margins, hits targets year after year, delivers low prices from consumers, keeps a giant bureaucracy in check and prevents it from rotting and becoming complacent, and constantly launches Amazon into new ventures of its own. Very few people have that kind of talent. The wealth and wealth-producing machine this man has produced are truly incredible.

That's not to take away from any criticisms of Amazon and Bezos. I don’t care one bit for the man’s politics or his newspaper. But it's really ridiculous to say him and Amazon were "simply first." Most people would never even have the audacity to try what he and his partners have done, let alone the perseverance and skill. There are truly remarkable people on this world.

wildmusings··on The World’s 2,153 Billionaires Are Richer Than 4.6B People, Says Oxfam
Congrats, you bought everyone a new iPhone or bike or shed. In a few years, it's ancient history and now you have no money left to loot. You're talking about a one-time distribution that would wipe-out all of the billionaires' wealth. As a one time distribution, it would be peanuts, completely forgotten, irrelevant, and unrepeatable in a few years. It's a nice little one time windfall and not much else.

Consider, the global economy produces $80 trillion A YEAR, and all the billionaires combined accumulated, total, over the course of MANY YEARS AND DECADES a current trove of $8.7 trillion.

wildmusings··on The World’s 2,153 Billionaires Are Richer Than 4.6B People, Says Oxfam
Yes exactly. People act like this wealth is held in cash accounts in Switzerland or something (and even if it were, it would be reinvested by those banks).
wildmusings··on The World’s 2,153 Billionaires Are Richer Than 4.6B People, Says Oxfam
If you took all of their money ($8.7 trillion) and gave it away to the 4.6 billion people, that would be $1891 per person. Now before you get excited, that's not per year or anything. That is if you took the total accumulated wealth of all those billionaires and gave it to everyone else. You would never be able to make such a distribution again, not for a very long time at least, so it's really peanuts in the long run.

These kinds of statistics are so bogus because they make it sound like accumulated wealth is what makes the world go around, and that is just simply untrue. All of this accumulated wealth by the ultra rich, $8.7 trillion held by billionaires, is NOTHING when you compare it to the world GDP PER YEAR, which is $80 trillion. Remember, you're comparing the total accumulated wealth, built up over many years and decades, of the ultra rich with what the global economy produces in income IN A SINGLE YEAR.

For the majority of people, and especially young people, their most important asset is not how much wealth they have accumulated but their ability to produce income year after year through their productivity. And you can't be pushing government pension and welfare programs on the one hand, which incentivize spending all of your income instead of saving it, and then touting stored-wealth as the important statistic.

Through the worldview of this ridiculous methodology, graduates of elite American universities, with their high paying jobs but substantial student loans, are among the poorest in the world. Ditto for the highly-paid San Francisco software engineer who spends most all of his income to live a very comfortable life in one of the most expensive cities in the world. Better start transferring wealth to them from the bank accounts of middle class third-worlders!

wildmusings··on C++ coroutines: Initial implementation pushed to master
I can also attest that lots of “modern C++” code exists in Windows.

There is code in Windows that was written yesterday and code in Windows that was written over three decades ago.

wildmusings··on C++ coroutines: Initial implementation pushed to master
Absolutely, but that kind of code doesn’t really speak to complaints about modern C++ and all it’s become. I just wanted to chime in with that extra information. I don’t really have a dog in the fight, other than having a lot of love for C and good C code.
wildmusings··on Smart homes will turn dumb overnight as Charter kills security service
I have a Denon receiver. It has some nice connected features, like Spotify Connect and Airplay, but it’s also a completely functional dumb receiver that will work with equipment, input and output, from decades past and future.

I buy my own speakers and plug them into it. It also supports some Denon wireless speaker standard that lets it hook up to other Denon receivers and/or any speakers with the special adapters attached. But the crucial thing is that at the end of the day, all that fancy pants crap can stop working and you still have a bunch of bog standard speakers and receivers that can be hooked up any other way.

Now I’ll concede that maybe I’m ignorant or misinformed or a grumpy stubborn old man, but I’m not sure why anyone technically competent would buy a Sonos or Bose system with their crazy lock-in. It wasn’t so long ago that Sonos made you use Spotify through their awful reimplemented UI. It seems they have relented on that front and now allow use of Spotify Connect, but why would you want to be at someone else’s whim like that? Bose uses non-standard wiring and electrical specs to make sure that you can’t use their speakers with standard receivers. You either have to trash the speakers or keep buying Bose receivers when you want new features (4K, 8k, Atmos, HDR, etc.) Even when money is no object, I feel like a sucker when I buy artificially locked-in products like that. Maybe others don’t feel the same way?

For the not-so-tech-savvy, I concede that home audio gear is still a little difficult to set up. The common practice of making your own banana plugs is ridiculous and pre-made audio cables should be the norm instead. The receiver UIs leave a lot to be desired, even when they are ultimately good enough once configured. Shopping for speakers is like choosing fad diets: you have to sift through outrageous amounts of bullshit to find any useful advice.

I’d like to understand some more of the sociology and economics of why Denon and Yamaha and such can’t get their act together to produce something as user friendly as Sonos but that degrades nicely into standard A/V equipment when desired. If anyone with industry insight sees this comment, please fill me in.

wildmusings··on C++ coroutines: Initial implementation pushed to master
A significant portion of the C++ code in Windows uses very few C++ features or idioms and is basically C with classes or one or two useful features.
wildmusings··on Questions I would ask God about the game of Go
Any number is a bad guess because we don’t have any sense of the likelihood of life emerging, even in the “optimal conditions”. It could be so unlikely that it’s probable there is no other life, it could be so likely that almost every “viable” planet has life, anywhere in between, or it could be that God created exactly as much life as he wanted, which could be, again, any number.

We have a sample size of one and what must be, in the grand scheme, a primitive understanding of physics and chemistry and biology. Throwing around numbers and probabilities for the existence of other life is frankly ridiculous. The best we can intelligently talk about is what the number is given some guess about other numbers. But remember, we have no good numbers for the emergence of life, the survival of life, the likelihood of evolution into intelligent life, etc. Any number multiplied by a totally unknown factor can be literally anything.

And before someone throws the infinite universe argument at me, of course. Any probability above zero times infinity is infinity. (Though it’s also possible that there is still no extraterrestrial life even in that case, that outcome always has a non-zero probability!) If we accept a probabilistic emergence of life, then we need to talk about useful things like “in our solar system”, “in our galaxy”, “in the visible universe”, and such. Though it is theoretically possible that the conditions for the emergence of intelligent life are so narrow that only planets exactly like ours, so exactly like it that someone else on that planet has or will typed out this exact comment, have it. In a truly infinite, random (hmm, another bad assumption perhaps?) universe, there would be infinitely many such exact replicas of Earth and its entire visible universe. This isn’t a very useful concept.

wildmusings··on I've been working on X11 on jailbroken iOS
I was disappointed to see that the authors have decided to keep it closed source for now. Has anyone done a security audit of it?
← PreviousPage 3 of 34Next →