Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:the 80 bit issue is well known (Score 1) 98

That has nothing to do with TFA. In gcc, long double is 80-bit when stored so not only it is computed at full x87 precision, that precision is retained. In VC, long double is effectively an alias for double. Both compilers compute with full precision for intermediate values, but that's not the problem here; the problem is that the type with the same name has different representation between them.

Comment Re:Surprised? (Score 1) 98

C standard is not the end-all be-all, there are all specifications that define the details of ABI for a particular architecture and platform. In case of VC++, it is well-documented that long double is the same as double, so any compiler that has an explicit stated goal of being ABI-compatible must respect that.

Comment Re:What is the Patriot Act? (Score 1) 218

It means that government can use wiretapping to collect a shitload of data, including on its own citizens, without a warrant, and then store that data indefinitely and cross-reference and search it, "because terrorists". They do have a special court (FISC) that is supposed to review access requests, but that court proceedings are secret, so no-one knows if it is at all efficient at serving as a check - but, judging by its 99.97% request approval rate, it doesn't sound likely.

Comment Re:Fiddling while Rome burns? (Score 1) 236

So, instead of trying focus on what kind of user experience we're going to have (which sounds like they think the tablet interface is what people actually want for everything) ... and focusing on making all of that good and usable

Have you seen Win10 preview, or at least read some reviews and look at the screenshots? Because it is exactly what it is about... I mean, the most obvious change that you see once you install Win10 over Win8 is that the Start menu is back. Other changes include things like Metro apps actually running in resizable windows, and the "charm bar" is gone, and all the actions are integrated into the window title bar. Etc... basically, all things Metro are desktopified.

Comment Re:Just...wow. (Score 1) 131

Not zero, but yes, Russia is kinda lagging behind on these things. Not even just fancy stuff like thermal or NVD, but even just plain optics or red dot and holo sights (just for giggles, look up the battery life on red dot sights that are in service there, and compare to Aimpoint, or even the more expensive Chinese optics).

Comment Re:Just...wow. (Score 1) 131

Military grade thermal imaging of the sort on fighter jets or heat seeking missiles is not really the same as the consumer level junk you'd find on e-bay that people use to look for Sasquatch or find people in burning buildings

That's plainly not true. If you have around $5K, you can absolutely buy military grade thermal vision devices online, including eBay. Might not be the kind they put on fighter jets, exactly, but certainly the kind they issue to soldiers in the field.

Comment Re:EU food ban? (Score 1) 86

hey expect it to be down to under $40B by the end of this year [rbth.com]. What they're going to do when it runs out, I have no clue

They'll start slashing welfare to stabilize the budget. That's why the rhetoric about how the evil West is once again trying to destroy Russia is still in full force... so that when they start starving the more vulnerable parts of the populace, there's an established external enemy to blame.

The other option? That would be war, the ultimate excuse.

Of course #1 does not preclude #2. It might just defer it.

Comment Re:How to read f*ucked up code (Score 2, Insightful) 336

The biggest skill in C++ is how to read code that's got templates, generics, overloaded operators, and custom keywords.

"What do you mean they overloaded '+' to merge objects?"

"This doesn't look like C++, it looks like some foreign language."

"Oh, we reversed the meaning of + and - because the senior guy thought that the original semantics were incorrect. But only for some objects."

This. Outside of academia I've never encountered C++ written in a sane manner. Hell, even inside of academia things get a bit iffy. Things you can expect to see if you ever maintain C++ code:

* Objects passed by value which don't have a deep assignment copy constructor.

* File scope objects using other file-scope objects - "Because VS2010 ensures instantiation order."

* Dependencies with no real reason; this is especially bad on Qt projects. Why use std::vector when you can use a QVector?

* const char *use_this_later = MyQstringObject.toStdString().c_str(); // Bang! There goes another foot... maybe if we had GC...

* You used copy semantics? You *meant* move semantics (This should never had made it into the standard).

* Overloaded functions - "myfunc (foo);" does something different to "myfunc (bar);", because hilariously foo and bar are different types

* Ditto for operators - "foo + bar" does something quite different to "bar + foo".

* Other than "type var[size];" there is no primitive array type. Arrays are implemented in the library, not in the language like every other sane language.

* No GC. In other languages you can get away with it, but in C++ you stand no chance - someone, somewhere back in the mists of the past, would have created a critically dependent-upon class that *will* return a temporary object that gets deleted automatically while you still have references. QString, for example.

All of the above, in addition to all of the gotcha's in C as well. In this day and age there is very little reason to use C++. If you need objects, UI, etc use Java or C#. If you don't need objects use C; at least you can trivially expose every single piece of C code you've written to other languages via a library. This lets you reuse your code. The only C++ code you'll ever expose to other languages are C-compatible functions.

I'm looking, right now, at a mountain of code, some 20+ classes, many with file-scope instantiations, every single fucking object a Qt object. The original developer noticed that the code for Qt-derived classes won't compile without a copy constructor so he very cleverly made empty copy constructors for all the classes so that even a shallow copy won't be performed. As expected, he also stores instances in containers - which means every now and then the program would give incorrect results with seemingly no predictable occurrences. It doesn't crash, mind, just gives incorrect answers.

Good luck; you'll need it.

Stay away from C++ - stick to languages that implement context-free grammars only.

Comment Re:Go for it (Score 1) 43

I agree he doesn't belong on that list. I do think on the list of America's worst presidents, he'd be at the top of the list.

Ignored warnings from the previous administration, top FBI officials ignored field agents who were warning of something bad, and got our country attacked.

Then he started an incredibly stupid war in Iraq, which led to the rise of ISIS.

Presided over the building of mass surveillance of the American people.

Took office during a boom, left office under the worst economy since the great depression. It's my theory that what caused the ruined economy was fuel prices more than quadrupling during his reign. Buy gas to get to work, or pay the mortgage? Tough choice!

Took office with a balanced budget, left it with the largest deficit in American history. Meanwhile, infrastructure was crumbling and he did nothing.

Now, if the list was of people who did the most harm to our country, he should be on that list. Mao and Pol Pot were very evil men who killed millions of people, but they didn't harm America.

Slashdot Top Deals

I think there's a world market for about five computers. -- attr. Thomas J. Watson (Chairman of the Board, IBM), 1943

Working...