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

 



Forgot your password?
typodupeerror

Comment Re:GNU excitement (Score 5, Interesting) 161

Now that Clang/LLVM has got this finished, I'm wondering what a system would look like with:

... * Clang/LLVM as the system C/C++ compiler

Slower

I'm developing a tiny game engine in C(11) and I've built profiling into the core, and I profile many of the math-heavy parts separately as well. Clang 3.3 actually almost always does better than gcc 4.8 here. Not by much, but there you have it. You should take a look at the SLP vectorizer, which will come enabled in -O3 as of Clang 3.4 but can already be enable separately with -fslp-vectorize.

So for single threaded code I'm already leaning towards Clang. OpenMP is going to get integrated as well, as of then, all bets are off. Exiting times to be a C/C++ dev... (or any other kind, for that matter, LuaJIT never ceases to amaze me).

Comment Re:Eclipse and Netbeans (Score 4, Informative) 1055

I also use Dev-C++ for my windows development, I find the interface to be superb in not getting in my way, while not being dog-ugly or slow.

Conversely, I was searching for an alternative for linux (yes, I'll learn vi/vim some day, just not now), and what I found was Geany. It starts up at the flick of a finger and manages to look a lot like Dev-C++ (perhaps more polished even). The only thing I dislike about it is its (intentional) weak project support, but that could conceivably be fixed with the nice plugin system. So, Geany is very lightweight and supports quite a lot of languages, it has its default settings such that if you have the necessary compilers installed (which is basically mostly true on most linux systems, or can be done with one line at the shell), it'll work out of the box. The same for python, perl, etc.

Then I noticed that it also has a windows port, that comes with its own GTK+ runtime (all nicely contained in Geany's folder, and nicely uninstalled if you want), I tried it and while the first startup is not as fast (due to the GTK+ libraries needing to be loaded), all the rest is just as snappy. Ofcourse the windows version needs a little more help to get started, but not _that_ much more. All you basically have to do is install MingW and set your $PATH to search MingW/bin.

So basically the only problem with Geany that still remains (for me), is that it doesn't really support projects like Dev-C++ did, so for now you basically have to make your own makefiles. This could also be viewed in a positive light ofcourse, as learning about makefiles will prove to be a good skill if you want to do some open source contribution. But I'm sure it could get tedious as well (haven't done many large projects lately), so someone developing a plugin would be really nice, and probably not too hard as well.

Well, I've been ranting and promoting long enough now, time for Geany to promote itself, give it a spin (it's free, the only cost is your time ;) ).

Comment Re:He's also right (Score 5, Insightful) 502

I fully agree with your post (I prefer C over most other languages myself for some weird reason, but if it n eeds to be made *right now*, I'll use Python/Perl/Bash/...).

However, there is an addendum I'd like to make here:

Some programming languages force you to think in ways that are actually beneficial to the speed of your code, and can outpace the "normal" C program significantly.

For example, a few months ago I was forced to write something concerning an AI algorithm in Prolog. Now, I was cursing and cursing at it, because the constraint solver built into the prolog compiler was so goddamn restrictive, but that's how constraint solving works. Every time I was thinking to myself: "if I'd have been allowed to build this in C, it would be done yesterday, and probably be faster to boot!"

But when I ended up finishing it and running it, it was blindingly fast, and I queried my professor about it. He told me that another student some time ago was thinking the same thing as me, and actually made a C variant. It ran 4x as slow as the prolog equivalent even after spending quite some time optimizing (interchanging algorithms and even looking at the assembler code, he told me).

Then he told me what was causing this discrepancy, as I had always thought that C was the end all be all of performance. It was the restrictive nature of the prolog solver that caused me to put more brain power into the problem, and as such shift work from the computer to the human. Because those same restrictions allowed lots and lots of optimisations (aliasing comes to mind).
Space

Successful Launch of ESA's Herschel and Planck 121

rgarbacz writes "Today at 13:12 GMT, the ESA launched successfully new and long-awaiting spacecraft: Herschel, the infrared telescope with a 3.5m mirror, and Planck, the CMB mapper. The spacecraft were carried by the Ariane-5, which lifted off from Kourou in French Guiana. They will stay in L2 to perform the research. This launch is one of the most expensive and important missions of the European Space Agency. Planck will measure the CMB with an accuracy more than 10 times better than the previous mission, WMAP. Because of this high sensitivity, both spacecraft are cooled to temperatures close to absolute zero by on-board liquid helium; staying in L2 is very helpful to maintain this state. Both spacecraft are designed to observe the Universe at its infancy: Herschel by observing the first stars and galaxies (whichever came first), and Planck by scrutinizing the first photons that were set free, making up the cosmic microwave background radiation."
Television

Octopuses Have No Personalities and Enjoy HDTV 482

Whiteox writes about an Australian researcher named Renata Pronk, who has discovered that octopuses prefer HDTV. She recruited 32 gloomy octopuses from the waters of Chowder Bay. Previously, researchers have reported little success when showing video to octopuses. Miss Pronk's insight was that the octopus eye is so refined that it might see standard PAL video, at 25 fps, as a series of stills. She tried HDTV (50 fps) and her subjects reacted to the videos of a crab, another octopus, or a swinging bottle on the end of a string. A further discovery is that octopuses show no trait of individual personalities, even though they exhibit a high level of intelligence. It would certainly be possible to quibble about the definition of "personality" employed, and whether Miss Pronk had successfully measured it.
The Almighty Buck

$700 Billion Bailout Signed Into Law 857

Many readers reminded us of what no-one can have failed to hear: that the Congress passed and the President signed a $700B bailout bill in an attempt to avert the meltdown of the US economy. The bill allocates $700 billion to the Treasury Department for the purchase of so-called "toxic assets" that have been weighing down Wall Street balance sheets. This isn't particularly a tech story, though tech will be affected as will virtually all parts of the economy, and not just in the US. Among the $110B in so-called pork added to the bill to sway reluctant legislators are extensions of popular tax benefits for business R&D and alternative energy, relief for the growing pool of people subject to the alternative minimum tax, and a provision raising the FDIC's ceiling of guaranteed deposits to $250,000. Some limits were also imposed on executive compensation, though it's unclear whether they will be effective.
Biotech

A 30-Picowatt Processor For Sensors 93

Roland Piquepaille writes "University of Michigan (U-M) researchers have developed an ultra low power microchip which 'uses 30,000 times less power in sleep mode and 10 times less in active mode than comparable chips now on the market.' It only consumes 30 picowatts in sleep mode, which means that a simple watch battery could power the chip for more than 200 years. Of course, this is not a processor for your next computer. It is designed for sensor-based devices such as medical implants, environment monitors or surveillance equipment. However, the design is very clever." Roland's blog has some more information, including a die picture of the chip, known as the Phoenix.
AMD

Submission + - An insight into AMD's new linux driver development (phoronix.com)

Cowards Anonymous writes: "It's no secret that ATI Technologies has had a rough time in the past delivering display drivers that met the expectations of their customers. When ATI started out producing a FireGL and Radeon Linux driver they for some time were greatly behind NVIDIA's feature-rich driver.

The early ATI Linux driver had lacked essential functionality such as PCI Express and x86_64 architecture support and was also affected by stability and performance problems — not to mention a great deal of bugs.

Things are looking better though, as the article explains."

Graphics

3-D Virtual Maps For the Blind 50

Roland Piquepaille writes to let us know about research into producing palpable maps for the blind. Scientific American has the story of Greek researchers who produce 3D "haptic" maps that "use force fields to represent walls and roads so the visually impaired can better understand the layout of buildings and cities." Two separate systems produce haptic output from standard video and from 2D maps. The systems have been tested on a small number of users. Currently the devices that interpret the "force fields" for sight-impaired users are not portable, and so the systems are most appropriate for doing research before, e.g., visiting a new city.
Debian

Two Major Debian Releases In One Day 189

AndyCater writes "If all goes according to plan, Debian should release both an update to Debian Sarge (3.1r6, henceforth to be oldstable) and a new stable release (Debian 4.0, which was codenamed Etch) — and announce the results of the election for Debian Project Leader — all within 12 hours. Sarge was updated late on April 7th UTC, Sam Hocevar was announced as DPL at about 00:30 UTC, and preparations for the release of Debian Etch are ongoing and look good for later on the 8th."
Supercomputing

A Single-Photon Server 75

Roland Piquepaille writes "A team of German physicists at the Max Planck Institute of Quantum Optics has built a single-photon server with just one atom. They've trapped ultra cold atoms of rubidium in a vacuum chamber and applied laser pulses from one side. The generated photons were of 'high quality,' meaning their energy was very similar from one test to another, and that their properties could be controlled. The researchers think this new way to generate single photons will help the field of quantum information processing. "

Slashdot Top Deals

Where there's a will, there's a relative.

Working...