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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m58g2000cwm.googlegroups.com!not-for-mail From: "Hyman Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: 27 Feb 2007 06:52:18 -0800 Organization: http://groups.google.com Message-ID: <1172587938.237094.134530@m58g2000cwm.googlegroups.com> References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <45E1B7AA.30804@obry.net> <1dpvltpykld8r$.1rn2ewhc0itjt$.dlg@40tude.net> NNTP-Posting-Host: 204.253.248.208 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1172587943 3732 127.0.0.1 (27 Feb 2007 14:52:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 27 Feb 2007 14:52:23 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2; .NET CLR 2.0.50727) Gecko/20070219 Firefox/2.0.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m58g2000cwm.googlegroups.com; posting-host=204.253.248.208; posting-account=lJDDWg0AAACmMd7wLM4osx8JUCDw_C_j Xref: g2news2.google.com comp.lang.ada:9572 Date: 2007-02-27T06:52:18-08:00 List-Id: On Feb 26, 7:34 pm, "Randy Brukardt" wrote: > The problem is that if it doesn't fit, you can't recover Granted, but that's not really the point. On a modern computer system, given that it's reading input from a file or standard input, the programmer can reasonably expect that there are at least many tens of megabytes available to be allocated. Sure there can be inputs that will exceed that, but then you're really in a different domain. Think of it this way - when you decide to sort data, you need to choose between internal and external sorts. You can't do that without a notion of a threshold size. Clearly that size has increased over the years. Reading input is similar. Many programs can now very reasonably expect to read in their entire input into memory at once before processing any of it, and if that's not going to work because of allocation on the stack then there should be an alternative.