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

 



Forgot your password?
typodupeerror
×

Comment Re:Right buddy... (Score 1) 365

I recently had to rewrite a modestly sized embedded project from C++ to C because it became clear that I could not afford the space for the mandatory libraries in the binary.

Hmmph, you were either using a truly substandard toolchain or you have little clue about what you are doing. The whole point of a library is, it doesn't become part of your program if you don't use it and doesn't use up memory. If you don't use exceptions for example, the exception support won't be linked in. Likewise iostreams. Check the headers you included.

Comment Re:Right buddy... (Score 1) 365

I'm sure everyone will believe your theory that linus just can't grasp C++'s advantages and that's the reason why he doesn't want to rewrite the entire kernel in C++

C++ object can be linked with C code, I have used that ability to add C++ code incrementally to projects originally developed in C. As a result, have had plenty of opportunity to compare the C++ result to the original C. Typically, equivalent or identical object code but source is more consise, readable and maintainable.

What is up with the nasty/evil modding in this thread?

Comment Re:Why do people still care about C++ for kernel d (Score 3, Insightful) 365

The Linux kernel makes heavy use of big ugly, hard to maintain or read macros that generate arbitrary machine code. No matter how good you are, you won't know what code is being generated without extensive analysis. In any case, the exact same ugly macros can be used by C++, if you are really wedded to that kind of bad taste. C in fact has no addtional features in this area, it only lacks features that C++ has.

If you want to point at features that C has which C++ does not then you get a very small set, which in the case of the kernel consists mostly of designated initializers.

Comment Re:Right buddy... (Score 2, Interesting) 365

I'm sure everyone will believe your theory that linus just can't grasp C++'s advantages and that's the reason why he doesn't want to rewrite the entire kernel in C++

C++ object can be linked with C code, I have used that ability to add C++ code incrementally to projects originally developed in C. As a result, have had plenty of opportunity to compare the C++ result to the original C. Typically, equivalent or identical object code but source is more consise, readable and maintainable.

Comment Re:Why do people still care about C++ for kernel d (Score 0, Flamebait) 365

You're making that up. Linus's actual arguments against C++ for kernel is mainy rhetoric about "substandard programmers". The real issue is that Linus has no real experience with C++, therefore does not deeply understand its organizational advantages. Speaking as a longtime C hacker who did make the effort to figure out what C++ is all about. It's true, C++ is far from perfect, but on the whole it beats the crap out of good ole C along multiple dimensions.

I take it that only luddites and sycophants are moderating this thread. Look, Linus has many great qualities for which I admire him, but sometimes he just drops the ball. Other examples: initial refusal to use any form of source control. Initial refusal to allow an in-kernel debugger. Plenty of other examples. Eventually he usually figures these things out eventually, but it can take time. Sometimes ridiculous amounts of time.

Comment Re:Why do people still care about C++ for kernel d (Score 3, Insightful) 365

You're making that up. Linus's actual arguments against C++ for kernel is mainy rhetoric about "substandard programmers". The real issue is that Linus has no real experience with C++, therefore does not deeply understand its organizational advantages. Speaking as a longtime C hacker who did make the effort to figure out what C++ is all about. It's true, C++ is far from perfect, but on the whole it beats the crap out of good ole C along multiple dimensions.

Submission + - Facebook On Track To Becoming A Major Player In Payments (seekingalpha.com)

Ted_Margaris_Chicago writes: Facebook (NASDAQ:FB) recently announced that it would be playing a more active role as a social commerce broker. Following in Twitter's footsteps, the company announced that it would be offering a Facebook buy button on certain ads that would allow users to purchase merchandise featured in selective ads. While trials have been ongoing since mid July, it was recently revealed that Stripe is the company behind the trials and powering the Facebook buy button

Submission + - Drone shootdown over New Jersey (nbcphiladelphia.com)

schwit1 writes: New Jersey police arrested Russell J. Percenti last weekfor allegedly firing a shotgun at a helicopter drone flying in the vicinity of his home. According to the owner of the drone, it was being used to capture photographs of a nearby home that was currently under construction. While he was flying the drone over the unfinished home to take the photos, he heard several gunshots in the vicinity and immediately lost control of the drone.

When the owner recovered the broken drone, he discovered multiple holes that were likely the result of at least one shotgun blast.

Submission + - MIT Thinks It Has Discovered the 'Perfect' Solar Cell (vice.com)

Daniel_Stuckey writes: A new MIT study offers a way out of one of solar power's most vexing problems: the matter of efficiency, and the bare fact that much of the available sunlight in solar power schemes is wasted. The researchers appear to have found the key to perfect solar energy conversion efficiency—or at least something approaching it. It's a new material that can accept light from an very large number of angles and can withstand the very high temperatures needed for a maximally efficient scheme.

Conventional solar cells, the silicon-based sheets used in most consumer-level applications, are far from perfect. Light from the sun arrives here on Earth's surface in a wide variety of forms. These forms—wavelengths, properly—include the visible light that makes up our everyday reality, but also significant chunks of invisible (to us) ultraviolet and infrared light. The current standard for solar cells targets mostly just a set range of visible light.

Submission + - Building a Honeypot to Observe Shellshock Attacks in the Real World (dice.com)

Nerval's Lobster writes: A look at some of the Shellshock-related reports from the past week makes it seem as if attackers are flooding networks with cyberattacks targeting the vulnerability in Bash that was disclosed last week. While the attackers haven’t wholesale adopted the flaw, there have been quite a few attacks—but the reality is that attackers are treating the flaw as just one of many methods available in their tool kits. One way to get a front-row seat of what the attacks look like is to set up a honeypot. Luckily, threat intelligence firm ThreatStream released ShockPot, a version of its honeypot software with a specific flag, “is_shellshock,” that captures attempts to trigger the Bash vulnerability. Setting up ShockPot on a Linux server from cloud host Linode.com is a snap. Since attackers are systematically scanning all available addresses in the IPv4 space, it’s just a matter of time before someone finds a particular ShockPot machine. And that was definitely the case, as a honeypot set up by a Dice (yes, yes, we know) tech writer captured a total of seven Shellshock attack attempts out of 123 total attacks. On one hand, that’s a lot for a machine no one knows anything about; on the other, it indicates that attackers haven’t wholesale dumped other methods in favor of going after this particular bug. PHP was the most common attack method observed on this honeypot, with various attempts to trigger vulnerabilities in popular PHP applications and to execute malicious PHP scripts.

Submission + - Intel drops sponsorship of Gamasutra in response to feminist articles

An anonymous reader writes: Processor firm Intel has withdrawn its advertising from Gamasutra in response to the site's decision to carry feminist articles. The articles had drawn the ire of the self-described "Gater" movement, a grass-roots campaign to discredit prominent female games journalists. Intel was apparently so inundated with criticism for sponsoring the Gamasutra site that it had no choice but to withdraw support. An Intel spokesperson explained that "We take feedback from our customers very seriously especially as it relates to contextually relevant content and placements" and as such Gamasutra was no longer an appropriate venue for their products.

Submission + - OpenStack at risk of patent trolls according to Linux protection watchdog (thestack.com)

An anonymous reader writes: From the article: "The Open Invention Network (OIN), founded by major tech companies to protect Linux from spurious patent claims, warns that the OpenStack cloud computing platform is a prime target for a new round of pre-emptive litigation."

The chief executive of OIN warns of '“a potential situation for mischief and for people to start inventing ahead of where core technology is being invented...I have more than a little concern this could be a flash point or a battleground.”

Major technology firms are currently investing billions of dollars in new cloud-based offerings which have OpenStack at their core. Cisco acquired OpenStack specialist Metacloud in mid-September in order to boost its InterCloud offering, while HP has committed $1 billion in investment for its Helion project over the next two years, recently acquiring former nemesis Eucalyptus, a major OpenStack proponent.

The OIN was formed by Red Hat, IBM, Novell, Sony and Philips in 2005 during a series of patent litigations aimed at the Linux project, including Microsoft, which famously claimed that it owned 270 unnamed patents which Linux was infringing, and went on to demand licensing fees from Linux OEMs and software developers.

Comment Factual inaccuracie (Score 1) 65

Japan’s recent history of catastrophic earthquakes has driven a great deal of its former data centre infrastructure to outsourcing to more stable locations

Hmmph. According to news reports, some Tokyo data centers established backup locations in Osaka, near the epicenter of Great Hanshin earthquake. Hardly a "more stable location".

Slashdot Top Deals

Computers are useless. They can only give you answers. -- Pablo Picasso

Working...