Not as good as D: 1) is not as good as the D series opening instructions

I have been thinking about writing a series of introductions and usages of D for a long time, but since I am lazy and fail to write, I have been slow to do so. Today, I saw the columns of rust and kotlin on the know, and decided to do it.

In the past two years, I have used D language, which is also an introduction. There should be no mistakes in the mistakes of my children. I have never written a letter, and I hope that I can organize them. I also hope to popularize the D language. After all, the popularity and circle of D language in China. They are too small. Personal strength is limited, I hope that D language enthusiasts will make progress together and expand the influence of D. Now the relatively active D language group in China seems to be Expert D (D language Dlang) (531010036).

Let’s talk about D, let’s talk about the D language first:

  • Developed by Walter Brett and Andrei Alexandrescu, from C++
  • D2 was designed in 2007 and a stable version was released in 2010.
  • Efficient compiled language
  • Efficient with C++, but easy to use with python, C# and java
  • C language abi is directly compatible
  • With GC, it also supports full manual management of memory.
  • There are several compilers: DMD, LDC, GDC

Here is an introduction from Wikipedia: D language

D language Is a kind Program language ,have Multi-paradigm ,E.g Object orientation Instructive . by Walter Brett with Andrea Alexandrescu Developed from C++ It is deeply influenced by C++. However, it is not a variant of C++. Instead, it redesigns some features from C++ and is influenced by other programming language concepts, such as Java C# as well as Eiffel

Walter Bright itself is Symantec C++ Author of the compiler; another author Andrei Alexandrescu Yes Facebook Research scientist, he worked with a team to rewrite some of Facebook’s important operations in D language.

The D language is now D2 in version 2.x, and many features have been redesigned. The original 1.x version was called D1. D1 and D2 are not compatible, similar to py2 and py3, and now D1 is no longer updated and maintained. This series is also only for D2.

Let’s start with a hello world code to start the series:

import std.stdio : writeln; // 引入 标准输入输出 模块的 writeln函数int main(string[] args) // main 函数,完整的写法,同样支持: int main() 或 void main(){writeln("Hello world!"); // 输出 Hello world 到控制台    return 0;}

The introduction is here, the next part we will look at an official example to feel the power of the D language.

Official website: Home – D Programming Language

Github: D Programming Language

forum: Index

D Language Foundation: The D Language Foundation

Package management: Find, Use and Share DUB Packages

The address of this article on my blog: Not as good as D: 1) Opening instructions | Du Shibaiyu