Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Silly (Score 1) 764

And I wouldn't be surprised to hear someone say they were "proud" to be 5'2" or 6'6". Nobody gets mocked for being 5'10" (at least in a predominantly Caucasian crowd - when I'm the only white guy in a crowd of Pilipino people, I get the occasional comment)

Comment Re:Exact mathematical value isn't the ideal (Score 2) 239

If you are doing any floating point calculations and assuming exact results, you're going to get yourself in trouble. The issue is that FSIN is less accurate than advertised, not that it's not 100% accurate.

Anyone who deals with floating point math very quickly learns about error accumulation and how to deal with it.

Comment Re:Costs (Score 4, Funny) 315

We'd obviously have to situate it off-world and use some sort of electromagnetic beam to send the generated energy to earth. Heck, given the amount of extra power generated, we could just send off the energy everywhere and there'd still be enough hitting the earth. We could then use devices here to convert that energy into electricity.

Comment Re:Catching up with Fedora (Score 2) 644

Yes, you can. Except instead of getting back text, which you then have to parse if you want to do anything with, you get back a stream of .NET objects which will be formatted into a text table if you do nothing with them, but also let you do things like this:

ls | where { $_.Length -gt 5000 }

Comment Re:Sexual selection by the opposite sex. (Score 3, Informative) 190

The explanation I've heard for useless showy features (a la peacock) is that the ability to put resources into giant shiny feathers show that you have the ability to gather enough food to live, and have leftover energy to devote to impressing the ladies. It's not so much the particulars of what the feature is, but rather having resources (or money) to burn indicates that you're successful enough to be a good mate.

Comment Re:Why use it? (Score 1) 435

Resource handling. Lower-level languages require you to manually release any resource you acquire. Every piece of heap allocated memory needs to be freed. Every file you open needs to be manually closed. Every network connection, mutex, or handle needs to be released. It's feasible to do, since you don't have to worry about exceptions. But it does require an incredible fastidiousness to make sure that you always clean up after yourself.

When you get to the higher level languages, you get garbage collection which means never having to manually release memory again. But everything else is stuck being released manually. You can't do it reliably in regular code, since exceptions get in the way, so they introduce things like finally or using. But again, you're relying on the people using the class to remember to clean up every single time they use it.

In C++ you can rely on stack-unwinding to clean up after you. I haven't checked in a "delete" in over 10 years of C++ coding. Every C resource we use gets a wrapper class that automatically releases it when the object is destroyed. It's really the biggest thing I miss when working in other languages.

Slashdot Top Deals

Any circuit design must contain at least one part which is obsolete, two parts which are unobtainable, and three parts which are still under development.

Working...