A new way to program.
How to install?
irm https://raw.githubusercontent.com/Angel25051/d-lang/main/installers/installar.ps1 | iex |
Titan Engine v1.0 Release — Declaration of Syntactic Sovereignty Author: Ángel The D language is complete, autonomous, and absolute. Everything that works in compilation is enshrined in its syntax.
Every form, every token, every reserved word, every operator, every control structure, every valid construct: all of this constitutes the official D syntax. This is the formal documentation.
The D language defines new, more expressive, powerful, and safer forms:
type
— structure definitiontype Person {
name: str;
age: int;
}
def
— typed function declarationdef int add(int a, int b) {
return a + b;
}
own
— explicit memory ownershipown str hello = strdup("Hello world");
Memory is freed upon exiting the block.
print()
and println()
— printing with interpolationprint(f"Age is {person.age}");
``"
#### `import` — direct modular loading
```d
import math;
Access standard and custom modules.
{}
Blocks and Free Nestingif (condition) {
{
own str message = strdup("Hello");
println(message);
}
}
+
, -
, *
, /
, %
++
, --
==
, !=
, >
, <
, >=
, <=
&&
, ||
, !
&
, |
, ^
, ~
, <<
, >>
=
, +=
, -=
, *=
, /=
, %=
, &=
, |=
, ^=
, <<=
, >>=
*
, &
, ->
,
[]
? :
.
(type)
sizeof
&
D respects the universal operator precedence table, as recognized by compilers.
inline
restrict
noreturn
_Thread_local
_Alignas
_Alignof
_Generic
_Static_assert
_Atomic
__FILE__
__LINE__
__DATE__
__TIME__
__func__
__STDC__
__STDC_VERSION__
#ifdef IDENTIFIER
#elif defined(OTHER)
#else
#endif
__attribute__((...))
__declspec(...)
__builtin_popcount()
__sync_fetch_and_add()
__asm__ __volatile__("instruction")
__attribute__((cdecl))
__attribute__((stdcall))
__attribute__((fastcall))
#include <fenv.h>
#include <dirent.h>
#include <syslog.h>
#include <sched.h>
#include <ucontext.h>
#include <complex.h>
D++lang is fully compatible with all C libraries — standard or external — as long as they are correctly installed on the system and available at compile time.
You may include any C header and call its functions directly:
#include <math.h>
#include <raylib.h>
def int main() {
println(f"sin(0.5) = {sin(0.5)}");
InitWindow(800, 600, "Raylib in D++lang");
CloseWindow();
return 0;
}
**This is D. No copying, no inheritance. Everything that compiles in D is from D.**
**D is a sovereign language. It contains everything.**
The D++lang Standard Library is designed to be a collection of essential modules similar to Python’s standard library. Our goal is to encourage rapid development and widespread adoption by making it easy for developers to integrate with external libraries and build robust applications.
sqrt()
, sin()
, and cos()
.type
, def
, and explicit type declarations that keep code both readable and closely aligned with machine-level operations.int
) to maintain precision and performance.We want D++lang to become not only a powerful language but also one with a strong, vibrant community. Here’s how you can help:
With a community-driven effort, D++lang aims to surpass languages like C by blending simplicity, control, and rapid integration of libraries—even if its user base starts small.
Happy coding with D++lang!