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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:620a:1388:: with SMTP id k8mr30213684qki.237.1568128267312; Tue, 10 Sep 2019 08:11:07 -0700 (PDT) X-Received: by 2002:a05:6808:14e:: with SMTP id h14mr5284oie.122.1568128266971; Tue, 10 Sep 2019 08:11:06 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!o24no5353003qtl.0!news-out.google.com!c11ni858qtp.0!nntp.google.com!o24no5352996qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 10 Sep 2019 08:11:06 -0700 (PDT) In-Reply-To: <66dc57e5-95a9-495d-9fb7-3d8cfbaf5c82@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.112.170.98; posting-account=B4v_IQoAAABtshpgRNPbXpnR-jYxagWq NNTP-Posting-Host: 75.112.170.98 References: <4a0d83a5-3a12-4456-8f3c-abae885b5ba9@googlegroups.com> <66dc57e5-95a9-495d-9fb7-3d8cfbaf5c82@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: AWS (Amazon Web Services) Libraries for Ada From: John Singleton Injection-Date: Tue, 10 Sep 2019 15:11:07 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57123 Date: 2019-09-10T08:11:06-07:00 List-Id: On Tuesday, September 10, 2019 at 10:21:33 AM UTC-4, Shark8 wrote: > On Tuesday, September 10, 2019 at 6:37:04 AM UTC-6, jsin...@gmail.com wro= te: > > Hi All, > >=20 > > I'm working on a project where I will be using AWS services (S3, SQS, a= nd SNS to start) and I was wondering if anyone knows about a ADA library fo= r these services. > No, not offhand; though I try to avoid external dependencies like (ag) Am= azon Web Services and so haven't really looked. >=20 > > I've looked around and don't see one --- would my best bet be to build = a binding to the C++ AWS apis? > Perhaps, perhaps not. > I don't know how their API is designed because I haven't used Amazon Web = Services, but perhaps the best way to answer this question is to look at it= from the other way (eg inside-out vs outside-in) =E2=80=94 think about thi= ngs from the Ada-client side (package-client more than network-client) =E2= =80=94 ask "how do I want my interface to look?" and build from there, with= the package-body providing the interface to the Amazon Web Service depende= ncy. >=20 > Given that there are other/different languages that use the Amazon Web Se= rvice API, some of them quite different from C++, it is likely that the API= is "language independent" to some degree; this in itself is a property tha= t you should bear in mind: > (1) a thin binding to the C++ API implementation is going to expose all t= he design choices and C-semantics workarounds to your binding; > (2) a thick binding will require a bit more work, especially if you want = to design to Ada's strengths; > (3) in any case, you *MUST* consider the strengths and weaknesses of your= choices. Sure "--fdump-ada-spec" is easy, but working around it in your de= sign might be more work than directly writing the thick binding. >=20 > I wish I could be more/actual help though. Thanks for all of this.=20 I think combined with Lucretia's suggestion to use the C API, a thick bindi= ng makes a lot of sense to me. Granted, if you look over the API, it's gene= rally fairly reasonable.=20 Another option I am considering is just talking to it directly; the API is = REST (and older support for SOAP). It will require plumbing through the doc= s a bit more, but perhaps a native REST implementation would be the best, a= nd pure Ada...