Getting started with D

Step 1. Install the compiler

Step 2. Create a new project

dub init
dub build
Edit source/app.d to start your project.

Step 3. Install Atom and ide-dlang

import std.stdio;void main()
writeln("Edit source/app.d to start your project.");

Step 4. Create a build configuration

"cmd": "dub",
"args": ["run"],
"cwd": "{PROJECT_PATH}"
Atom with D tools

Step 5. Add dependencies

dub add dlib
import std.stdio;
import dlib;
void main()
auto img = loadPNG("image.png");
Decoding PNG with dlib

What next?




Computer graphics developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Overview of next-generation Java frameworks

Django vs Laravel: Which framework to choose?

Day 5

Flyway in Practice — How I use in my projects

My Software Engineering Bootcamp Experience (A technical review) — P.1

Going Agile for Zomato

Rhythm Quest Devlog 3 — Flying Mechanic and Level Generation

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
Timur Gafarov

Timur Gafarov

Computer graphics developer

More from Medium

Top 10 Use Cases for Workspace ONE Intelligence for your Mobile Device Fleet (Part 1)

A simple story from 2019 — Web developer: Road to be a master for us

10 Easiest Tips To Write A Blog Post

Taaza Khabre

1 Year with my Smartphone