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 X-Received: by 2002:aed:2b64:: with SMTP id p91mr34207633qtd.202.1588175262250; Wed, 29 Apr 2020 08:47:42 -0700 (PDT) X-Received: by 2002:a9d:5cc1:: with SMTP id r1mr25482407oti.329.1588175261851; Wed, 29 Apr 2020 08:47:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 29 Apr 2020 08:47:41 -0700 (PDT) In-Reply-To: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=136.163.208.2; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 136.163.208.2 References: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Script-like jobs in Ada (ideas for HAC) From: joakimds@kth.se Injection-Date: Wed, 29 Apr 2020 15:47:42 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3066 X-Received-Body-CRC: 3541100075 Xref: reader01.eternal-september.org comp.lang.ada:58524 Date: 2020-04-29T08:47:41-07:00 List-Id: Den fredag 24 april 2020 kl. 21:45:34 UTC+2 skrev gautier...@hotmail.com: > It's a poll - sort of. >=20 > The question is: what kind of jobs do you prefer let a scripting language= do and not Ada? >=20 > My guess is that this kind of choice is related to toolsets, libraries an= d other aspects that are not necessarily related to languages. > For instance you would perhaps avoid using Ada for a 30-lines program tha= t browses files and collects some information in those files (just an examp= le). Or a little math / stats program? Or a small game? > But maybe the real reason (even if it is unconscious) you'd avoid Ada is = because the compiler you are using is slow, or because it spits objects and= executable files each time you change your small program. And you'd be mor= e comfortable with a script that runs immediately without making garbage fi= les. >=20 > A goal of the HAC compiler [1] is precisely to blur the border between a = script and an Ada program: from the command line, you write "hax myprog.adb= " and it just runs (that's already working). Now I'd be curious of examples= of scripts you'd consider writing in Ada with HAC, if it supplied the conv= enient functions and libraries. It's all work-in-progress currently, and id= eas of applications are welcome at this point of the development. >=20 > Thanks for any input! > -- > [1] http://hacadacompiler.sf.net/ and https://github.com/zertovitch/hac Hi Gautier, I currently use Ada for scripting and need to compile "the script" before b= eing able to execute it. I would find being able to use HAC for scripting v= ery useful. The only issue I can see with it is the "with HAC_Pack; use HAC= _Pack;" that seems to be required to use HAC. I would like to keep the "Ada= scripts" cross-compiler if possible. Best regards, Joakim