First of all, I’d like to introduce myself: I’m Alexander Panek, “the new one” . I’m an eighteen year old student from Austria, interested in all kinds of programming and stuff like that.
As D is my language of choice, I’d really like it to be all famous and w00t’n stuff. So I’m sharing my joy and the news that another revision of D is released. The official D programming language site is here. You can find a language reference, standard runtime reference, articles, a few NG archives, and a fancy NG web interface there.
To give you a little overview of what D is about, here’s a list of features and neat sugar:
Object Orientation (classes, structs, interfaces, …)
Mighty Templates
Dynamic & Associative Arrays
Array Slicing
..and much much more.
With the new version of the D compiler, the language supports Scope Guards:
“Scope guards are a novel feature no other language has. They’re based on Andrei Alexandrescu’s scope guard macros, which have led to considerable interest in the idea. Check out the article
www.digitalmars.com/d/exception-safe.html”
– Walter Bright (digitalmars.D newsgroup)
Also, the syntactic sugar for regular expressions like in Perl was removed because a lack of public acceptance.
Installation
If you’d like to try out the D programming language, I’ve got a little script for Linux/Bash users out there:
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/33383
It’s quite simple: installation of DMD (D compiler) into prefix/bin, libphobos.a into prefix/lib, Phobos’ source into prefix/src, the offline documentation + example code into prefix/doc and the manpages for DMD, obj2asm, objdump into your manpage directory. You can also have a noroot installation, where manpages and /etc/dmd.conf are not created. If you’re too lazy to get the compiler from the D site, the script downloads it for you via wget.
For example:
./install-d.sh ~/d-stuff -d --noroot
..will install D into /home/yourname/d-stuff/{bin,doc,lib,src}.
For Windows users, it’s quite simple to install D:
download the D compiler & linker from here
unzip dmd.zip and dmc.zip into the same directory (preferably to C:\)
If you’d like to have dmd & co available without being always in C:\dmd\bin\, just add the directory to your PATH variable with ’set’
If you’ve got any problems or questions to D, just post a comment with the question, go to the NG interface on the D site or connect to the IRC network ‘freenode’ (irc.freenode.net) and join channel #d.
I will NOT take charge of any addiction related to D or this post.