From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: [ANN] List_Image v0.2.0 Date: Fri, 2 Feb 2018 16:40:34 -0600 Organization: JSA Research & Innovation Message-ID: References: <575826a1-c983-49aa-95e2-54048f6b7b5b@googlegroups.com> <3b72aae1-7ff4-48a9-a154-f17cd6784334@googlegroups.com> <7f5fec97-6ae6-4833-87df-77aac5a8e4ff@googlegroups.com> <191ef0a8-865e-49be-baa6-6c5c2d0b55fc@googlegroups.com> Injection-Date: Fri, 2 Feb 2018 22:40:34 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="28231"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:50282 Date: 2018-02-02T16:40:34-06:00 List-Id: "Lionel Draghi" wrote in message news:191ef0a8-865e-49be-baa6-6c5c2d0b55fc@googlegroups.com... ... >And what would be the type of that list, that should be simple, efficient >and >unbounded, sparkable, etc. Look's like we need a "Text" abstraction here >(*). For what's its worth (probably very little :-), I used a list of unbounded strings for that purpose in my Trash-Finder spam filter. If I was doing it today, I'd probably use an indefinite vector of type String instead (lets Ada handle memory management of the entire thing, not just the individual lines, and the overhead would be about the same). A bit clunky to change the length of a line (you have to use Replace_Element for that), but otherwise about the same as using an Unbounded_String. (One of the reasons that the spam filter uses Unbounded_Strings was an experiment on my part to see how easy/hard it is writing exclusively with them. The experiment wasn't very successful.) >And also another Signature package... >Seem's to be a fun challenge, I'm on it! :-) >(*) After all, we have a Text_IO package since the origin of Ada, it's time >to define what is a Text! Yup. Randy.