From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Script-like jobs in Ada (ideas for HAC)
Date: Fri, 1 May 2020 09:51:25 +0200
Date: 2020-05-01T09:51:25+02:00 [thread overview]
Message-ID: <r8gkdt$1vbb$1@gioia.aioe.org> (raw)
In-Reply-To: 34a44b75-02ca-43bc-b5cf-04a0a758db88@googlegroups.com
On 2020-05-01 09:31, gautier_niouzes@hotmail.com wrote:
> On Thursday, April 30, 2020 at 10:44:22 AM UTC+2, Dmitry A. Kazakov wrote:
>
>> 1. Where are the modules? It should be possible to write a module for
>> the script e.g. a package that has functions and procedures, which call
>> to Ada implementations. I.e. calling Ada from the script.
>
> On the to-do list :-)
>
>> 2. What about exceptions handling, the ones propagating out of the
>> script into the Ada caller?
>
> Same, but this is a lower-hanging fruit: the VM has error states that could be grouped into an exception_raised state, which would trigger the expected behaviour (with an exception identity and message). If the exception is not handled from the VM, the VM interpreter would raise Unhandled_HAC_Exception with a message.
>
>> 3. Aborting the script. Ideally the Interpret_on_Current_IO you
>> mentioned must be abortable per some event set via protected object, for
>> example. E.g. from another task provided Interpret_on_Current_IO runs on
>> the caller's context. The interpreter will look for the event
>> periodically and propagate exception Canceled_Error if the event is set.
>
> I add this to the to-do list right now, thanks!
With these changes I would consider integrating it into here:
http://www.dmitry-kazakov.de/ada/max_home_automation.htm#5
I presume you have an equivalent of Unbounded_String, records and arrays
of. That should make it. Is
https://sourceforge.net/projects/hacadacompiler/
the major source where you publish updates?
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2020-05-01 7:51 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
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 [this message]
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