I knew D would probably have smaller code that would compile faster, but I didn't realize that the optimizer was so good that it could out-perform C++ in the speed category...
Herm... as far as build compilation and source size, I can quite clearly see that happening with ease. As far running speed, that depends.
There are three D2 implementations that are in major competition: DMD which uses a proprietary optimizer/backend (I think? Walter owns the rights.. might have changed them), DGC which uses the GCC backend, and LDC which uses the LLVM backend.
I don't know how mature any of those are but the output binary, I would assume, is potentially as fast as any C++ compiler that uses those backends.
Perhaps D will finally get the recognition it deserves.
I truly wish for it to be widely adopted, in the very near future. What bugs me in that regard is that I don't see them taking steps to standardize it.
Anyway, this is a great incentive for me to resume learning it, and hopefully for others to start!
The biggest advantage D has over C++ is design. D removes the limitation of C and adds modern language constructs that removes the need of things like any type of boilerplate, 3rd party libraries for type intrinsics, and a more efficient language from a parsing perspective to help optimize compile time and potentially make compiler implementation faster.
I don't think they removed PHP, just the C++ portion.
Some people would say most languages have that advantage over C++.
D removes the limitation of C and adds modern language constructs that removes the need of things like any type of boilerplate
Indeed, I recall struct and class are treated differently in D, with objects of the latter always being passed by reference. The boilerplate is further reduced by simple things, such as arrays being first class citizens.
Hip hop is not a language. We were talking about languages, right?
it is somewhat of its own langauge. even though it is technically php, they said that some of the features of it were removed. they were little used apparently, but features they were. anyways, if you just want to call it a compiler, then that means php and c++ must be able to compare at some level
PHP is interpreted, C++ is compiled. You're not making much sense.
i dont know what your talking about. that is the common way of translating them to machine language/html respectively, but you can interpret c++ and compile php. hiphop compiles php code and outputs an equivalent source file. i said it wasnt completely php, because some of the features that werent widely used were removed for speed reasons
Anyone feels like recommending a compiler for linux?
Of all the languages discussed in this thread, could you be a little more vague? I'm assuming you mean D: http://gdcgnu.sourceforge.net/ (first on google)