Getting started with D

dub init
dub build
Edit source/app.d to start your project.
import std.stdio;void main()
{
writeln("Edit source/app.d to start your project.");
}
{
"cmd": "dub",
"args": ["run"],
"cwd": "{PROJECT_PATH}"
}
Atom with D tools
dub add dlib
import std.stdio;
import dlib;
void main()
{
auto img = loadPNG("image.png");
writeln(img.width);
}
Decoding PNG with dlib

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store