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!aioe.org!.POSTED!not-for-mail From: Luke A. Guest Newsgroups: comp.lang.ada Subject: Re: thick bindings, was Re: Vulkan is here! Date: Sat, 20 Feb 2016 00:26:48 +0000 Organization: Aioe.org NNTP Server Message-ID: <1344129495.477620566.501379.laguest-archeia.com@nntp.aioe.org> References: <66c5617d-49e6-40eb-9341-31c6664b1f6c@googlegroups.com> NNTP-Posting-Host: RWl/QnnDv3BmQ59PPfRHGw.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: NewsTap/5.1.2 (iPhone/iPod Touch) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:gfKZp/k1zyAD+vJO7Frilo88fi4= Xref: news.eternal-september.org comp.lang.ada:29570 Date: 2016-02-20T00:26:48+00:00 List-Id: Randy Brukardt wrote: > True thin bindings are trivial to make (and can be pretty much automated), > but they completely lose any advantage to using Ada. Pretty much the only > thing to do with a true thin-binding is use it to make a thicker binding, > else you would be better off writing in C. (C has meager correctness > checking, but you lose even that when you cross the boundary between > languages. The use of Ada is actually a negative in such circumstances.) Vulkan really is an unusual API in that there is supposed to be minimal to no error checking at the lowest layer. The higher layers do the checking then when you release the app you turn off the debugging layers. The vk.xml file already separates bit masks and enums properly. I think this is likely to be a medium binding tbh. Luke