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 10.107.138.223 with SMTP id c92mr1098299ioj.85.1523699088811; Sat, 14 Apr 2018 02:44:48 -0700 (PDT) X-Received: by 2002:a9d:5220:: with SMTP id e32-v6mr148993oth.3.1523699088685; Sat, 14 Apr 2018 02:44:48 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!maths.tcd.ie!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!168.235.88.217.MISMATCH!feeder.erje.net!2.us.feeder.erje.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!e130-v6no998718itb.0!news-out.google.com!u64-v6ni1968itb.0!nntp.google.com!k65-v6no1014541ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 14 Apr 2018 02:44:48 -0700 (PDT) In-Reply-To: <90b66692-0e30-4311-9f37-6713d2b5f26b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=101.164.108.182; posting-account=wavAeAoAAAAZF_sXSZepBukuPCBO0Zqt NNTP-Posting-Host: 101.164.108.182 References: <90b66692-0e30-4311-9f37-6713d2b5f26b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0d295584-195c-4d2d-8304-c6b928578bb4@googlegroups.com> Subject: Re: Ada-WinRT bindings - Alpha release From: alby.gamper@gmail.com Injection-Date: Sat, 14 Apr 2018 09:44:48 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2852 X-Received-Body-CRC: 3587688994 Xref: reader02.eternal-september.org comp.lang.ada:51499 Date: 2018-04-14T02:44:48-07:00 List-Id: On Saturday, April 14, 2018 at 7:21:16 PM UTC+10, gor...@hotmail.com wrote: > Den fredag 13 april 2018 kl. 11:05:41 UTC+2 skrev alby....@gmail.com: > > Dear Ada community > >=20 > > I am pleased to announce the initial alpha release of the WinRt binding= s for Ada. > > It is available on GitHub at the following URL > >=20 > > https://github.com/Alex-Gamper/Ada-WinRT > >=20 > > Please feel free to raise issues/question/recommendations for improveme= nts either > > via GitHub or on his forum > >=20 > > Thanks > >=20 > > Alex >=20 > Hi Alex! >=20 > Great work on the Windows binding! It is huge! :) >=20 > One thing I keep in mind when making Ada bindings to C libraries is to at= tempt hiding the access types from the users of the API. For example wrappi= ng the access type variables inside the private the part of limited types (= to avoid copying of the private access type variable in order to be sure on= e does unchecked deallocation just once). It means first making a thin bind= ing with access types (because there are pointers in the C API) and then bu= ilding a thick binding on top. And oh yes, that's easier said than done. An= yways, something I keep in mind. >=20 > Best regards, > Joakiim Hi Joakiim I sort of understand where you are coming from? I fell into a trap of over= =20 implementing the mappings of WinRT to Ada, which resulted in a huge Api sur= face As a compromise I focused on the core COM interfaces (which WinRT/UWP is ba= sed upon). So in essence the current bindings represent a low level bindings th= at can and should be built upon. Alex