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 Sounds doomed... (Score 2) 16

This seems like the sort of advice that is going to be exceptionally hard to get followed because it's mostly so dull.

There can be some interesting futzing in principle to keep unnecessary sources of variation from getting folded into build artifacts, normally followed by less-interesting making of those change in practice across a zillion projects; and basically anything involving signing should at least be carefully copying the homework of proper heavyweight cryptographers; but most of the advice is of the "fix your shit" and "yes, actually, have 10 people, ideally across multiple orgs, despite the fact that you can get it for free by pretending that the random person in Nebraska won't make mistakes, get coopted by an intelligence agency, quit to find a hobby that doesn't involve getting yelled at on the internet for no money, or die" flavor; which is absolutely stuff you should do; but the sort of deeply unsexy spadework that doesn't have magic bullet vendors lobbying for it to get paid for.

Comment Re:Of course... (Score 1) 64

What seems sort of damning is that the explanation is "our tech sucks".

The 'explanation' is that the demo triggered all the devices within earshot because apparently a device designed to perform possibly-sensitive actions on your behalf was assigned a model line wide, public audio trigger in order to make it feel more 'natural' or something; rather than some prosaic but functional solution like a trigger button/capacitive touch point/whatever; and that the device just silently fails stupid, no even informative feedback, in the even of server unresponsiveness or network issues. Both of these seem...less than totally fine...for something explicitly marketed for public use in crowded environments on what we euphemistically refer to as 'edge' network connectivity.

You obviously have limited control over the network in a situation like this; so nobody expects the goggles to fix the internet or facebook's server resource allocations for you; but having some sort of "can't reach remote system" error condition has been ubiquitous basic function since around the time that dirt was still in closed beta.

Comment Re:Demo failure not a product failure (Score 1) 64

I suspect that this is symptomatic of the same phenomenon; but it seems especially weird that they'd be trotting the CTO out to give a, from context, apparently intended to be exculpatory postmortem when the problems with a device you are intended to wear on your face, in public, are 'sensitive to external trigger shared across entire product line' and 'silently fails stupid if network conditions are suboptimal'.

Comment Re:How puzzling... (Score 1) 53

You definitely wouldn't come up with a fresh 10,000 liters of the stuff just lying around somewhere; at least not without resorting to nuclear chemistry or natural gas processing on a pretty heroic scale; but if you purely needed to ship something, anything, to be able to say that the amount provided wasn't zero; the terrestrial supply isn't zero either. I think the US is good for high single thousands of liters on a typical year, from nuclear warhead maintenance; Russia at least theoretically in the same ballpark in terms of warheads that would need their tritium checked, though no assurances either that that is happening or that they'll sell, they had formally stopped doing so at least for a while over a decade back; not sure what the mixture of reasons was between domestic users and not wanting inferences about their weapon maintenance.

Such a sale would be basically ceremonial if it has to come from the existing supply which is already spoken for every year; and there would be no point in Interlune as an intermediary; but if some finance construct wiggles one way if the sales are zero and another way if the sales are merely small, it presumably might be worth someone's time for Interlune to be listed as the supplier to Bluefors, even if it's just them slapping their label over whoever Bluefors normally buys from and doesn't actually change the allocation to different purposes or the total size of the market.

It's adjusting the allocation that would be at least difficult(potentially viable if the VCs doing 'quantum' are paying better than the people doing ultra low temperature MRIs or academic physics, or if you can out-lobby the 'national security' neutron detector market that doesn't get anyone excited but zOMG Dirty Bombs the Homeland!; but probably not cheap); and actually changing the supply that would be hardest, but possibly of actual interest.

Comment Re:How puzzling... (Score 1) 53

I'd be a trifle surprised if it's an outright lie; perhaps I'm not properly accustomed to contemporary standards of allowable market manipulation; but it seems to have been carefully worded to make a somewhat exotic but fairly barebones commodity futures arrangement, which could be entirely fulfilled by interlune doing some paper-shuffling resales of helium 3 from any source or simply selling zero liters during some or all years between now and 2038, sound like a tale of Bluefors actively paying to send rockets to the moon because it's obviously only freezer capacity, not any of the other issues, that is keeping 'quantum' from doing whatever it is supposed to do.

Comment Re:Hitler and Trump get rid of the comedians first (Score 2) 250

Not at all. I'm saying that the two situations, despite the parent poster's dishonest or confused equation of them, were totally different; with the fact that one involved direct state pressure on the media and the other didn't('liberals' not exactly even having control over the FCC in 2018; much less there being evidence of it being used for the purpose in the Barr case).

It's precisely the naked abuse of state power to try to force the media to toe the line on their repugnant little exercise in hagiography that makes this case deeply problematic; and that was simply not present in the Barr case. The fact that Kimmel was run off the air basically for not jumping to the conclusion that obviously Kirk must have been shot by some sort of trans antifa jihad sniper; rather than one of the numerous squabbling factions of hard right violence enthusiasts who have been feuding with one another for years, was icing on the shit sandwich; but the main story was the abuse of the FCC.

Comment How puzzling... (Score 2) 53

I'm sure that I'm not supposed to infer anything from how little the press release says about when the money actually changes hands and under what conditions.

Unless I'm missing something there's an annual quantity(of up to 10,000 liters; no stated minimum so presumably including zero) and a delivery period; but there's no actual statement of which years the annual quantity applies to(are they the same as the years of the delivery period? Do they start immediately?) and no statement of either when the product gets paid for or of what happens if it ends up not being delivered.

Depending on those fairly nontrivial details this could be anything from "refrigerator company spends 300 million dollars on lunar widget today with payoff potentially a decade or more out" to "if you happen to have some helium 3 in 2035 Bluefors will take your call; today we shake hands and make effusive statements in preparation for the bubble vacuum that the fall of 'genAI' will leave".

I'm fairly sure that there have been enough actual commodities deals(both actual sales and various options-related hedging) that if they wanted to talk boring details they would know exactly which ones to mention; which makes me suspect that it's less exciting than it is intended to appear.

Comment Re:The options (Score 2) 250

Realistically, what will matter is what currently-clean-on-opset Pete will do to organizations(likely with Brendan Carr's slimy assistance). If they think that just doing journalist-level is going to work there's not much reason to just designate someone who can stay awake while holding a tape recorder to go collect the party line while everyone else skips the event. It's not like they are going to answer any but the most softball questions.

If anything, unless there's someone significantly smarter than Pete moderating the policy behind the scenes, this seems less likely to encourage compliance than the traditional measures; where you dole out little nibbles of exclusive and technically unauthorized 'access' to people you deem largely friendly precisely because the stuff at press conferences and releases is pure commodity(especially now that chatbots can, badly, munge it into other formats so there probably isn't even much future in rewriting or reading from the teleprompter those commodity releases).

Comment Re: This should stop the abuse of H1-B (Score 5, Insightful) 228

I have been saying for decades now that the F-1 (student) visa should be able to convert to a resident visa upon graduation.

The whole idea of it not being a resident visa was a cold war notion that after graduating, the international student would return to their country and spread the gospel of how wonderful the United States was, and how their local country needed to oppose the Soviets. I doubt that ever really happened.

Today, weâ(TM)re just training people and then at best turning them into indentured servants for a few oligarchs, or even worse (and now the policy of the Trump administration), throwing them out so theyâ(TM)ll build up some other competing country, while weakening our own.

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