Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:1024-fold (Score 1) 210

No, the JEDEC standard actually agrees with the IEC one - it states that for memory you can optionally use the SI prefixes with binary calculations, but that for storage you should use base 10 computations with the SI prefixes.

Comment Re:1024-fold (Score 2, Insightful) 210

No, a "traditional" GB is the one that was defined way before computer scientists got their hands on it –1000. The 1024 "definition" is actually simply a bug. Engineers working on early machines had a choice – take a bug that pretty much no one would notice on an early machine (because files over 1kB were very rare, much less ones over 1MB), or take a massive perf hit. It takes a long time to compute the size of 20 files when a division by 1000 takes 300 odd cycles on a 10kHz machine. It doesn't take such a long time when a right shift 10 takes 1 cycle.

Bottom line, early engineers decided a known bug was better than the enormous perf hit of getting it correct. That doesn't mean that what they did is now correct. It means it remains a bug in some OSes.

Comment Re:Numeric equality in PHP (Score 1) 729

There's no particular reason to not have comparable values of different types

Sure there is - they have different types, therefore they're not equal. It's a ridiculous, useless operation, because it doesn't actually do anything more than always return false.

That said, there's good reason to have an "isSimilarTo" function, but that's not at all the same thing as equality.

Comment Re:bringing in more H1Bs will solve this problem (Score 1) 250

Actually, compiler theory is a great example of a language you can't easily learn in any language. The small lightweight structures it generates, and the referentially transparent transformations that you run those structures through lend it strongly to being done with functional languages, and if not, very close to the metal languages like C. Heavy weight OO languages tend to end up just causing you to write 3 tons of boiler plate, rather than actually learning the theory.

Slashdot Top Deals

Real Programmers don't eat quiche. They eat Twinkies and Szechwan food.

Working...