* Re: When to stop reading and start programming?
[not found] <pan.2005.10.28.12.49.52.666403@nowhere.net>
@ 2005-10-26 12:26 ` Dr. Adrian Wrigley
2005-10-27 2:40 ` Steve
1 sibling, 0 replies; 2+ messages in thread
From: Dr. Adrian Wrigley @ 2005-10-26 12:26 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread