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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a0c:b182:: with SMTP id v2mr24148144qvd.251.1588013446842; Mon, 27 Apr 2020 11:50:46 -0700 (PDT) X-Received: by 2002:a9d:7343:: with SMTP id l3mr18105588otk.276.1588013446578; Mon, 27 Apr 2020 11:50:46 -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!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 27 Apr 2020 11:50:46 -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=87.116.177.58; posting-account=z-xFXQkAAABpEOAnT3LViyFXc8dmoW_p NNTP-Posting-Host: 87.116.177.58 References: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1326c12c-570a-4af8-a183-6b5d00c155c7@googlegroups.com> Subject: Re: Script-like jobs in Ada (ideas for HAC) From: Bojan Bozovic Injection-Date: Mon, 27 Apr 2020 18:50:46 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:58513 Date: 2020-04-27T11:50:46-07:00 List-Id: On Friday, April 24, 2020 at 9:45:34 PM UTC+2, gautier...@hotmail.com wrote= : > 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 Make it embeddable! That's the advantage of scripting language, code/module= s in compiled language can do all the heavy lifting, while providing ease o= f use of a scripting language. That's normal for web and it's the way PHP, Python and Perl work. That's al= so normal in game development, where game logic is often written in some sc= ripting language. Also for some uses it would be useful if it could run compiled pseudocode, = in a manner NET does.