comp.lang.ada
 help / color / mirror / Atom feed
From: Bojan Bozovic <bozovic.bojan@gmail.com>
Subject: Re: Script-like jobs in Ada (ideas for HAC)
Date: Mon, 27 Apr 2020 11:50:46 -0700 (PDT)
Date: 2020-04-27T11:50:46-07:00	[thread overview]
Message-ID: <1326c12c-570a-4af8-a183-6b5d00c155c7@googlegroups.com> (raw)
In-Reply-To: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com>

On Friday, April 24, 2020 at 9:45:34 PM UTC+2, gautier...@hotmail.com wrote:
> It's a poll - sort of.
> 
> The question is: what kind of jobs do you prefer let a scripting language do and not Ada?
> 
> 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 that browses files and collects some information in those files (just an example). 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 more comfortable with a script that runs immediately without making garbage files.
> 
> 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 convenient functions and libraries. It's all work-in-progress currently, and ideas of applications are welcome at this point of the development.
> 
> 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/modules 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.

  parent reply	other threads:[~2020-04-27 18:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 19:45 Script-like jobs in Ada (ideas for HAC) gautier_niouzes
2020-04-24 23:22 ` cantanima.perry
2020-04-25  0:11 ` Nasser M. Abbasi
2020-04-25 19:00   ` Stephen Leake
2020-04-25 23:35     ` Dennis Lee Bieber
2020-04-25 18:52 ` Stephen Leake
2020-04-26  6:49 ` mockturtle
2020-04-26  9:26 ` Jeffrey R. Carter
2020-04-26 14:49 ` Simon Wright
2020-04-27 18:50 ` Bojan Bozovic [this message]
2020-04-27 19:01   ` Optikos
2020-04-27 20:31   ` Dmitry A. Kazakov
2020-04-28  8:51 ` Jerry
2020-04-29 15:47 ` joakimds
2020-04-29 19:54 ` darek
2020-04-30  8:02 ` gautier_niouzes
2020-04-30  8:44   ` Dmitry A. Kazakov
2020-05-01  7:31     ` gautier_niouzes
2020-05-01  7:51       ` Dmitry A. Kazakov
2020-05-01 15:46         ` gautier_niouzes
2020-05-01 16:22           ` Dmitry A. Kazakov
2020-05-02  5:36 ` Trescott Jensen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox