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!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!newsfeed.pionier.net.pl!pwr.wroc.pl!news.wcss.wroc.pl!not-for-mail From: Waldek Hebisch Newsgroups: comp.lang.ada Subject: Re: If not Ada, what else... Date: Sun, 23 Aug 2015 23:01:09 +0000 (UTC) Organization: Politechnika Wroclawska Message-ID: References: <8076cbd0-2655-4c98-b70e-cb5f0c32e4ba@googlegroups.com> <5e6cb30b-5f8c-4fed-969e-3941315ecba0@googlegroups.com> <87si87nf8k.fsf@jester.gateway.sonic.net> <87bneuony6.fsf@jester.gateway.sonic.net> <87pp2gqa2g.fsf@nightsong.com> NNTP-Posting-Host: hera.math.uni.wroc.pl X-Trace: z-news.wcss.wroc.pl 1440370869 22994 156.17.86.1 (23 Aug 2015 23:01:09 GMT) X-Complaints-To: abuse@news.pwr.wroc.pl NNTP-Posting-Date: Sun, 23 Aug 2015 23:01:09 +0000 (UTC) Cancel-Lock: sha1:YSRu8JSzRs6U51yfHP3AslvTahc= User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/4.1.3 (x86_64)) Xref: news.eternal-september.org comp.lang.ada:27588 Date: 2015-08-23T23:01:09+00:00 List-Id: Paul Rubin wrote: > Waldek Hebisch writes: > >> > http://rosettacode.org/wiki/Hamming_numbers#Ada > > AFAICS iterative version which uses array as a stream buffer > > is about 20 lines long and quite easy to write. > > I'd be interested in seeing what that looks like. There's a Java > version on rosettacode that uses priority queues and is somewhat messy. I provided Ada version in another post. However, several entries in Rosetta Code use essentially the same method. In particular: ALGOL 68, AWK, BBC BASIC, C# (first and second), D (first version), ERRE, Fortran, Go, Liberty BASIC, Nim, PARI/GP. -- Waldek Hebisch hebisch@math.uni.wroc.pl