Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The meek are contesting the will.


devel / comp.lang.ada / Ann: HAC v.0.0996

SubjectAuthor
* Ann: HAC v.0.0996Gautier write-only address
`* Re: Ann: HAC v.0.0996Leo Brewin
 `* Re: Ann: HAC v.0.0996Gautier write-only address
  `* Re: Ann: HAC v.0.0996Gautier write-only address
   `- Re: Ann: HAC v.0.0996Leo Brewin

1
Ann: HAC v.0.0996

<57398132-c1c0-44bf-b974-78963f8d241fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6556&group=comp.lang.ada#6556

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ae9:c00f:: with SMTP id u15mr5319292qkk.689.1642844469597;
Sat, 22 Jan 2022 01:41:09 -0800 (PST)
X-Received: by 2002:a25:8d10:: with SMTP id n16mr11411939ybl.696.1642844469445;
Sat, 22 Jan 2022 01:41:09 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sat, 22 Jan 2022 01:41:09 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4596:5040:111b:d1a9:e9f6:431b;
posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG
NNTP-Posting-Host: 2a02:1206:4596:5040:111b:d1a9:e9f6:431b
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <57398132-c1c0-44bf-b974-78963f8d241fn@googlegroups.com>
Subject: Ann: HAC v.0.0996
From: gautier_...@hotmail.com (Gautier write-only address)
Injection-Date: Sat, 22 Jan 2022 09:41:09 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 29
 by: Gautier write-only a - Sat, 22 Jan 2022 09:41 UTC

HAC (HAC Ada Compiler) is a small, quick, open-source Ada compiler,
covering a subset of the Ada language.
HAC is itself fully programmed in Ada.

Web site: http://hacadacompiler.sf.net/

Source repositories:
#1 svn: https://sf.net/p/hacadacompiler/code/HEAD/tree/trunk/
#2 git: https://github.com/zertovitch/hac

* Main improvements since v.0.095:

- range checks on discrete subtype assignment (:=) and
conversion
- short-circuit logical operators: "and then", "or else"
- for S = Scalar subtype: S'First, S'Last, S'Succ, S'Pred, S'Pos,
S'Val, S'Image, S'Value, S'Range attributes
- for A = array object or array subtype: A'First [(N)],
A'Last [(N)], A'Range [(N)], A'Length [(N)] attributes
- "&", "<", ">", "=", "/=" operators defined for the String type
(additionally to HAL.VString type)
- CASE choices admit ranges
- forward declarations for subprograms

Enjoy!

Gautier

PS: for Windows there is an integrated editor that embeds HAC:
LEA: http://l-e-a.sf.net

Re: Ann: HAC v.0.0996

<caa56d2b-7997-2c1e-2669-11ed0fc51210@monash.edu>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6557&group=comp.lang.ada#6557

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Leo.Bre...@monash.edu (Leo Brewin)
Newsgroups: comp.lang.ada
Subject: Re: Ann: HAC v.0.0996
Date: Sun, 23 Jan 2022 11:51:25 +1100
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <caa56d2b-7997-2c1e-2669-11ed0fc51210@monash.edu>
References: <57398132-c1c0-44bf-b974-78963f8d241fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="be8920a51248f98503e98040b5bcbd10";
logging-data="29726"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DISTmKxZ3FbJZfj9ihj7cwLsEqFREALS3IyS1HzJTEQ=="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Cancel-Lock: sha1:pAGBkaB5mGM/sVERYE4EiUCroVY=
In-Reply-To: <57398132-c1c0-44bf-b974-78963f8d241fn@googlegroups.com>
Content-Language: en-US
 by: Leo Brewin - Sun, 23 Jan 2022 00:51 UTC

Thanks Gautier for the latest updates to HAC.

I just ran the gallery test on my macOS and I got a constraint error
while running attributes.adb. Here is the output:

Attributes Standard subtypes are indicated with '*'
========== HAL subtypes are indicated with '#'

S'First and S'Last attributes for scalar subtype S:

* Integer's bounds : -9223372036854775808 .. 9223372036854775807
* Natural's bounds : 0 .. 9223372036854775807
* Positive's bounds : 1 .. 9223372036854775807
Some_Range's bounds : -123 .. 456
* Boolean's bounds : False .. True
A_to_Z's bounds : A .. Z

Execution of ../hac terminated by unhandled exception
raised CONSTRAINT_ERROR : erroneous memory access
Load address: 0x10f8a0000
Call stack traceback locations:
0x10f9d02a7 0x7ff80fc2ae2b 0x10f9bcee4

If I comment out line number 47 (which uses Real'First and Real'Last)
then the code runs without error.

For gnatmake I used the AdaCore 2019 version,

GNATMAKE Community 2019 (20190517-83)
Copyright (C) 1995-2019, Free Software Foundation, Inc.

and I'm running this on macOS 12.1

Cheers,
Leo

Re: Ann: HAC v.0.0996

<b1084a43-9b1b-4d70-9b7b-9d2efe7d0ecbn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6558&group=comp.lang.ada#6558

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:14:: with SMTP id x20mr9505316qtw.216.1642939782441;
Sun, 23 Jan 2022 04:09:42 -0800 (PST)
X-Received: by 2002:a25:b9d2:: with SMTP id y18mr17482360ybj.615.1642939782227;
Sun, 23 Jan 2022 04:09:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 23 Jan 2022 04:09:41 -0800 (PST)
In-Reply-To: <caa56d2b-7997-2c1e-2669-11ed0fc51210@monash.edu>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4596:5040:d47b:ad79:7031:79c8;
posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG
NNTP-Posting-Host: 2a02:1206:4596:5040:d47b:ad79:7031:79c8
References: <57398132-c1c0-44bf-b974-78963f8d241fn@googlegroups.com> <caa56d2b-7997-2c1e-2669-11ed0fc51210@monash.edu>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b1084a43-9b1b-4d70-9b7b-9d2efe7d0ecbn@googlegroups.com>
Subject: Re: Ann: HAC v.0.0996
From: gautier_...@hotmail.com (Gautier write-only address)
Injection-Date: Sun, 23 Jan 2022 12:09:42 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 5
 by: Gautier write-only a - Sun, 23 Jan 2022 12:09 UTC

Hi Leo,
Thanks for the feedback. I ran into issues using an old version of GNAT (not the same year, for another machine, ...) so hopefully my fix solves your issue(s) as well.
The fix is commit d523657 on git/github, 588 on svn/sourceforge.
One issue involves the HAC_Image function (a "nice image" for floating-point numbers) and is not yet resolved (might be in that old GNAT's run-time library), but the attributes.adb examples turns around that one.
Cheers,
Gautier

Re: Ann: HAC v.0.0996

<0d6034e9-931a-4fcc-82cb-72022e8b540bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6559&group=comp.lang.ada#6559

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:29d2:: with SMTP id s18mr8071357qkp.604.1642942725867;
Sun, 23 Jan 2022 04:58:45 -0800 (PST)
X-Received: by 2002:a25:b906:: with SMTP id x6mr17574156ybj.372.1642942725645;
Sun, 23 Jan 2022 04:58:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 23 Jan 2022 04:58:45 -0800 (PST)
In-Reply-To: <b1084a43-9b1b-4d70-9b7b-9d2efe7d0ecbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4596:5040:d43e:2837:4ecd:2b0e;
posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG
NNTP-Posting-Host: 2a02:1206:4596:5040:d43e:2837:4ecd:2b0e
References: <57398132-c1c0-44bf-b974-78963f8d241fn@googlegroups.com>
<caa56d2b-7997-2c1e-2669-11ed0fc51210@monash.edu> <b1084a43-9b1b-4d70-9b7b-9d2efe7d0ecbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0d6034e9-931a-4fcc-82cb-72022e8b540bn@googlegroups.com>
Subject: Re: Ann: HAC v.0.0996
From: gautier_...@hotmail.com (Gautier write-only address)
Injection-Date: Sun, 23 Jan 2022 12:58:45 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 2
 by: Gautier write-only a - Sun, 23 Jan 2022 12:58 UTC

> One issue involves the HAC_Image function (a "nice image" for floating-point numbers) and is not yet resolved (might be in that old GNAT's run-time library), but the attributes.adb examples turns around that one.

Issue was in System.Img_Real, procedure Set_Image_Real, as in GNAT GPL 2017. Obviously it has been fixed since then.

Re: Ann: HAC v.0.0996

<905635a4-cec1-6d72-3d53-56b07e95b689@monash.edu>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6560&group=comp.lang.ada#6560

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Leo.Bre...@monash.edu (Leo Brewin)
Newsgroups: comp.lang.ada
Subject: Re: Ann: HAC v.0.0996
Date: Mon, 24 Jan 2022 10:13:19 +1100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <905635a4-cec1-6d72-3d53-56b07e95b689@monash.edu>
References: <57398132-c1c0-44bf-b974-78963f8d241fn@googlegroups.com>
<caa56d2b-7997-2c1e-2669-11ed0fc51210@monash.edu>
<b1084a43-9b1b-4d70-9b7b-9d2efe7d0ecbn@googlegroups.com>
<0d6034e9-931a-4fcc-82cb-72022e8b540bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="8cdb953a316d2fc6c7584d989f46ef22";
logging-data="32465"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pMTjuCvgEhJuFsG+I39axmEKlNZBFJwRlLvZYayxwjw=="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.5.0
Cancel-Lock: sha1:ptaYkCuhVdHEyhkLK5uNjX8dsgY=
In-Reply-To: <0d6034e9-931a-4fcc-82cb-72022e8b540bn@googlegroups.com>
Content-Language: en-US
 by: Leo Brewin - Sun, 23 Jan 2022 23:13 UTC

Thanks Gautier, it all works fine now.
Keep up the great work :)
Cheers, Leo

On 23/1/2022 11:58 pm, Gautier write-only address wrote:
>> One issue involves the HAC_Image function (a "nice image" for floating-point numbers) and is not yet resolved (might be in that old GNAT's run-time library), but the attributes.adb examples turns around that one.
>
> Issue was in System.Img_Real, procedure Set_Image_Real, as in GNAT GPL 2017. Obviously it has been fixed since then.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor