comp.lang.ada
 help / color / mirror / Atom feed
* 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

* 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 ` When to stop reading and start programming? Dr. Adrian Wrigley
@ 2005-10-27  2:40 ` Steve
  1 sibling, 0 replies; 2+ messages in thread
From: Steve @ 2005-10-27  2:40 UTC (permalink / raw)


"Freejack" <freejack@nowhere.net> wrote in message 
news:pan.2005.10.28.12.49.52.666403@nowhere.net...
> 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?

Always start with a plan.
Put together a document that describes what the system will do.
Include diagrams on how the system will do it.
Include a description of how you will verify the system.

Once you have a clear understanding of what you're going to do and how 
you're going to do it, then it's time to start thinking about coding.

There are may methods techniques for making a plan, formal and unformal, you 
may just make your own, but use one.

Steve
(The Duck)

>
> Freejack 





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-27  2:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <pan.2005.10.28.12.49.52.666403@nowhere.net>
2005-10-26 12:26 ` When to stop reading and start programming? Dr. Adrian Wrigley
2005-10-27  2:40 ` Steve

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