Anyone try D or go?

With C++0x around the corner, I wonder if it's worth trying these two as alternatives:

http://en.wikipedia.org/wiki/D_(programming_language)

http://en.wikipedia.org/wiki/Go_(programming_language)

Both of these languages seem reasonably close to C++ in syntax that the transition would seem to be natural.

C++ is still my main weapon of choice, but these two look pretty good to me.

Anyone build a reasonable size project in either language?
Although D seems nice, it's not too well documented and lacks a "real" community. Go looks nice too, but I haven't really heard of that anywhere before, so you'll have to ask someone else on that.
closed account (EzwRko23)
One of the main problems of D is lack of libraries. It is not directly compatible neither with C, C++, .NET or Java. So they have to either create wrappers or deliver their own libs.
I've heard both good things and bad things about D as a programming language, including what xorebxebx mentioned regarding a lack of libraries. It is an easily metaprogrammable language, though. As for Go, is it just me, or does that language look strikingly like Java? Okay, maybe not syntactically in all ways, but it seems ridiculously easy.

I'll probably be sticking around for C++1x (it can no longer be called C++0x since we don't yet have any form of time machine). ;)

-Albatross
One of the things I like about Go (and C) is the size of the language: small. If I understand it correctly, one interesting feature is, it provides OOP-like functionality through its compiler mechanism simply through signatures (similar to functional languages). In other words, there is no need to worry about class hierarchies/virtual methods, like in OOP - if it satisfies an interface, that's good enough to get the proper implementation invoked.

WRT to D, I thought the big headache was having two standard/popular libs, Tango and Phobos, which are not compatible with each other. I think there's a hybrid of the two somewhere. And then there is an issue of the serious transition from D 1.0 to 2.0... ...maybe it's best to wait for the dust to settle.
The only way for new programming languages to take off is if organization start to embrace and build system software using those programming languages for their business operations. If businesses are not embracing it, then most likely new programming language will be relegated to academic and research and hobbyist communities.

We got to be realistic. The business world always drive the demand and adoption of new programming language. One way is for big players like M$, Google, Oracle etc to strongly promote those new programming language in new business product they sell to business customers else I see a dim light ahead at the tunnel :O
closed account (EzwRko23)
Go is promoted by Google.
Anyway, I personally don't like this duck typing in Go. It is simple, but it also comes with less guidance from the compiler / IDE. E.g. when I implement an interface in Scala/Java/C#/whatever, IDE can tell me exactly which methods I should implement. Additionally, I can't see how it solves problems with multiple inheritance, can you elaborate on this?
Last edited on
Go appeared in 2009 which is last year. So it remain to be seen if Google can pull it off like what Sun Microsystems did for Java which is a phenomenal success for them until Oracle acquired them.

Surprisingly, one of the creators is Ken Thompson the guy who invented B before Dennis Ritchie invent C. It is strange why the duo did not join forces on this Go language ?

Btw the wikipedia of Ken Thompson show him and Ritchie and they have really LONG beard. Don't they shave ? Or they are too caught up to shave ? :P
Ken Thompson was one of the inventors of UNIX... ...this guy was a comp. sci. GOD long before anyone heard of Stroustrup.

Btw the wikipedia of Ken Thompson show him and Ritchie and they have really LONG beard. Don't they shave ? Or they are too caught up to shave ?


hehe - you must be a young 'un! Richard Stallman and many other UNIX gurus were always like this... ...I have no idea why, but I consider this a part of UNIX lore.

Last edited on
WRT multiple inheritance, I think it dodges the need for MI through the Interface mechanism (looks similar to a Java interface). In other words, if it quacks like a Duck, it's a Duck...

http://golang.org/doc/effective_go.html#interfaces_and_types

It looks like a very clean design.
hehe - you must be a young 'un! Richard Stallman and many other UNIX gurus were always like this... ...I have no idea why, but I consider this a part of UNIX lore.


Hmm.. but wikipedia Perl creator Larry Wall don't have long beard. He only have very thick moustache so I guess Unix gurus either have long beard or thick moustache! And wikipedia Java creator James Gosling not only have long beard, thick moustache, he also have very few hairs at the head cool image!

Btw I am not a young 'un. I am born in the mid-70's so go figure my real age :P
mid-70's is relatively young

The beards could be a Berkeley thing... ...a lot of UNIX had roots in Berkeley.

perl came in '87, Java in '95 - but emacs came in '76 and UNIX in '69, decades before... ...Ken Thompson came from this early group.
Last edited on
I am not a beard fanatic but I wonder won't it be a hassle to maintain those beard ? But looking at the wikipedia pictures, they don't even maintain at all lol :P
I am not a beard fanatic but I wonder won't it be a hassle to maintain those beard ? But looking at the wikipedia pictures, they don't even maintain at all lol :P

You got the point - having those beards allowed them to get away with not shaving (lower maintenance) - for better or worse, a lot of these guys just didn't think image was important.

You can check out this thread for your amusement:

http://boards.straightdope.com/sdmb/showthread.php?t=205274

Last edited on
Almost all intellectuals have impressive beards (Darwin, Marx) or moustaches (Nietzsche). And they all make this face: http://www.luccihotelrome.com/hotels-rome-reviews/wp-content/uploads/2010/03/nietzsche.jpg
Topic archived. No new replies allowed.