www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Mango techniques

reply bleep <bleep1024 mailinator.com> writes:
Hi.

The Mango project states that it can serve HTML pages without allocating
memory on the heap all by using slices. Are these techniques documented
anywhere? A good tutorial on how to parse text without memory allocation would
be appreciated. A guide to the guts of the Mango server would be nice too.

This been the kind of techniques that separates the D language should be
taught to newbies like me from day one.

Thanks.
Dec 06 2006
next sibling parent jcc7 <technocrat7 gmail.com> writes:
== Quote from bleep (bleep1024 mailinator.com)'s article
 Hi.
 The Mango project states that it can serve HTML pages without allocating
 memory on the heap all by using slices. Are these techniques documented
 anywhere? A good tutorial on how to parse text without memory allocation would
 be appreciated. A guide to the guts of the Mango server would be nice too.
 This been the kind of techniques that separates the D language should be
 taught to newbies like me from day one.
 Thanks.

I think the Mango forum would be a good place to post this question: http://www.dsource.org/forums/viewforum.php?f=5
Dec 06 2006
prev sibling parent kris <fu bar.org> writes:
bleep wrote:
 Hi.
 
 The Mango project states that it can serve HTML pages without allocating
 memory on the heap all by using slices. Are these techniques documented
 anywhere? A good tutorial on how to parse text without memory allocation would
 be appreciated. A guide to the guts of the Mango server would be nice too.
 

Yeah, that's a good idea. Walter had suggested doing something like that before also (for an article) but life has been a bit hectic recently :) Slices help tremendously, but there's other techniques involved also: per-thread data, preallocated buffers, loads of caching, and so on. The design works well for a certain type of workload, but is not ideal for all.
 This been the kind of techniques that separates the D language 

I agree. Much easier to do this kind of thing in D
Dec 07 2006