D language utility library

Package Information

Version0.11.1 (2017-May-24)
AuthorsTimur Gafarov, Martin Cejp, Andrey Penechko, Vadim Lopatin, Nick Papanastasiou, Oleg Baharev, Roman Chistokhodov, Eugene Wissner
Registered byTimur Gafarov
Dependencies none


To use this package, put the following dependency into your project's dependencies section:




dlib is a growing collection of native D language libraries useful for various higher-level projects - such as game engines, rendering pipelines and multimedia applications. It is written in D2 and has no external dependencies aside D's standard library, Phobos.

Build Status DUB Package DUB Downloads License codecov

What's inside

Currently dlib contains the following packages:

  • dlib.async - event loop and asynchronous programming capabilities

  • dlib.core - basic functionality used by other modules (manual memory management, streams, OOP for structs, etc.)

  • dlib.container - generic data structures (GC-free dynamic and associative arrays and more)

  • dlib.filesystem - abstract FS interface and its implementations for Windows and POSIX filesystems

  • dlib.functional - some functional programming idioms (HOFs, combiners, quantifiers, etc.)

  • dlib.math - linear algebra and numerical analysis (vectors, matrices, quaternions, linear system solvers etc.)

  • dlib.geometry - computational geometry (ray casting, primitives, intersection, etc.)

  • dlib.image - image processing (8-bit, 16-bit and 32-bit floating point channels, common filters and convolution kernels, resizing, FFT, HDRI, animation, graphics formats I/O: JPEG, PNG/APNG, BMP, TGA, HDR)

  • - sound processing (8 and 16 bits per sample, synthesizers, WAV export and import)

  • - networking and web functionality

  • dlib.memory - allocators and memory management functions

  • dlib.text - text processing

  • dlib.serialization - data serialization (currently includes lightweight XML parser)

  • dlib.coding - various data compression and coding algorithms


Please, refer to the wiki. Also HTML documentation can be generated from wiki pages using this set of tools. Be aware that documentation is currently incomplete.

For support and overall discussions, use our Gitter chat room.


Copyright (c) 2011-2017 Timur Gafarov, Martin Cejp, Andrey Penechko, Vadim Lopatin, Nick Papanastasiou, Oleg Baharev, Roman Chistokhodov, Eugene Wissner. Distributed under the Boost Software License, Version 1.0 (see accompanying file COPYING or at

Available versions

0.11.1 0.11.0 0.11.0-beta.1 0.10.1 0.10.0 0.10.0-beta.1 0.9.2 0.9.1 0.9.0 0.9.0-beta.1 0.8.1 0.8.0 0.8.0-beta.1 0.7.1 0.7.0 0.7.0-beta.1 0.6.4 0.6.3 0.6.2 0.6.1 0.6.0 0.5.3 0.5.2 0.5.1 0.5.0 0.4.1 0.4.0 0.3.3 0.3.2 0.3.1 0.3.0 0.2.4 0.2.3 0.1.2 0.1.1 ~master ~crypto