comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk>
Subject: Re: When to stop reading and start programming?
Date: Wed, 26 Oct 2005 12:26:11 GMT
Date: 2005-10-26T12:26:11+00:00	[thread overview]
Message-ID: <pan.2005.10.26.12.25.26.266125@linuxchip.demon.co.uk.uk.uk> (raw)
In-Reply-To: pan.2005.10.28.12.49.52.666403@nowhere.net

On Fri, 28 Oct 2005 08:49:52 -0400, Freejack wrote:

> Recently I've begun a foray into the art of Region Based memory
> management. Specifically with the intent of creating a working
> library for Ada development. Naturally it's a good idea to look into what
> others have done before me.
> There are a bunch of academic papers on this. Mostly centered around ML
> Kit or Prolog systems. 
> It's become abundantly clear that Ada provides more than enough Type
> information to make this work.
> 
> However, how many academic papers should one wade through before actually
> getting started on the code? Heh. Should I wait for my eyes to start
> bugging out of my head?
> 
> Any tips from the more experienced among us?

Don't try to write a memory allocator in isolation, trying to
be all things to all users! (unless you are an academic...)

Work on useful application code, and you will know when the
available allocation methods fail to meet your needs.  Then see
if you can get a ready-made allocator for the project from
somwehere else (eg bind to 'halloc').  When you understand
that you have unmet needs, make something simple and efficient
to meet them!  Then consider how it can benefit others.

My application had a simple memory lifetime model, and much
memory use was in a single layer.  A region-based allocator was the
obvious choice for memory/time efficiency and robustness.

Having said that, I think there is a real need for a memory
management library, which provides the features I mentioned
in the other thread (Memory Mapped Storage Pools).
(persistance, regions, high capacity etc.)

I don't think I have any special expertise in this area, but
I would review ideas for package specs, if you like!
(just remove the .uk.uk from my email address)

Have fun!
-- 
Adrian





       reply	other threads:[~2005-10-26 12:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <pan.2005.10.28.12.49.52.666403@nowhere.net>
2005-10-26 12:26 ` Dr. Adrian Wrigley [this message]
2005-10-27  2:40 ` When to stop reading and start programming? Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox