Lessons
D · Expert
D · Expert. Ten lessons. Open-book quizzes. Lesson 1 free.
10 lessons · The Host · Lesson 1 free
Pass all ten lessons for the certificate. Sample · Claim

Lesson 1 · On the house
SafeD: @safe, @trusted, and @system
Memory safety attributes: what @safe forbids, when @trusted bridges, and how @system opts out.

Lesson 2
const, immutable, and inout
Transitive const, immutable uniqueness, and inout for functions that preserve qualifiers.

Lesson 3
Type lists: AliasSeq, staticMap, Filter
Compile-time type and value sequences with std.meta for generic transforms.

Lesson 4
opDispatch and design by introspection
Forward unknown member names with opDispatch and build APIs from compile-time member lists.

Lesson 5
SumType tagged unions
std.sumtype: type-safe unions, match handlers, and when Algebraic still appears.

Lesson 6
shared, synchronized, and core.atomic
Sharing mutable data across threads with shared types, locks, and atomic operations.

Lesson 7
Custom allocators
std.experimental.allocator: allocate, deallocate, and compose building blocks like FreeList.

Lesson 8
-betterC and extern(C) interop
C ABI functions in D, calling libc, and the -betterC subset without the D runtime.

Lesson 9
SIMD with core.simd
Vector types float4 and int4: elementwise ops and when SIMD pays off.

Lesson 10
Nested functions, lazy parameters, and auto ref
Closures over locals, lazy evaluation of arguments, and auto ref return binding.
Sample certificate
Certificate of completion
Sign in to claim your certificate of completion.
Certificate
Finish all ten lessons, then sign in
Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.