Forgot your password?
typodupeerror

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

by Sectrish (#44950091) Attached to: LLVM's Libc++ Now Has C++1Y Standard Library Support

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

by Sectrish (#28106237) Attached to: What Free IDE Do You Use?
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

by Sectrish (#28087365) Attached to: World's "Fastest" Small Web Server Released, Based On LISP
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).
AMD

+ - An insight into AMD's new linux driver development->

Submitted by
Cowards Anonymous
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."

Link to Original Source
Supercomputing

A Single-Photon Server 75

Posted by Zonk
from the is-that-an-ai-in-your-eyelash dept.
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. "
Operating Systems

+ - 64 bit Menuet 0.59 available

Submitted by Michael135
Michael135 (1068062) writes "Menuet is a fully assembly written OS for x86. Menuet 0.59 beta includes pre-emptive multitasking, multithreading, ring-3 protection, responsive GUI with resolutions up to 1280x1024, Editor/Assembler for applications, TCP/IP stack with Loopback & Ethernet drivers, simple http/ftp clients, free-form application windows and real-time data fetch. Menuet64 is released as freeware and Menuet32 under GPL."

"In matters of principle, stand like a rock; in matters of taste, swim with the current." -- Thomas Jefferson

Working...