Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Comment Re:Do it yourself (Score 1) 78

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

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

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

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 I'm not sure this is really about hardware (Score 1) 122

TPM should be optional. M$ is just colluding with the hardware vendors to increase sales.

Unfortunately, there is another possible explanation for the emphasis on TPM that is much more sinister. It's possible that Microsoft and its allies are making a concerted effort to lock down desktop clients in the same way that the two major mobile ecosystems are locked down, to kill off general purpose computing and reduce the desktop PC to a machine that can only run approved apps and consume approved content. It already happens with things like banking apps that you can't run if you choose to root your phone to arrange the privacy and security according to your wishes instead of the vendor's or OS developer's. It already happens on open source desktops, where streaming services will deliberately downgrade the quality of the content they serve you when on the same plan you're already paying for they'd serve higher quality streams to approved (read: more DRM-friendly) devices, and where a few games won't run because their anti-cheat software behaves like malware and the free platforms treat it accordingly.

I am worried that we may be entering a make-or-break period for the survival of general purpose computing with the artificial demise of Windows 10. If the slow transition to Windows 11 as people replace their hardware in the coming years means almost everyone ends up running Windows or macOS on desktops and Android or iOS on mobile devices, there won't be enough incentive for developers of apps and creative content to support any other platform, and all the older versions that didn't have as much built-in junk and all the free alternatives will be reduced to irrelevant background noise because they won't support things that users want to do any more. Your own devices will force updates, ads, reboots, AI-driven "help", covert monitoring and telemetry, any other user-hostile junk their true masters wish upon you, and there will be nothing you can do about it.

Governments should be intervening on behalf of their people at this point because the whole system is blatantly anti-competitive and user-hostile, but most of the Western nations are either relying on the absurd valuations in the tech sector to prop up their otherwise precarious economies or watching with envy while their more economically successful allies do that. So our best hope is probably for the legacy platforms to hold out long enough for some free platform(s) to reach critical mass. And frankly, there aren't many realistic paths to get there. Our best hope might be for Valve/Steam to show that many of those Windows 10 boxes in people's homes can now play most of the same games if they shift to Linux and possibly run some of them better than on Windows as well.

Comment Re:Growing body of evidence of damage to humans (Score 0) 17

> Isn't capitalism great?

Capitalism doesn't let you buy laws, that's Corporatism, a subset of Fascism, which is in turn a subset of Socialism.

A proper Capitalist systems speaks to economics, not poltiics.

Reconstruction US, Post-Mao China, Post-Soviet Russia all embraced capitalist economics to lift the vast majority of their population out of abject poverty.

Societies which did the opposite mostly killed their middle class ans then half the population starved to death.

Comment Aspects (Score 1) 74

Having lived through the Dot-Bomb it's basically the same.

You're not going to get a valuation bubble without a hype bubble. And nobody is buying companies for that much who have zero infrastructure. And the stock price is what they use to buy the infrastructure.

These are inextricably linked, not separate phenomena.

This is what Austrian Economists call the 'malinvestment' part of the business cycle. It's caused by artificially cheap money (not set by a market) and will unavoidably be cleared.

Our Orwell is so strong the eggheads artificially setting the price of money call themselves "The Open Market Committee". Because an open market in lending rates is de facto prohibited.

Comment Pentagon Papers (Score -1, Troll) 250

They don't have to do this but most "journalists" are hacks that engage in Access Journalism (which is a type of bribery).

They aren't hard-driving gumshoe drunks like the legendary journalists of yore who sought to speak truth to power. They're mostly stenographers for the rich and powerful now (yay, journalism school!)

It will be interesting to see if any leave out of principle. I doubt more than 10% will. You can pretty much distrust any stories from the ones who stay.

Comment Re:We are so screwed (Score 1) 205

Remember - the Federation reserved the Death Penalty for making AI Androids.

Noonian Soong had to exile himself to a remote planet outside Federation control to work on Data and Lore (and his sexbot...).

They needed people to be able to have jobs *that* badly.

Which ... stop sending redshirts outside the ship with magnetic boots in a radiation storm, OK? They could have at least had some astromech droids. Sheesh!

Comment Better Targets (Score 1) 24

I recently got a "plastic" target that changes color and the holes mostly self-heal if you don't use a hollow-point.

Good for plinking but they do wear out eventually.

I didn't even know this material existed before a buddy told me they were on Amazon. Amazing times, for sure.

Heck, I picked up some 100-lb test fishing line the other day that is some sort of braided heavy-chain polyethylene that is 11 times stronger than steel wire at the same size. The company made mechanical spinnerets to mimic spiders' to get it to work.

Again, I had no idea until a buddy told me it was $20 on Amazon.

Wild.

Comment Re:And (Score 0) 122

Back in the day we'd install wild boards that would upgrade the Mac CPU's by a generation or two, add FPU's, etc.

All of this depended on the systems being too expensive to replace or buy new except once in a blue moon.

At $600 which is probably $200 in 1986 money, it's a bit harder to be mad.

Those systems were probably $10K in 2025 dollars. Heck, a few were $10K in 1986 dollars.

Comment Re:Kilocalories of energy each contestant burned? (Score 1) 73

*nerd alert*

The original script had The Matrix running in parallel on all the human brains.

Studio execs said that was too confusing and that they should be batteries.

Also Neo is seen on the Nebuchadnezzar with hundreds of acupuncture-looking needles with wires to get his muscles working while he's in a coma.

Writers should have been left alone (a story old as time).

Slashdot Top Deals

How many Bavarian Illuminati does it take to screw in a lightbulb? Three: one to screw it in, and one to confuse the issue.

Working...