Last update June 5, 2004

The D programming language

D is a programming language which seems to be designed for real programmers to use. It is a general purpose programming language. It is compiled, not interpreted, and it has many features built into it for which C++ would require an external library. See the Digital Mars D site for more information.


D Runtime Library

The runtime library which comes with the D compiler is called Phobos, named after one of the moons of Mars. Deimos (named after the other of Mars's moons) is the unofficial but commonly used name for a body of code which is provided by contributors to supplement the modules provided by Phobos.

Deimos utilises the namespace etc. For example, the bigint module may be imported by the D statement: import etc.bigint;. The etc namespace is described by the official Digital Mars documentation as:

This is the root of a hierarchy of modules mirroring the std hierarchy. Modules in etc are not standard D modules. They are here because they are experimental, or for some other reason are not quite suitable for std, although they are still useful.

In addition to that description, the Digital Mars folk have stated that etc is also the appropriate place for contributor libraries which might one day migrate into Phobos. These are early days for D, and currently there is no official procedure for deciding what goes into etc and what doesn't. All I can really say is that I don't own this namespace, so if you write a library or module and would like it to go into etc, don't ask me if it's ok. Instead, get onto the D forum and the Digital Mars website and ask the guys there. I'm sure an official mechanism will arise in the near future.

The below, then, are contributions to Deimos currently available.


etc: Experimental library modules

Unlimited precision integers. (Requires
Functions relating to prime numbers

Copyright (c) 2004 by Deimos Contributors. All Rights Reserved.