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:8bc2:: with SMTP id a2mr34281024qvc.246.1588190096098; Wed, 29 Apr 2020 12:54:56 -0700 (PDT) X-Received: by 2002:a4a:a54a:: with SMTP id s10mr29324957oom.73.1588190095687; Wed, 29 Apr 2020 12:54:55 -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: Wed, 29 Apr 2020 12:54:55 -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=2001:1c00:c1d:4b00:b997:f7a4:d434:f994; posting-account=-iT6ZQoAAAAlqBCInAc-vB6x1soT8Jhq NNTP-Posting-Host: 2001:1c00:c1d:4b00:b997:f7a4:d434:f994 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: darek Injection-Date: Wed, 29 Apr 2020 19:54:56 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:58527 Date: 2020-04-29T12:54:55-07:00 List-Id: For heavy operations on texts/strings, and other one-off jobs I use Open Eu= phoria (openeuphoria.org). I run the code on Windows, and Linux. If you nee= d some extra performance, it compiles to C, and then to binaries.=20 Judge for yourself.=20 Darek 1. Sample code: https://openeuphoria.org/wiki/view.wc?page=3DSampleCode 2. Libraries: https://openeuphoria.org/docs/apiref.html#_781_apireference 3. GUI with the Gtk : https://openeuphoria.org/wiki/view/eugtk.wc On Friday, 24 April 2020 21:45:34 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