Live data from Hacker News

D Language accepted for inclusion in GCC

gcc.gnu.org

1–10 of 235 posts

Re: D Language accepted for inclusion in GCC

#3
post #2

There has been out-of-tree GCC support for D for several years. I wonder what has changed that they're letting it in to the official repository.

The reference compiler got open sourced about 2 months ago.

https://news.ycombinator.com/item?id=14060846

Re: D Language accepted for inclusion in GCC

#6
post #2

There has been out-of-tree GCC support for D for several years. I wonder what has changed that they're letting it in to the official repository.

My guess is that is also why. gcc wants to be assured there are sufficient maintainers. If a crew has been maintaining out-tree-support with a good track record, that demonstrates maintainability.

Re: D Language accepted for inclusion in GCC

#10

I have read many posts saying D was better than C++ as a language but there were no libraries for use case X. Now this may help popularise the language.

One of D's goals is to be ABI compatible with C and C++, ABI compatibility with C is 100% as I understand it. C++ is a work in progress.

What is ABI compatiblity? in a nutshell it let's you use libraries from another programming language. In D, all you need is a D file that describes the C/C++ library as a wrapper so the D compiler knows what you are using.

This means D will build upon everything that already exists for C/C++. You can intermix C/C++ and D in the same project if you so choose to. Which is really a big deal because you don't necessarily have to stop and rewrite years of code you might already have to start using D.

Syntax wise D is a kin to C#/Java, so if you know C# or Java, jumping over to using D is just a matter of learning the language specific Gotchas and core libraries. So the learning curve is quite low if you know C/C++,C#, or Java.

to see what D libraries are out there I suggest looking at http://code.dlang.org/

Post reply on HN