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

  1. SafeD: @safe, @trusted, and @system

    Lesson 1 · On the house

    SafeD: @safe, @trusted, and @system

    Memory safety attributes: what @safe forbids, when @trusted bridges, and how @system opts out.

  2. const, immutable, and inout

    Lesson 2

    const, immutable, and inout

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

  3. Type lists: AliasSeq, staticMap, Filter

    Lesson 3

    Type lists: AliasSeq, staticMap, Filter

    Compile-time type and value sequences with std.meta for generic transforms.

  4. opDispatch and design by introspection

    Lesson 4

    opDispatch and design by introspection

    Forward unknown member names with opDispatch and build APIs from compile-time member lists.

  5. SumType tagged unions

    Lesson 5

    SumType tagged unions

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

  6. shared, synchronized, and core.atomic

    Lesson 6

    shared, synchronized, and core.atomic

    Sharing mutable data across threads with shared types, locks, and atomic operations.

  7. Custom allocators

    Lesson 7

    Custom allocators

    std.experimental.allocator: allocate, deallocate, and compose building blocks like FreeList.

  8. -betterC and extern(C) interop

    Lesson 8

    -betterC and extern(C) interop

    C ABI functions in D, calling libc, and the -betterC subset without the D runtime.

  9. SIMD with core.simd

    Lesson 9

    SIMD with core.simd

    Vector types float4 and int4: elementwise ops and when SIMD pays off.

  10. Nested functions, lazy parameters, and auto ref

    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.

All lessons