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

 



Forgot your password?
typodupeerror
×

Comment Re:Perl is more expressive (Score 1) 192

Ok, in this thread there are already C++, Ruby, and Perl 6 versions of your snippets, so I'll add the Python ones.

@Lines = sort { $a->{Name} cmp $b->{Name} } @Lines;

lines.sort(lambda a, b: a.name < b.name)
or
lines.sort(key=lambda o: o.name)

@Files = <c:/Windows/*.exe>;

from glob import glob
files = glob("c:/Windows/*.exe")

I think a good analogy would be Perl is Finish, Python is Esperanto. When you have hundreds of thousands of LoC to maintain, I guess a more direct and unambiguous language is preferred.

It occurred to me that perhaps Perl is an attempt to seduce the computer... too bad it will take some time before it can appreciate language nuances... ;)

Transportation

Fake Engine Noise Is the Auto Industry's Dirty Little Secret 823

HughPickens.com writes Stomp on the gas in a new Ford Mustang or F-150 and you'll hear a meaty, throaty rumble — the same style of roar that Americans have associated with auto power and performance for decades. Now Drew Harwell reports at the Washington Post that the auto industry's dirty little secret is that the engine growl in some of America's best-selling cars and trucks is actually a finely tuned bit of lip-syncing, boosted through special pipes or digitally faked altogether. "Fake engine noise has become one of the auto industry's dirty little secrets, with automakers from BMW to Volkswagen turning to a sound-boosting bag of tricks," writes Harwell. "Without them, today's more fuel-efficient engines would sound far quieter and, automakers worry, seemingly less powerful, potentially pushing buyers away." For example Ford sound engineers and developers worked on an "Active Noise Control" system on the 2015 Mustang EcoBoost that amplifies the engine's purr through the car speakers. Afterward, the automaker surveyed members of Mustang fan clubs on which processed "sound concepts" they most enjoyed.

Among purists, the trickery has inspired an identity crisis and cut to the heart of American auto legend. The "aural experience" of a car, they argue, is an intangible that's just as priceless as what's revving under the hood. "For a car guy, it's literally music to hear that thing rumble," says Mike Rhynard, "It's a mind-trick. It's something it's not. And no one wants to be deceived." Other drivers ask if it really matters if the sound is fake? A driver who didn't know the difference might enjoy the thrum and thunder of it nonetheless. Is taking the best part of an eight-cylinder rev and cloaking a better engine with it really, for carmakers, so wrong? "It may be a necessary evil in the eyes of Ford," says Andrew Hard, "but it's sad to think that an iconic muscle car like the Mustang, a car famous for its bellowing, guttural soundtrack, has to fake its engine noise in 2015. Welcome to the future."

Comment Re:Almost all normal people realise (Score 1) 219

No, the OP does not have a point. Why are you focusing on one specific instance? Violence is widespread, and is committed by all kinds of people. Christians of all denominations in the US were quite content with the fact their government torture people (or offshore the task). The loads of innocent people that are killed in drone attacks are also not victims of muslim terrorists.

Religions are stupid and should be extinguished, but the correct way to achieve that goal is through education. With violence you'll only get more violence.

Comment We're no longer at the origin (Score 1) 181

Architectural improvements for general purpose CPUs yield less and less benefits: Even more registers? Even better branch prediction? Even larger caches? It'll all yield but a few percent, at least for current Intel designs. So, the way to go is currently more and more cores, but what good is it to have many cores that can't all fire simultaneously?

Comment Clickbait Caption, but Valid Arguments (Score 3, Insightful) 181

Of course general purpose CPUs exist, simply because we call them that way. But it is also true that each design has it's own strengths, and "dark silicon" is another driver for special purpose hardware. Efficiency is another. Andrew Chien has published some interesting research on this subject. In his 10x10 approach he suggests to use 10 different types of domain-specific compute units (e.g. for n-body, graphics, tree-walking...), each of which is 10x more efficient than "general purpose CPUs" in its domain (YMMV). Those compute units bundled together, make up one core of the 10x10 design. Multiple cores can be connected via a NoC.

Let's see how software will cope with this development...

ps: can special purpose hardware exist if general purpose hardware doesn't?

Power

Denmark Plans To Be Coal-Free In 10 Years 332

merbs writes "Earlier this year, Denmark's leadership announced that the nation would run entirely on renewable power by 2050. Wind, solar, and biomass would be ramped up while coal and gas are phased out. Now Denmark has gone even further, and plans to end coal by 2025.

Comment Re:And so therefor it follows and I quote (Score 1) 353

Why didn't you just order a hamburger?

Because nobody offers that option. I would gladly request a refund for the Windows 7 that came with my notebook if I could. The only reason I keep its partition is because I paid for that crap, and just "in case I need it"... but it's been 3 years so far without booting it. I guess I'll just wipe it and give more space to my Linux partition whenever I get some time to do it.

Slashdot Top Deals

"Engineering without management is art." -- Jeff Johnson

Working...