Forgot your password?
typodupeerror

Comment Re:Swiss's NSA analog? (Score 1) 131

This would be an interesting explanation of the economic success of Switzerland if it didn't contradict the facts such as: 1. Switzerland is *not* sourrounded by EFTA members (in fact, Switzerland is sorrounded exclusively by countries that are not members of EFTA) and 2. Switzerland *is* one of the four members of EFTA. Actually EFTA was established as an alternative to the EEC which since then has become the EU. See Wikipedia: http://en.wikipedia.org/wiki/European_Free_Trade_Association.

Also, Switzerland, although not a member of the EU, has strong ties to the EU. For example, it is a member of the Schengen area, thus there are no border controls between Switzerland and neighboring (EU-member) countries. While proposals to formally join the EU have been rejected by Swiss voters, most of EU law has been adopted by Switzerland through bilateral treaties, thus Switzerland behaves like an EEA member for most practical purposes.

I think you will have to look for other reasons to explain the outstanding performance of the Swiss economy. By the way, the GDP per capita (PPP) of Switzerland is $44,864 according to the IMF. Countries with GDP per capita (PPP) over $40,000 include Austria, the Netherlands, Ireland and Sweden, all EU members. So it doesn't seem to be the case that "the GDP there is double anywhere else in the rest of Europe". (Actually Norway, a non-EU EEA member, has higher GDP per capita than Switzerland.)

Comment Re:But... (Score 1) 745

Yes, yes, yes, all the things that happened here are so incredibly unlikely to happen... but then again, the universe is incredibly large and here the law of the large number fits perfectly: NO matter how insignificantly unlikely something is, if there is ONE case where it is true and your sample size is (nearly) infinitely large, the chance to find another case is 1.

This is not what the law of large numbers states. I find it interesting that people cite the law of large numbers so often without knowing exactly what this theorem in probability theory is about.

There are actually two versions of the law of large numbers, a weak and a strong one. Both state that if you have a(n infinite) sequence of independent and identically distributed random variables with finite expected value, then the (X1+X1+...Xn)/n sample average converges to the expected value. The difference is that according to the weak version the convergence is in probability, whereas the strong law states almost sure convergence.

I do not see how this theorem can be applied to the case you describe. You could argue that we could assign Bernoulli random variables to planets: 1 if they have a moon they don't "deserve" (or if they are inhabitable etc.) and 0 id they don't. But obviously these are not independent and not identically distributed random variables, so the LLN cannot be applied.

For more explanation, see http://en.wikipedia.org/wiki/Law_of_large_numbers

Comment Re:Premature optimization is evil... and stupid (Score 4, Informative) 249

GCC is a big offender, thats true.

This is one of the reasons that GCC sucks compared to ICC and VC++.

Let me give you the facts as they are today. In isolation, both the shift instructions and the multiply instructions have the same latency and throughput, and are also performed on the same execution units.

If this was the entire story, then they would be equal. Buts its not the entire story.

The shift instructions only modify some of the flags in the flags register. Essentially, the shift instructions must do a read/modify/write on the flags. The multiplication instructions, however, alter the entire flags register, so only perform a write.

"But Rockoon.. they are the same latency anyways, right?" .. yes, in isolation. But that read/modify/write cycle on the flags register prevents a hell of a lot of out-of-order execution.

Essentially, one of the inputs to the shift instruction is the flags register so all prior operations that modify the flags register must be completed first, and no instruction following the shift that also partially modify the flags register can be completed until that shift is completed.

In some code, it wont make any discernible difference, but in other code it will make a big difference.

As far as that GCC compiler output.. thats code is horrible, and not just because its AT&T syntax.

There are two alternatives here for multiplying by 4 that should be in competition here, and neither uses a shift.

One is a straight multiplication (MASM syntax, CDECL):

main:
mov edx, [esp + 4] ; 32-bit version, so +4 skips the return address
imul eax, edx, 4
ret

The other is leveraging the LEA instruction (MASM syntax, CDECL):

main:
mov eax, [esp + 4] ; 32-bit version, so +4 skips the return address
lea eax, [eax * 4]
ret

The alternative LEA version on some processors (P4..), in isolation, is slower .. but it has the advantage that it uses different execution units on those very same processors, so might pair better with other stuff in the pipeline, and it doesnt touch the flags register at all.

GCC is great at folding constants and such, even calculates constant loops at compile time.. but its big-time-fail at code generation. GCC is one of the processors that one optimization expert struggled with because he was trying to turn a series of shifts and adds into a single far more efficient multiplication.. the compiler converted it back into a series of shifts and adds on him. Fucking fail.
GNU is Not Unix

Why Linux Is Not Yet Ready For the Desktop 1365

An anonymous reader writes "Every now and then a new- or old-media journalist tries to explain to everyone why Linux is not yet ready for the desktop. However all those men who graduated from their engineering universities years ago have only superficial knowledge about operating systems and their inner works. An unknown author from Russia has decided to draw up a list of technical reasons and limitations hampering Linux domination on the desktop." Some of the gripes listed here really resonate with me, having just moved to an early version of Ubuntu 9.10 on my main testing-stuff laptop; it's frustrating especially that while many seemingly more esoteric things work perfectly, sound now works only in part, and even that partial success took some fiddling.
Education

Go For a Masters, Or Not? 834

mx12 writes "I'm currently an undergrad in computer engineering and have been thinking about getting my masters. I have a year left in school. Most of my professors seem to think that getting a masters is a great idea, but I wanted to hear from people out in the working world. Is a masters in computer engineering better than two years of experience at a company?"
United States

Who Will Obama Choose As Copyright Czar? 174

seanpark writes "Who will President Elect Obama select for the recently established post of Copyright Czar? Biden has a longstanding relationship with Big Content, and he was partly responsible for the PRO-IP Act that created the position. The short list according to the article includes a few lobbyists (who would likely be disqualified by stringent ethical guidelines) and Lawrence Lessig, who was a technology adviser to the Obama Campaign."
Books

Which Computer Books For Prisoners? 257

Brian D. writes "I've recently begun working with a group that sends books to prisoners in federal and state prisons. We try to match their requests as well as we can. One request that we consistently have trouble filling is for computer books. This is not for lack of books, but because the prisoners' requests tend to be vague and their computer resources are obviously severely limited. Keep in mind that we send prisoners all types of books — from gardening and landscaping to cooking and sailing — about topics they don't have the resources to experiment with. With basically one shelf devoted to books on computing, what types of books should I tell them we should keep? What are the best types of books to send a prisoner who requests a book on 'computer repair?'"
Upgrades

Cell Chip Coming To the PC Via a PCI Express Card 164

arcticstoat writes with an excerpt from Custom PC: "After developing a brand new CPU architecture from the ground-up, you'd expect that Toshiba, Sony and IBM would have more uses for the Cell architecture than the PlayStation 3, and Toshiba has been quick to make use of the architecture's HD video transcoding abilities in its new Qosimo laptops. However, Leadtek is now taking Toshiba's efforts a step further by putting the chip onto a PCI-E card for desktop PCs. The WinFast PxVC1100 is based on Toshiba's SpursEngine SE1000 processor, which is a cut-down version of the Cell chip. The SpursEngine chip features four SPEs (synergistic processing elements) based on 128-bit RISC cores, along with H.264 and MPEG-2 codecs, but it doesn't contain its own CPU as the chip in the PS3 does. The chip is capable of encoding and decoding H.264, MPEG-2 and MPEG-4 video streams in hardware."

Comment Re:Suggestions... (Score 1) 1021

You guys are so geographically challenged, I cannot believe it!

Swiss is a country, located between France, Italy and Germany, where chicks are definitely not hot (unless you are into Big Berthas).

(emphasis mine) Let me guess: do you live in American or English, Mr. Geography Expert?

Transportation

Transportation Bill Sets Aside $45 Million For MagLev Train 402

tbischel tips us to news that the MagLev train project which would run from Las Vegas to Disneyland has received approval for $45 million in funding. The project has been in the planning stages for quite some time, and it was delayed further by a drafting error in a 2005 highway bill. "Derided by critics as pie in the sky, the train would use magnetic levitation technology to carry passengers from Disneyland to Las Vegas in well under two hours, traveling at speeds of up to 300 mph. It would be the first MagLev system in the U.S. The money is the largest cash infusion in the project's nearly 20-year history. It will pay for environmental studies for the first leg of the project."
The Internet

pizza.com Sold For $2.6m 243

f8d noted a beeb bit on the fact that the pizza.com domain name was sold for a ridiculous 2.6m bucks. Can there be a bubble and a recession at the same time, or do the two cancel each other out like Penn & Teller?
Republicans

Best Presidential Candidate, Republicans 1481

A few days ago we posted a story for you to discuss the best presidential candidates for Super Tuesday, but I figured it would be an interesting idea to try that again, but split the discussion into 2 halves. This is the Republican half — please only discuss the Republican candidates in this story. Huckabee, McCain, and Romney only.
Privacy

Proposal for UK Prisoners to be Given RFID Implants 188

Raisey-raison writes "There is a proposal in the UK to implant "machine-readable" microchips under the skin of thousands of offenders in an effort to free up more space in British jails. The article states that uses are being considered both for home detention, as a means to enforce punishment, as well as for sex offenders after their release. Many view this as a slippery slope leading to much wider use; starting as a purely voluntary act and gradually becoming more compulsory, it would endanger human rights and privacy. There are also health questions involved, given that long-term studies have linked similar implants to cancer in lab mice and rats. Ironically, the same technology has been proposed for medical purposes as well. In the USA, some state agencies have already made decisions about this issue.

Slashdot Top Deals

The first Rotarian was the first man to call John the Baptist "Jack." -- H.L. Mencken

Working...