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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Record operations (Algebraic Data Types and printing) Date: Sat, 06 Oct 2018 17:56:07 +0100 Organization: A noiseless patient Spider Message-ID: References: <0f5608ef-0038-491c-b15f-f67bcc76fae8@googlegroups.com> <46e2479f-a695-450f-a201-790015eddc87@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="b0ad3cab8000dcf5fa8dd35c291cb909"; logging-data="2536"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EQVdKeazf2H/zz9yNtDlFpzfxj9KiGCM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:H5kVyKVpv41SOv5dHKFWDt+N3ZQ= sha1:U1d3JDTCsX92l+DE4pWEuKSHaYs= Xref: reader02.eternal-september.org comp.lang.ada:54507 Date: 2018-10-06T17:56:07+01:00 List-Id: Stephen Leake writes: > On Friday, October 5, 2018 at 11:17:39 PM UTC-7, Henrik Härkönen wrote: >> > Auto_Text_IO in Stephe's Ada Library[1]: might need some fixups for >> > newer compilers/standards. >> > >> > [1] http://stephe-leake.org/ada/sal.html >> >> Alright, seems that there's other nice stuff too, thanks. :) > > That has some packages that were generated by or support auto_text_io, > but not the actual auto_text_io code, which you need to generate a > Text_IO package for your record types. Oh, sorry for misleading people. > I stopped supporting the auto_text_io tool, mostly because ASIS was > not ported to the newer language versions. AdaCore's ASIS still works, their own implementation to deal with modern language versions. > These days the best way to reimplement auto_text_io is to start with > libadalang (https://github.com/AdaCore/libadalang). If anyone wants to > try that, I can probably dig up the auto_text_io code. I find libadalang a bit distressing, mostly because of the extensive reliance on external Python utilities: from REQUIREMENTS.dev, Mako==1.0.1 PyYAML==3.11 Sphinx==1.3.1 coverage==3.7.1 enum==0.4.6 enum34==1.1.2 psutil==3.4.2 sphinx-rtd-theme==0.1.9 funcy==1.7.1 -e git+https://github.com/AdaCore/langkit.git#egg=langkit docutils==0.12 autopep8==1.2.4 yapf==0.16.0 and Quex. Of course, the libraries required for GPS make a long list too. Also, there are also difficulties using the latest Github libadalang, which relies on a recent libgpr (more recent than the one I included with the macOS GCC 8.1.0, but OK with GNAT CE 2018). I suppose I just have to man up, bite the bullet, ...