From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!pBWEO6hi52oGFheO/GY5ag.user.gioia.aioe.org.POSTED!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Advent of Code day 5 Date: Tue, 08 Dec 2020 17:18:18 -0800 Organization: Aioe.org NNTP Server Message-ID: <86im9bg4kl.fsf@stephe-leake.org> References: <861rg4gv6j.fsf@stephe-leake.org> <86sg8igb23.fsf@stephe-leake.org> NNTP-Posting-Host: pBWEO6hi52oGFheO/GY5ag.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:1IZW1Kue5I3SCKmWHHLCiXNUCuA= Xref: reader02.eternal-september.org comp.lang.ada:60766 List-Id: Björn Lundin writes: > Den 2020-12-06 kl. 17:21, skrev Stephen Leake: >> I didn't bother computing row and seat, since they are not actually >> needed to find the answer. >> >>> and ran it through cut/sort/uniq >> Next time, try ada.containers.generic_array_sort; >> http://www.ada-auth.org/standards/2xrm/html/RM-A-18-26.html > > So I was thinking -should I do this the 'proper' way - only use a > language, or should I use whatever tool that makes it quickest, since > only a number was the final answer. For the actual competition, any tool that works for you is fine; there is no restriction to "use only this language". But some people are doing this as a mechanism to learn Ada, so I'm using your example to tell them about how to do this in Ada instead of Bash. In day 7, I'm using WisiToken, which is an Ada parsing library I maintain. I'm following the rule "use any Ada library available on the web". -- -- Stephe