
Με αφορμή το post viewtopic.php?f=7&t=12779&start=20#p228281
θα αφιερώσουμε αυτό το thread για την γλώσσα προγραμματισμού D.
Λίγα λόγια από την σελίδα στην wikipedia http://en.wikipedia.org/wiki/D_%28progr ... anguage%29
έγραψε:The D programming language is an object-oriented, imperative, multi-paradigm system programming language created by Walter Bright of Digital Mars. It originated as a re-engineering of C++, but even though it is mainly influenced by that language, it is not a variant of C++. D has redesigned some C++ features and has been influenced by concepts used in other programming languages, such as Java, Python, Ruby, C#, and Eiffel.
D's design goals attempt to combine the performance of compiled languages with the safety and expressive power of modern dynamic languages. Idiomatic D code is commonly as fast as equivalent C++ code, while being shorter and memory-safe. Type inference, automatic memory management and syntax sugar for common types allow faster development, while bounds checking, Design by contract features and a concurrency-aware type system help reduce the occurrence of bugs.
Λίγα λόγια για το πως εξελίσσεται από το site της
έγραψε:It is not governed by a corporate agenda or any overarching theory of programming. The needs and contributions of the D programming community form the direction it goes.
Έχει εύκολη σύνταξη κάνει compile σε χρόνο ρεκόρ, έχει interpreter για πειραματισμούς, αυτόματη διαχείρηση μνήμης και πολλά άλλα
και παρόλο που δεν έχει multiple inheritance έχει interfaces όπως την java. θεωρείτε απλούστερη C++ .
Δεν είναι πολύ διάσημη αλλά σίγουρα αξίζει την προσοχή μας
Από εδώ την κατεβάζουμε (καλύτερα την έκδοση 2)
http://www.d-programming-language.org/download.html
αφού την εγκαταστήσουμε κάνουμε compile έτσι
- Κώδικας: Επιλογή όλων
dmd code.d
και να εκτελούμε το code
- Κώδικας: Επιλογή όλων
./code
και μπορούμε ακόμα και να χρησιμοποιήσουμε τον interpreter
αποφέυγοντας το compilation
βαζοντας μονάχα στην πρώτη γραμμή #!/usr/bin/rdmd
και εκτελούμε έτσι
- Κώδικας: Επιλογή όλων
chmod +x code.d
- Κώδικας: Επιλογή όλων
rdmd ./code.d
Π.χ
- Κώδικας: Επιλογή όλων
import std.stdio;
void main() {
writeln("Hello, ubuntu-gr.org");
}
Links
http://www.d-programming-language.org/index.html

