* generic container library
@ 2004-10-29 10:53 Szymon Guz
2004-10-29 11:13 ` stephane richard
` (4 more replies)
0 siblings, 5 replies; 12+ messages in thread
From: Szymon Guz @ 2004-10-29 10:53 UTC (permalink / raw)
Hi,
I've found some generic libraries with containers that I want to use but
I don't want to test all of them so my question is: which library shoul
I choose ?
regards
Szymon Guz
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 10:53 generic container library Szymon Guz
@ 2004-10-29 11:13 ` stephane richard
2004-10-29 11:18 ` Alex R. Mosteo
` (3 subsequent siblings)
4 siblings, 0 replies; 12+ messages in thread
From: stephane richard @ 2004-10-29 11:13 UTC (permalink / raw)
Hi Szymon,
Take a look at my website (http://www.adaworld.com) In the Ada projects then
Library Projects..you'll find there the better libraries.
Hope this helps,
Stephane Richard
"Ada World" webmaster
http://www.adaworld.com
"Szymon Guz" <guzo@stud.ics.p.lodz.pl> wrote in message
news:clt7fb$1caa$1@news2.ipartners.pl...
> Hi,
> I've found some generic libraries with containers that I want to use but I
> don't want to test all of them so my question is: which library shoul I
> choose ?
>
> regards
> Szymon Guz
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 10:53 generic container library Szymon Guz
2004-10-29 11:13 ` stephane richard
@ 2004-10-29 11:18 ` Alex R. Mosteo
2004-10-29 11:49 ` Martin Krischik
` (2 subsequent siblings)
4 siblings, 0 replies; 12+ messages in thread
From: Alex R. Mosteo @ 2004-10-29 11:18 UTC (permalink / raw)
Szymon Guz wrote:
> Hi,
> I've found some generic libraries with containers that I want to use but
> I don't want to test all of them so my question is: which library shoul
> I choose ?
I'd recommend the excellent Charles or, looking towards Ada0Y, the Ada95
implementation of Ada.Containers.* by the same author.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 10:53 generic container library Szymon Guz
2004-10-29 11:13 ` stephane richard
2004-10-29 11:18 ` Alex R. Mosteo
@ 2004-10-29 11:49 ` Martin Krischik
2004-10-29 17:51 ` Martin Dowie
2004-10-29 12:03 ` Marin David Condic
2004-10-29 19:09 ` Jeffrey Carter
4 siblings, 1 reply; 12+ messages in thread
From: Martin Krischik @ 2004-10-29 11:49 UTC (permalink / raw)
Szymon Guz wrote:
> Hi,
> I've found some generic libraries with containers that I want to use but
> I don't want to test all of them so my question is: which library shoul
> I choose ?
Depends what you need. We can't really help you here.
I use the Booch components for Ada 95. I find them more Ada friendly then
the C++ STL inspired component libraries.
One more advice: See that you choice supports indefinite elements. Why? Well
String and X'Class are an indefinite Types for once.
The booch components have an extension pack for indefinite elements {Simon,
if you read this - could we just merge them?} and the new Ada.Components
will have support indefinite elements - but they are for Ada0Y.
With Regards
Maritn
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 10:53 generic container library Szymon Guz
` (2 preceding siblings ...)
2004-10-29 11:49 ` Martin Krischik
@ 2004-10-29 12:03 ` Marin David Condic
2004-10-29 14:56 ` Matthew Heaney
2004-10-30 15:07 ` Simon Wright
2004-10-29 19:09 ` Jeffrey Carter
4 siblings, 2 replies; 12+ messages in thread
From: Marin David Condic @ 2004-10-29 12:03 UTC (permalink / raw)
There were three excellent articles in the most recent issue of "Ada
Letters" that covered libraries. I don't recall that any of the articles
mentioned if the container libraries of interest provided for
persistence (some ability to write & read the containers to/from a file
or stream). I consider that a pretty critical feature, so you might want
to consider that in selecting one for your future projects. Even a
library that is a little weaker in some other regard would score big
points with me so long as I don't have to figure out how to load and
store the data between program runs. Especially if I can make containers
of containers of containers and get the whole ball of wax stored in a
file. (See the 'Read and 'Write and related attributes of streams - its
really pretty cool.)
MDC
Szymon Guz wrote:
> Hi,
> I've found some generic libraries with containers that I want to use but
> I don't want to test all of them so my question is: which library shoul
> I choose ?
>
> regards
> Szymon Guz
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jsf.mil/NSFrames.htm
Send Replies To: m o d c @ a m o g
c n i c . r
"Power corrupts. Absolute power is kind of neat"
-- John Lehman, Secretary of the Navy 1981-1987
======================================================================
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 12:03 ` Marin David Condic
@ 2004-10-29 14:56 ` Matthew Heaney
2004-10-29 17:49 ` Martin Dowie
2004-10-30 12:36 ` Marin David Condic
2004-10-30 15:07 ` Simon Wright
1 sibling, 2 replies; 12+ messages in thread
From: Matthew Heaney @ 2004-10-29 14:56 UTC (permalink / raw)
"Marin David Condic" <nobody@noplace.com> wrote in message
news:Yjqgd.11340$5i5.8014@newsread2.news.atl.earthlink.net...
> There were three excellent articles in the most recent issue of "Ada
> Letters" that covered libraries. I don't recall that any of the articles
> mentioned if the container libraries of interest provided for persistence
> (some ability to write & read the containers to/from a file or stream). I
> consider that a pretty critical feature, so you might want to consider
> that in selecting one for your future projects. Even a library that is a
> little weaker in some other regard would score big points with me so long
> as I don't have to figure out how to load and store the data between
> program runs. Especially if I can make containers of containers of
> containers and get the whole ball of wax stored in a file. (See the 'Read
> and 'Write and related attributes of streams - its really pretty cool.)
I don't think I implemented the stream attributes for Charles, but it
wouldn't be hard to do that. Let me know which containers you need, and
I'll give those priority. See the charles-*.ad[sb] files in:
http://charles.tigris.org/source/browse/charles/src/
Note that the AI-302 containers are required to support streaming, and so
the reference implementation has already implemented the streaming
attributes. See the a-c*.ad[sb] files in:
http://charles.tigris.org/source/browse/charles/src/ai302/
In either case, that means you can have a container of containers, and
streaming it out will do the right thing,
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 14:56 ` Matthew Heaney
@ 2004-10-29 17:49 ` Martin Dowie
2004-10-29 21:39 ` Matthew Heaney
2004-10-30 12:36 ` Marin David Condic
1 sibling, 1 reply; 12+ messages in thread
From: Martin Dowie @ 2004-10-29 17:49 UTC (permalink / raw)
"Matthew Heaney" <mheaney@on2.com> wrote in message news:41825a24$0$91006> I
don't think I implemented the stream attributes for Charles, but it
> wouldn't be hard to do that. Let me know which containers you need, and
> I'll give those priority. See the charles-*.ad[sb] files in:
>
> http://charles.tigris.org/source/browse/charles/src/
>
> Note that the AI-302 containers are required to support streaming, and so
> the reference implementation has already implemented the streaming
> attributes. See the a-c*.ad[sb] files in:
>
> http://charles.tigris.org/source/browse/charles/src/ai302/
>
> In either case, that means you can have a container of containers, and
> streaming it out will do the right thing,
Matt - for your reference implementation have you got hold of a prototype
Ada0Y compiler? Or are you 'imagining' how all the code will work?..
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 11:49 ` Martin Krischik
@ 2004-10-29 17:51 ` Martin Dowie
0 siblings, 0 replies; 12+ messages in thread
From: Martin Dowie @ 2004-10-29 17:51 UTC (permalink / raw)
"Martin Krischik" <martin@krischik.com> wrote in message
news:4365524.LcDjESxM3m@linux1.krischik.com...
> The booch components have an extension pack for indefinite elements
> {Simon,
> if you read this - could we just merge them?} and the new Ada.Components
> will have support indefinite elements - but they are for Ada0Y.
Not quite true - there is a version @
http://www.martin.dowie.btinternet.co.uk/
A new version will be available soon (end of next week hopefully)...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 10:53 generic container library Szymon Guz
` (3 preceding siblings ...)
2004-10-29 12:03 ` Marin David Condic
@ 2004-10-29 19:09 ` Jeffrey Carter
4 siblings, 0 replies; 12+ messages in thread
From: Jeffrey Carter @ 2004-10-29 19:09 UTC (permalink / raw)
Szymon Guz wrote:
> I've found some generic libraries with containers that I want to use
> but I don't want to test all of them so my question is: which library
> shoul I choose ?
There will be a minimal standard container library in Ada 0X, and if it
fits your needs, there should be Ada-95 friendly versions of that
library available. Using such a library will help you adhere to the
future standard.
If the minimal library doesn't meet your needs, there are plenty of
libraries that are richer. You can find many listed on adapower.com and
adaworld.com. I prefer the PragmAda Reusable Components:
http://home.earthlink.net/~jrcarter010/pragmarc.htm
But I may be biased.
--
Jeff Carter
"Every sperm is sacred."
Monty Python's the Meaning of Life
55
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 17:49 ` Martin Dowie
@ 2004-10-29 21:39 ` Matthew Heaney
0 siblings, 0 replies; 12+ messages in thread
From: Matthew Heaney @ 2004-10-29 21:39 UTC (permalink / raw)
"Martin Dowie" <martin.dowie@btopenworld.com> wrote in message
news:cltvqv$35a$1@sparta.btinternet.com...
>
> Matt - for your reference implementation have you got hold of a prototype
> Ada0Y compiler? Or are you 'imagining' how all the code will work?..
Yes, I have an Ada 2005 compiler, courtesy of ACT. (I joined their GAP
program.)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 14:56 ` Matthew Heaney
2004-10-29 17:49 ` Martin Dowie
@ 2004-10-30 12:36 ` Marin David Condic
1 sibling, 0 replies; 12+ messages in thread
From: Marin David Condic @ 2004-10-30 12:36 UTC (permalink / raw)
For current projects, I'm using a home-grown container library that is
based on a class heierarchy. It implements the needed stream attributes
and it really works rather spiffy as you build things up from the class
heierarchy. If I build up all the data for a given app from the base
class one single "Load" or "Store" operation and BAM! Ada takes care of
it automagically.
I liked the article on Charles. Its good to know that you plan on adding
the necessary stream attributes since this library seems to be gaining
some acceptance as a de facto standard. Its also good to know that when
it gets into the ARM that the plan there is to provide for persistance.
Dunno why that didn't seem intuitively obvious when people started
thinking about ADTs and container libraries, but most of them don't
provide a means of dealing with persistance.
MDC
Matthew Heaney wrote:
>
> I don't think I implemented the stream attributes for Charles, but it
> wouldn't be hard to do that. Let me know which containers you need, and
> I'll give those priority. See the charles-*.ad[sb] files in:
>
> http://charles.tigris.org/source/browse/charles/src/
>
> Note that the AI-302 containers are required to support streaming, and so
> the reference implementation has already implemented the streaming
> attributes. See the a-c*.ad[sb] files in:
>
> http://charles.tigris.org/source/browse/charles/src/ai302/
>
> In either case, that means you can have a container of containers, and
> streaming it out will do the right thing,
>
>
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jsf.mil/NSFrames.htm
Send Replies To: m o d c @ a m o g
c n i c . r
"Power corrupts. Absolute power is kind of neat"
-- John Lehman, Secretary of the Navy 1981-1987
======================================================================
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: generic container library
2004-10-29 12:03 ` Marin David Condic
2004-10-29 14:56 ` Matthew Heaney
@ 2004-10-30 15:07 ` Simon Wright
1 sibling, 0 replies; 12+ messages in thread
From: Simon Wright @ 2004-10-30 15:07 UTC (permalink / raw)
Marin David Condic <nobody@noplace.com> writes:
> There were three excellent articles in the most recent issue of "Ada
> Letters" that covered libraries. I don't recall that any of the
> articles mentioned if the container libraries of interest provided for
> persistence (some ability to write & read the containers to/from a
> file or stream).
The Ada 95 BC containers support streaming, with (I see) the exception
of Graphs, Lists and Trees. But that still leaves you a lot of choice
(remembering that the BC List is a very fancy thing, and most people
should use Collection instead).
--
Simon Wright 100% Ada, no bugs.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-10-30 15:07 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-29 10:53 generic container library Szymon Guz
2004-10-29 11:13 ` stephane richard
2004-10-29 11:18 ` Alex R. Mosteo
2004-10-29 11:49 ` Martin Krischik
2004-10-29 17:51 ` Martin Dowie
2004-10-29 12:03 ` Marin David Condic
2004-10-29 14:56 ` Matthew Heaney
2004-10-29 17:49 ` Martin Dowie
2004-10-29 21:39 ` Matthew Heaney
2004-10-30 12:36 ` Marin David Condic
2004-10-30 15:07 ` Simon Wright
2004-10-29 19:09 ` Jeffrey Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox