3 $(P Phobos is the standard runtime library that comes with the D language
6 $(P Generally, the `std` namespace is used for the main modules in the
7 Phobos standard library. The `etc` namespace is used for external C/C++
8 library bindings. The `core` namespace is used for low-level D runtime
11 $(P The following table is a quick reference guide for which Phobos modules to
12 use for a given category of functionality. Note that some modules may appear in
13 more than one category, as some Phobos modules are quite generic and can be
14 applied in a variety of situations.)
21 $(LEADINGROW Algorithms & ranges)
24 $(MREF std,algorithm)$(BR)
25 $(MREF std,range)$(BR)
26 $(MREF std,range,primitives)$(BR)
27 $(MREF std,range,interfaces)$(BR)
29 $(TD Generic algorithms that work with $(MREF_ALTTEXT ranges, std,range)
30 of any type, including strings, arrays, and other kinds of
31 sequentially-accessed data. Algorithms include searching,
32 comparison, iteration, sorting, set operations, and mutation.
35 $(LEADINGROW Array manipulation)
38 $(MREF std,array)$(BR)
39 $(MREF std,algorithm)$(BR)
41 $(TD Convenient operations commonly used with built-in arrays.
42 Note that many common array operations are subsets of more generic
43 algorithms that work with arbitrary ranges, so they are found in
47 $(LEADINGROW Containers)
50 $(MREF std,container,array)$(BR)
51 $(MREF std,container,binaryheap)$(BR)
52 $(MREF std,container,dlist)$(BR)
53 $(MREF std,container,rbtree)$(BR)
54 $(MREF std,container,slist)$(BR)
56 $(TD See $(MREF_ALTTEXT std.container.*, std,container) for an
60 $(LEADINGROW Data formats)
62 $(TDNW $(MREF std,base64))
63 $(TD Encoding / decoding Base64 format.)
66 $(TDNW $(MREF std,csv))
67 $(TD Read Comma Separated Values and its variants from an input range of $(CODE dchar).)
70 $(TDNW $(MREF std,json))
71 $(TD Read/write data in JSON format.)
74 $(TDNW $(MREF std,zip))
75 $(TD Read/write data in the ZIP archive format.)
78 $(TDNW $(MREF std,zlib))
79 $(TD Compress/decompress data using the zlib library.)
81 $(LEADINGROW Data integrity)
83 $(TDNW $(MREF std,checkedint))
84 $(TD Checked integral types.)
87 $(TDNW $(MREF std,digest))
88 $(TD Compute digests such as md5, sha1 and crc32.)
91 $(TDNW $(MREF std,digest,crc))
92 $(TD Cyclic Redundancy Check (32-bit) implementation.)
95 $(TDNW $(MREF std,digest,hmac))
96 $(TD Compute HMAC digests of arbitrary data.)
99 $(TDNW $(MREF std,digest,md))
100 $(TD Compute MD5 hash of arbitrary data.)
103 $(TDNW $(MREF std,digest,murmurhash))
104 $(TD Compute MurmurHash of arbitrary data.)
107 $(TDNW $(MREF std,digest,ripemd))
108 $(TD Compute RIPEMD-160 hash of arbitrary data.)
111 $(TDNW $(MREF std,digest,sha))
112 $(TD Compute SHA1 and SHA2 hashes of arbitrary data.)
114 $(LEADINGROW Date & time)
116 $(TDNW $(MREF std,datetime))
117 $(TD Provides convenient access to date and time representations.)
120 $(TDNW $(MREF core,time))
121 $(TD Implements low-level time primitives.)
123 $(LEADINGROW Exception handling)
125 $(TDNW $(MREF std,exception))
126 $(TD Implements routines related to exceptions.)
129 $(TDNW $(MREF core,exception))
130 $(TD Defines built-in exception types and low-level
131 language hooks required by the compiler.)
133 $(LEADINGROW External library bindings)
135 $(TDNW $(MREF etc,c,curl))
136 $(TD Interface to libcurl C library.)
139 $(TDNW $(MREF etc,c,odbc,sql))
140 $(TD Interface to ODBC C library.)
143 $(TDNW $(MREF etc,c,odbc,sqlext))
146 $(TDNW $(MREF etc,c,odbc,sqltypes))
149 $(TDNW $(MREF etc,c,odbc,sqlucode))
152 $(TDNW $(MREF etc,c,sqlite3))
153 $(TD Interface to SQLite C library.)
156 $(TDNW $(MREF etc,c,zlib))
157 $(TD Interface to zlib C library.)
159 $(LEADINGROW I/O & File system)
161 $(TDNW $(MREF std,file))
162 $(TD Manipulate files and directories.)
165 $(TDNW $(MREF std,path))
166 $(TD Manipulate strings that represent filesystem paths.)
169 $(TDNW $(MREF std,stdio))
170 $(TD Perform buffered I/O.)
172 $(LEADINGROW Interoperability)
175 $(MREF core,stdc,complex)$(BR)
176 $(MREF core,stdc,ctype)$(BR)
177 $(MREF core,stdc,errno)$(BR)
178 $(MREF core,stdc,fenv)$(BR)
179 $(MREF core,stdc,float_)$(BR)
180 $(MREF core,stdc,inttypes)$(BR)
181 $(MREF core,stdc,limits)$(BR)
182 $(MREF core,stdc,locale)$(BR)
183 $(MREF core,stdc,math)$(BR)
184 $(MREF core,stdc,signal)$(BR)
185 $(MREF core,stdc,stdarg)$(BR)
186 $(MREF core,stdc,stddef)$(BR)
187 $(MREF core,stdc,stdint)$(BR)
188 $(MREF core,stdc,stdio)$(BR)
189 $(MREF core,stdc,stdlib)$(BR)
190 $(MREF core,stdc,string)$(BR)
191 $(MREF core,stdc,tgmath)$(BR)
192 $(MREF core,stdc,time)$(BR)
193 $(MREF core,stdc,wchar_)$(BR)
194 $(MREF core,stdc,wctype)$(BR)
197 D bindings for standard C headers.$(BR)$(BR)
198 These are mostly undocumented, as documentation
199 for the functions these declarations provide
200 bindings to can be found on external resources.
203 $(LEADINGROW Memory management)
205 $(TDNW $(MREF core,memory))
206 $(TD Control the built-in garbage collector.)
209 $(TDNW $(MREF std,typecons))
210 $(TD Build scoped variables and reference-counted types.)
212 $(LEADINGROW Metaprogramming)
214 $(TDNW $(MREF core,attribute))
215 $(TD Definitions of special attributes recognized by the compiler.)
218 $(TDNW $(MREF core,demangle))
219 $(TD Convert $(I mangled) D symbol identifiers to source representation.)
222 $(TDNW $(MREF std,demangle))
223 $(TD A simple wrapper around core.demangle.)
226 $(TDNW $(MREF std,meta))
227 $(TD Construct and manipulate template argument lists (aka type lists).)
230 $(TDNW $(MREF std,traits))
231 $(TD Extract information about types and symbols at compile time.)
234 $(TDNW $(MREF std,typecons))
235 $(TD Construct new, useful general purpose types.)
237 $(LEADINGROW Multitasking)
239 $(TDNW $(MREF std,concurrency))
240 $(TD Low level messaging API for threads.)
243 $(TDNW $(MREF std,parallelism))
244 $(TD High level primitives for SMP parallelism.)
247 $(TDNW $(MREF std,process))
248 $(TD Starting and manipulating processes.)
251 $(TDNW $(MREF core,atomic))
252 $(TD Basic support for lock-free concurrent programming.)
255 $(TDNW $(MREF core,sync,barrier))
256 $(TD Synchronize the progress of a group of threads.)
259 $(TDNW $(MREF core,sync,condition))
260 $(TD Synchronized condition checking.)
263 $(TDNW $(MREF core,sync,exception))
264 $(TD Base class for synchronization exceptions.)
267 $(TDNW $(MREF core,sync,mutex))
268 $(TD Mutex for mutually exclusive access.)
271 $(TDNW $(MREF core,sync,rwmutex))
272 $(TD Shared read access and mutually exclusive write access.)
275 $(TDNW $(MREF core,sync,semaphore))
276 $(TD General use synchronization semaphore.)
279 $(TDNW $(MREF core,thread))
280 $(TD Thread creation and management.)
282 $(LEADINGROW Networking)
284 $(TDNW $(MREF std,socket))
285 $(TD Socket primitives.)
288 $(TDNW $(MREF std,net,curl))
289 $(TD Networking client functionality as provided by libcurl.)
292 $(TDNW $(MREF std,net,isemail))
293 $(TD Validates an email address according to RFCs 5321, 5322 and others.)
296 $(TDNW $(MREF std,uri))
297 $(TD Encode and decode Uniform Resource Identifiers (URIs).)
300 $(TDNW $(MREF std,uuid))
301 $(TD Universally-unique identifiers for resources in distributed
304 $(LEADINGROW Numeric)
306 $(TDNW $(MREF std,bigint))
307 $(TD An arbitrary-precision integer type.)
310 $(TDNW $(MREF std,complex))
311 $(TD A complex number type.)
314 $(TDNW $(MREF std,math))
315 $(TD Elementary mathematical functions (powers, roots, trigonometry).)
318 $(TDNW $(MREF std,mathspecial))
319 $(TD Families of transcendental functions.)
322 $(TDNW $(MREF std,numeric))
323 $(TD Floating point numerics functions.)
326 $(TDNW $(MREF std,random))
327 $(TD Pseudo-random number generators.)
330 $(TDNW $(MREF core,checkedint))
331 $(TD Range-checking integral arithmetic primitives.)
334 $(TDNW $(MREF core,math))
335 $(TD Built-in mathematical intrinsics.)
337 $(LEADINGROW Paradigms)
339 $(TDNW $(MREF std,functional))
340 $(TD Functions that manipulate other functions.)
343 $(TDNW $(MREF std,algorithm))
344 $(TD Generic algorithms for processing sequences.)
347 $(TDNW $(MREF std,signals))
348 $(TD Signal-and-slots framework for event-driven programming.)
350 $(LEADINGROW Runtime utilities)
352 $(TDNW $(MREF1 object))
353 $(TD Core language definitions. Automatically imported.)
356 $(TDNW $(MREF std,getopt))
357 $(TD Parsing of command-line arguments.)
360 $(TDNW $(MREF std,compiler))
361 $(TD Host compiler vendor string and language version.)
364 $(TDNW $(MREF std,system))
365 $(TD Runtime environment, such as OS type and endianness.)
368 $(TDNW $(MREF core,cpuid))
369 $(TD Capabilities of the CPU the program is running on.)
372 $(TDNW $(MREF core,memory))
373 $(TD Control the built-in garbage collector.)
376 $(TDNW $(MREF core,runtime))
377 $(TD Control and configure the D runtime.)
379 $(LEADINGROW String manipulation)
381 $(TDNW $(MREF std,string))
382 $(TD Algorithms that work specifically with strings.)
385 $(TDNW $(MREF std,array))
386 $(TD Manipulate builtin arrays.)
389 $(TDNW $(MREF std,algorithm))
390 $(TD Generic algorithms for processing sequences.)
393 $(TDNW $(MREF std,uni))
394 $(TD Fundamental Unicode algorithms and data structures.)
397 $(TDNW $(MREF std,utf))
398 $(TD Encode and decode UTF-8, UTF-16 and UTF-32 strings.)
401 $(TDNW $(MREF std,format))
402 $(TD Format data into strings.)
405 $(TDNW $(MREF std,path))
406 $(TD Manipulate strings that represent filesystem paths.)
409 $(TDNW $(MREF std,regex))
410 $(TD Regular expressions.)
413 $(TDNW $(MREF std,ascii))
414 $(TD Routines specific to the ASCII subset of Unicode.)
417 $(TDNW $(MREF std,encoding))
418 $(TD Handle and transcode between various text encodings.)
421 $(TDNW $(MREF std,windows,charset))
422 $(TD Windows specific character set support.)
425 $(TDNW $(MREF std,outbuffer))
426 $(TD Serialize data to $(CODE ubyte) arrays.)
428 $(LEADINGROW Type manipulations)
430 $(TDNW $(MREF std,conv))
431 $(TD Convert types from one type to another.)
434 $(TDNW $(MREF std,typecons))
435 $(TD Type constructors for scoped variables, ref counted types, etc.)
438 $(TDNW $(MREF std,bitmanip))
439 $(TD High level bit level manipulation, bit arrays, bit fields.)
442 $(TDNW $(MREF std,variant))
443 $(TD Dynamically-typed variable that can hold a value of any type.)
446 $(TDNW $(MREF core,bitop))
447 $(TD Low level bit manipulation.)
450 $(TDNW $(MREF std,sumtype))
451 $(TD Type-safe discriminated union.)
453 $(LEADINGROW Vector programming)
455 $(TDNW $(MREF core,simd))
456 $(TD SIMD intrinsics)
458 $(LEADINGROW Logging)
461 $(MREF std,logger)$(BR)
462 $(MREF std,logger,core)$(BR)
463 $(MREF std,logger,filelogger)$(BR)
464 $(MREF std,logger,multilogger)$(BR)
465 $(MREF std,logger,nulllogger)$(BR)
473 $(LEADINGROW Undocumented modules (intentionally omitted).)
476 $(MREF core,sync,config)$(BR)
477 $(MREF std,container,util)$(BR)
478 $(MREF std,regex,internal,backtracking)$(BR)
479 $(MREF std,regex,internal,generator)$(BR)
480 $(MREF std,regex,internal,ir)$(BR)
481 $(MREF std,regex,internal,kickstart)$(BR)
482 $(MREF std,regex,internal,parser)$(BR)
483 $(MREF std,regex,internal,tests)$(BR)
484 $(MREF std,regex,internal,thompson)$(BR)
492 $(MREF core,vararg)$(BR)
493 $(MREF std,c,fenv)$(BR)
494 $(MREF std,c,linux,linux)$(BR)
495 $(MREF std,c,linux,socket)$(BR)
496 $(MREF std,c,locale)$(BR)
497 $(MREF std,c,math)$(BR)
498 $(MREF std,c,process)$(BR)
499 $(MREF std,c,stdarg)$(BR)
500 $(MREF std,c,stddef)$(BR)
501 $(MREF std,c,stdio)$(BR)
502 $(MREF std,c,stdlib)$(BR)
503 $(MREF std,c,string)$(BR)
504 $(MREF std,c,time)$(BR)
505 $(MREF std,c,wcharh)$(BR)
506 $(MREF std,stdint)$(BR)
514 $(MREF std,mmfile)$(BR)
515 $(MREF std,typetuple)$(BR)
525 TITLE=Phobos Runtime Library