Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Comment Re:Do it yourself (Score 1) 82

Cppcheck apparently knows "hundreds of other rules covering a multitude of language aspects" so you don't "have to mentally apply against every single line of code you write."

Cppcheck doesn't flag anything in Waffle Iron's example.

It also doesn't find anything wrong with:

std::vector<int> vec = {1, 2, 3, 4, 5};
auto it = vec.begin();
vec.push_back(6);
std::cout << *it << std::endl;

Which is another common example of how you can write memory errors without using C++ pointers.

Comment Re:There is already a safe subset of C++ (Score 1) 82

In the sort of places where MISRA and similar coding guides apply, yes, never allocating memory is expected, because once dynamic allocation exists you can't guarantee that you won't die with an out-of-memory error and similarly can't guarantee any time bounds on how long an alloc and dealloc will take.

Sure, so C++ is safe as long as it's used in a way that makes it incredibly painful. Sounds good. Let's just require all C++ code everywhere to be written that way. Rust usage will skyrocket overnight.

Comment Re: Is there anyone here that voted for Trump (Score 1) 256

It is hard to have fair democracy with winners take it all.

For a really rigorous definition of "fair", it's impossible to have fair democracy at all. Arrow's Theorem demonstrates this to a large degree, although many have argued that some of his fairness axioms are excessive. More recent research has concluded that fairness is the wrong standard, because there's no way for an electorate's "will" to really be fairly represented by any electoral system, not in all cases. Some systems can do better most of the time (and "winner take all" is particularly bad), but all systems fail in some cases.

What we need to aim for instead of fairness is "legitimacy", which is more about building broad acceptance of the system than about fixing the system itself, though it's easier to build acceptance for better-designed systems.

Having the country's top politicians continually claiming the system is unfair and rigged is, of course, the worst possible thing to do if you want to build support for the legitimacy of the system.

Comment Re:Jokes on you (Score 1) 256

Precisely none of those books were ever banned.

I decided to check :-)

According to the Book Censorship Database from the Every Library Institute, both "Of Mice and Men" and "Adventures of Huckleberry Finn" have been challenged, but only "Of Mice and Men" was removed, though "restricted" is more accurate. The Birdville Independent School District in Texas removed the book from general access, allowing access only to the AP English class, and the Indian River County Schools in Florida restricted it to high school students.

No Doctor Suess books were banned, although Suess Enterprises voluntarily ceased publication of six books.

Comment Damn it! (Score 1) 36

The cheese sandwich was the best part of Frye. I've literally had that same sandwich many times, and while it looks sad and basic, if you are in a position where someone is giving that to you where you didn't specifically order it, let me tell you its special and it hits like nothing else on this earth.

Comment Re:This should go well. (Score 1) 153

The problem in California is that private lawyers realized they could sue almost anybody for failure to warn about carcinogen risk. The result was that everybody (both private individuals, companies, and government facilities) stuck a warning on virtually anything. The initial intention of the law was good but very badly worded.

Comment Re:Or... (Score 3, Informative) 159

Someone pointed out some differences in Idiocracy: a primary plot point was that the President actively recruited a cabinet member for intelligence, without knowing what that cabinet member would recommend, and willingly followed the possibly unexpected advice provided by that cabinet member, and actively and accurately observed and judged results both when the cabinet member made a correct and when they made an incorrect decision.

Comment Kind of? (Score 4, Informative) 159

The BLS monthly numbers are always off when the underlying economy is changing rapidly, because of the "birth death problem", meaning that when large numbers of companies are being created or closed (born or died), the surveys that provide the quick data are guaranteed to be quite far off because the surveys go to companies that are already establish, i.e. those that weren't just born and didn't just die. So when there's a lot of market change, they're sampling the part of the market that is changing less. This means the estimates are off, and the faster the economy is changing the further off they are.

A related issue is that the survey results are only a sample, but BLS needs to extrapolate to the entire population of businesses -- but they don't actually know how many businesses there are in the country, much less how many fit into each of the size / revenue / industry buckets. So their extrapolation necessarily involves some systematic guesswork. In normal, stable economic times good guesses are easy because it's not going to be that much different from the prior year and will likely have followed a consistent trend. But when the economy is changing rapidly, that's not true, so the guesses end up being further off the mark.

Second, it's worse when things are turning for the worse, because of something kind of like "survey fatigue", but not. The problem is that when lots of the surveyed companies are struggling, they're focused on fighting for their existence and don't have time to bother filling out voluntary government reporting forms. It's not that they're tired of surveys, but that they just don't have the time and energy to spare. And, of course, the companies that are going out of business are also the ones w

The phone thing is a red herring, because these BLS surveys are not conducted over the phone.

A new issue compounding the above is that the BLS was hit hard by DOGE cuts and early retirements. They've lost over 20% of their staff, and the loss in experience and institutional knowledge is far larger than that, because the people who were fired and the people who took the buyouts tended to be very senior. So a lot of the experience that would be used to improve the estimates has walked out the door.

Anyway, the core problem is that the economy is going into the toilet, really fast. The BLS didn't break out how much of the 911,000 fewer new jobs were added 2024 vs 2025, but I'll bet a big percentage were after Trump started bludgeoning American businesses with tariffs. Most of that pain won't really be known until the 12-month report next year, because the monthly reports are going to continue underestimating the rate of change. Well, assuming the BLS staff isn't forced to cook the books, in which case we'll just never know.

Comment Re:It's the same everywhere (Score 1) 146

It is considerably safer to treat stop signs as yield signs for (human-powered) bicycles. By far the most dangerous thing at intersections is being hit by cross traffic while they are moving at the low speed that they have to from a stop. Some states have decided to rewrite the laws for yield-on-red.

Some e-bikes certainly have enough acceleration that this is not a problem. IMHO these should be subject to motorcycle regulations and this also means they must travel in the car lanes.

Slashdot Top Deals

1 Dog Pound = 16 oz. of Alpo

Working...