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 2002:a37:6454:: with SMTP id y81mr21809335qkb.266.1588014105026; Mon, 27 Apr 2020 12:01:45 -0700 (PDT) X-Received: by 2002:a9d:b85:: with SMTP id 5mr19384299oth.81.1588014104748; Mon, 27 Apr 2020 12:01:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer02.ams4!peer.am4.highwinds-media.com!peer01.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: Mon, 27 Apr 2020 12:01:44 -0700 (PDT) In-Reply-To: <1326c12c-570a-4af8-a183-6b5d00c155c7@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=47.185.215.60; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.215.60 References: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com> <1326c12c-570a-4af8-a183-6b5d00c155c7@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Script-like jobs in Ada (ideas for HAC) From: Optikos Injection-Date: Mon, 27 Apr 2020 19:01:45 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3688 X-Received-Body-CRC: 877624933 Xref: reader01.eternal-september.org comp.lang.ada:58514 Date: 2020-04-27T12:01:44-07:00 List-Id: On Monday, April 27, 2020 at 1:50:48 PM UTC-5, Bojan Bozovic wrote: > On Friday, April 24, 2020 at 9:45:34 PM UTC+2, gautier...@hotmail.com wro= te: > > It's a poll - sort of. > >=20 > > The question is: what kind of jobs do you prefer let a scripting langua= ge do and not Ada? > >=20 > > My guess is that this kind of choice is related to toolsets, libraries = and other aspects that are not necessarily related to languages. > > For instance you would perhaps avoid using Ada for a 30-lines program t= hat browses files and collects some information in those files (just an exa= mple). Or a little math / stats program? Or a small game? > > But maybe the real reason (even if it is unconscious) you'd avoid Ada i= s because the compiler you are using is slow, or because it spits objects a= nd executable files each time you change your small program. And you'd be m= ore comfortable with a script that runs immediately without making garbage = files. > >=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.a= db" and it just runs (that's already working). Now I'd be curious of exampl= es of scripts you'd consider writing in Ada with HAC, if it supplied the co= nvenient functions and libraries. It's all work-in-progress currently, and = ideas 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/h= ac >=20 > Make it embeddable! That's the advantage of scripting language, code/modu= les in compiled language > can do all the heavy lifting, while providing ease of use of a scripting = language. > That's normal for web and it's the way PHP, Python and Perl work. That's = also normal in game > development, where game logic is often written in some scripting language= . > Also for some uses it would be useful if it could run compiled pseudocode= , in a manner NET does. HAC's MIT license is conducive to embeddability. Conversely, GNAT would be= embeddable (ignoring all technical impracticalities thereof) only in GPLv3= -licensed derivative works. So that would be a difference that makes a dif= ference in mission for HAC (no matter where it ends up 20 years from now fe= ature-wise/language-coverage-wise).