A general-purpose systems language with static typing, native code and C-like syntax
open sourceBSL-1.0free
D is a general-purpose systems and applications programming language with static typing, C-like syntax and direct access to the operating system and hardware. It compiles to native code and has a garbage collector, with manual memory control and a @nogc subset when you need them, plus compile-time function evaluation, templates and ranges for generic and functional code. This listing covers the language and DMD, its official reference compiler; GDC (GCC-based) and LDC (LLVM-based) are the other compilers. Libraries are published on the DUB package registry, and the D Language Foundation stewards the language.
Libraries for D
Talira doesn't list any yet.
Problems it solves
- a systems language like C++ but faster to write and quicker to compile
- a compiled language with garbage collection that can still drop to manual memory
- write high-performance code that calls C libraries directly
Features
- static typing with type inference
- compiles to native code
- garbage collection, with manual allocation and a @nogc subset
- templates, ranges and compile-time function evaluation
- direct access to C APIs and hardware
- three compilers: DMD, GDC and LDC
Alternatives
The same job
These do what D does.
- Rust A language empowering everyone to build reliable and efficient software.
- Swift A general-purpose programming language that's approachable for newcomers and powerful for experts
- Pony An open-source, object-oriented, actor-model, capabilities-secure, high-performance programming language
- V Simple, fast, safe, compiled. For developing maintainable software
- Crystal A language for humans and computers
- Nim Efficient, expressive, elegant