Where will D sit in the web service space?
via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 13 17:22:20 PDT 2015
On Monday, 13 July 2015 at 18:32:11 UTC, Laeeth Isharc wrote:
> Today, one wouldn't want to build a business around depending
> on Andrei's allocator.
Not really sure what you are referring to.
> So in which cases could one not use the allocator to manage
> memory comfortably enough?
Allocators generally don't manage memory, they structure
allocation patterns and may (or may not) provide initialization
optimizations, release information and release optimizations.
To manage memory you need an ownership model:
- GC is the most comfortable way to handle ownership.
- Regular manual memory management is error prone, and ownership
is ad hoc and informal.
- Strict linear typing is a more tedious alternative that
requires you to structure things in a particular way (makes
simple things like creating a doubly linked list difficult).
- Reference counting has performance overhead and special care
has to be taken to avoid cycles.
More information about the Digitalmars-d
mailing list