Phobos is now on dsource
Sean Kelly
sean at f4.ca
Thu Nov 29 08:15:28 PST 2007
Peter C. Chapin wrote:
>
> Still, as was mentioned elsewhere, since D is garbage collected
> targetting extremely small machines such as 8 bit microcontrollers with
> 16K of RAM (for example) is probably not in D's future anyway. Thus
> standard library size might not be that big a deal for it.
D doesn't have to be garbage collected, though I suppose not doing so
may violate the standard. The Tango tree, for example, includes a stub
GC that simply calls malloc and free and performs no actual collection.
My motivation for creating this GC was to provide an example for
kernel developers and the like, who may well not want to use an actual
garbage collector in their code.
Kernel and embedded development were the primary user-oriented
motivation for making not only a modular library but a modular runtime
as well. Targeting a system that doesn't support preemptive
multitasking? Just stub out threading support. etc. The Tango runtime
actually consists of three entirely separate libraries that are bundled
together for convenience, but they can be replaced individually as well
if the user actually cares to go that route.
Sean
P.S. I apologize for talking about Tango in a Phobos thread. This is
one aspect of Tango's design most people don't seem aware of and I
wanted to address it.
More information about the Digitalmars-d-announce
mailing list