About the D compiler
Modern systems language. Compiled online. Run D code in your browser with no install and no signup — the editor, the input and the output share one screen. D is executed by a remote runtime: your code is submitted to it and the output is returned to this page.
Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.
A D example
This is the program the D editor opens with — run it as it is, then change it.
import std.stdio;
import std.algorithm;
import std.array;
import std.range;
void main() {
writeln("D Language Demo\n");
// Array operations
auto nums = [64, 34, 25, 12, 22, 11, 90];
writeln("Original: ", nums);
auto sorted = nums.dup.sort();
writeln("Sorted: ", sorted.array);
auto sum = nums.sum;
writeln("\nSum: ", sum);
writeln("Min: ", nums.minElement);
writeln("Max: ", nums.maxElement);
// Struct
struct Student {
string name;
int score;
}
auto students = [
Student("Alice", 92),
Student("Bob", 87),
Student("Charlie", 95),
The editor opens with the full program.
More Systems & Low-Level compilers
Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.