Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Submission + - C'T magazine: Amazon reveals private Alexa voice data files (heise.de)

An anonymous reader writes: German C'T magazine reports on Amazon's latest data privacy disaster: "Due to an internal error, Amazon recently sent 1,700 Alexa voice files to an unauthorized customer." (article in english)

Comment Re:Yes (Score 5, Informative) 603

Why do you need to separately declare and then define every piece of your API? Because that's how C worked, and C did it that way because of the limitations of compilers in 1977. It's totally unnecessary in a modern language, and it makes your code way less clean. But that's how C++ works.

You don't have to. You can define all your code inside of the class, like in Java. It's up to the compiler/linker to store that mess somewhere. But for non-template code, it's more efficient (speed and memory) to have this separated, for both compiling and linking.

Why are templates designed in a way that makes you put the entire implementation in the header file? That was totally unnecessary, and it leads to clunky code. But that's how C++ works.

Because the compiling of the template is totally depending of the template arguments. Last time I've looked into Java, there were no templates (or even variadic templates), so this is really not comparable.

How come if a parent class doesn't mark its destructor as virtual, all subclasses will (silently) fail to get cleaned up correctly? This is just bad design. It's probably caused countless bugs over the years.

Only if the subclasses have virtual functions, then you should also make the destructor virtual. There are good reasons to have non-virtual destructors in parent classes. Why should I pay for a feature, if I don't need it? Here static code analysis helps.

The language is full of inconsistencies because no one ever bothered to fix them. Why is "this" a pointer instead of a reference?

Is this really an inconsitency? For me, pointers are no problem, they are an additional grade of freedom for expressing what I want. Yes, references are internally only pointers with the same speed and they normally don't have the value 0 (as long as you did not mess them up), but last is also true for 'this'. So it really doesn't matter.

Why does exception.what() return a char* instead of a string&?

Good question, but nearly irrelevant in well designed programs, that try to avoid exceptions during normal program flow. However, if you want to concatenate constant strings at compile time to get better error messages, there are tricks with variadic templates. With gcc, this even works with __PRETTY_FUNCTION__.

There are tons of minor points like this that could easily have been better if someone had bothered to think about consistency. But no one did. You can avoid the worst parts of C++, but what remains is still a poor substitute for a well designed language.

Perhaps. This language is for professionals. It is huge and there are pitfalls. But it gives you the neccessary freedom to express *exactly* what you want. C had been designed as a shortcut for Assembler and this is still true for C++; there is no virtual machine in between. If you write business applications, well, then use something else, but I do embedded development in the automotive sector and here C++ is exactly what I want.

Windows

Submission + - Acer bosses: Windows 7 launches October 23rd, 2009

Sockatume writes: On the 30th of April 2009, Acer's vice-president for Europe discussed a new product, launching this September, which would support Windows 7's touch features. Asked whether this confirmed the Windows 7 release date as September 2009, he coyly remarked that "when it's in store it won't have Windows 7 pre-loaded." Microsoft would probably prefer that he stopped there, but he added: "We won't be actually selling [Windows 7] a day before the 23rd October." Their Managing Director for the UK helpfully clarified that while their product will ship with Windows Vista at launch, because it is on sale less than 30 days before the Windows 7 release date, it will be eligable for the "upgrade program" to get a free upgrade to the new OS. Whoops.
Red Hat Software

Submission + - Linux in every seat on the Airbus 380 (networkworld.com)

jpatokal writes: "Singapore Airlines will be rolling out the A380 "superjumbo" on October 26th, and a surprise awaits in the seat of every passenger: their personal Linux PC, running Red Hat. In addition to running the in-flight entertainment, passengers can also use a full copy of StarOffice, and there's a USB slot for importing/exporting documents or plugging in your own keyboard/mouse. Screen size is 10.6" (1280x768) in economy, 15.4" in business and a whopping 23" in first class. The system is already available on their current B777-300ER planes and will also be outfitted on the upcoming B787 Dreamliners."
Wine

Submission + - Wine 0.9.44 released (winehq.org)

jshriverWVU writes: "This is release 0.9.44 of Wine, a free implementation of Windows on Unix. What's new in this release: — Better heuristics for making windows managed. — Automatic detection of timezone parameters. — Improvements to the builtin WordPad. — Better signatures support in crypt32. — Still more gdiplus functions. — Lots of bug fixes."
Media

Submission + - The power of LinuxMCE / Media & Entertainment (megavideo.com)

josecc writes: "LinuxMCE is a free, open source add-on to Kubuntu including a 10' UI, complete whole-house media solution with pvr + distributed media, and the most advanced smarthome solution available. It is stable, easy to use, and requires no knowledge of Linux and only basic computer skills. http://linuxmce.org/ | http://wiki.linuxmce.org/index.php/Mirrors"
Microsoft

Submission + - Judge overturns Microsoft $1.5billion verdict (www.rte.ie)

popoutman writes: "A US judge last night overturned a jury verdict ordering Microsoft to pay Alcatel-Lucent $1.5 billion for infringing on the French firm's patents. US Senior District Court Judge Rudi Brewster, who is handling a legal appeal of the jury trial's outcome, issued a written ruling in favour of Microsoft and against Lucent, according to court documents."

"In his ruling, Brewster concluded that the US software giant did not infringe on one of the patents and that Fraunhofer-Gesellschaft would need to join Alcatel-Lucent's infringement suit for it to be valid in court."

Programming

Submission + - Best IDE for C++? 2

chibe writes: I'm currently making my first steps in C++ and was wondering what IDE the C++ speaking part of the slashdot reader community would recommend. Asking C++ programmer friends resulted in a wide range of answers from "emacs forever" to "Anjuta rocks", so I'm not expecting to to find the ultimate answer here, but would like to get a feeling for what's on the market. So what are the strengths and weaknesses of your favourite IDE?
Announcements

Submission + - iPhone unlocked for use on European carriers (blorge.com)

fdmendez writes: "Thanks to a Macedonian hacker and the iPhone hacking team at Hackint0sh, the Apple iPhone is now usable on the other side of the pond. All you need to unlock the iPhone for use with a European carrier is a SIM reader/writer, V1Comp SIM card, and a SilverCard smart card.

You'll need to download some software and go through a relatively lengthy modification process that'll probably void your warranty, but you don't have to crack open the phone. It's all software and SIM card related. The tutorial has been copied..."

Spam

Submission + - "Viagra spam" emperor gets 30 years behin (heise-security.co.uk)

juct writes: "A Federal Court in Minneapolis has sentenced Christopher William Smith, master spammer and web dealer in illegal pharmaceuticals, to 30 years in prison. But despite the CAN-Spam Act introduced in his honour, the charges did not include spamming. Arrested in September 2006, Smith apparently tampered with the prison phone system to evade automatic call recording, and then attempted to negotiate hits on the family of a witness in his trial and of his own wife. The unusually severe sentence is ascribed as much to Smith's general behaviour (absconding and making death threats) as to the specific offences with which he was charged. Strangely, despite the CAN-Spam Act, none of the charges related directly to his use of spam."
Handhelds

Submission + - Half of European calls to be mobile by 2008 (theregister.co.uk)

Tech.Luver writes: "theRegister reports, " Mobile calls are replacing fixed-line usage across Europe, according to a new report from Analysys, but people aren't talking more, they're just using fixed-lines less. The change has been most stark in Finland, where 2006 saw another 10 per cent of calls migrate onto mobile networks; bringing the total to 74.6 per cent at the end of the year. Even in Germany, where fixed-lines still dominate, 24.3 per cent of calls originate on a mobile handset: a rise of 6% during 2006, which increased voice use of mobiles by 23%. ""
Power

Submission + - U Delaware breaks solar power efficiency record (renewableenergyaccess.com) 1

mdsolar writes: "Renewable Energy Access is reporting that a consortium led by researchers at the University of Delaware has achieved 42.8% efficiency with a silicon solar cell. The method uses lower concentration (factor of 20 magnification) than the previous record holder Boeing-Spectrolab made cell (40.7% efficiency) so that it may have a broader range of applications since tolerances for pointing the device will be larger. They are now partnering with DuPont to build engineering and manufacturing prototypes under DARPA's Very High Efficiency Solar Cell program which supports work towards achieving 50% efficiency. It is expected that these cells can help improve the military battery logistics pipeline, providing "soldiers with more power at reduced weight." They expect to be in production in 2010. On a roof, such cells would require less than half the surface area to produce the same amount of power as today's standard solar panels. This might leave room for panels to power plugin hybrids for cases where roof area is too limited to do this with standard panels."
Sony

Submission + - Blue Blu-ray?

TopSpin writes: According to this story, at Japan's recent euphemistically named Adult Treasure Expo 2007, adult filmmakers said Sony had begun offering technical support — which was later confirmed by Sony PR, which stated that Sony would offer support to any filmmaker working on the format, no matter their industry. Apparently, Blu-ray is now the preferred media for Japanese porn.
NASA

Submission + - NASA building largest single-kernel Linux system

wellingj writes: NASA and SGI are building a new Linux super computer that contains a total of 1024 Dual-Core Intel Itanium 2 processors, resulting in 13.1 TFLOPs. This computer would rank as the 64th fastest computer. As some may know, 1024 cores is the current max for SMP (symmetric multiprocessing) support. SGI has therefor developed the necessary modifications and submitted them upstream.

Slashdot Top Deals

Always look over your shoulder because everyone is watching and plotting against you.

Working...