After installing ATS-Postiats-include, one can compile
C code generated from ATS source without installing the
ATS compiler. So a convenient way to distribute software
written in ATS is to simply release the C code generated
from the ATS source.
See below for some major additions and changes in ATS2-0.1.1.
Cheers!
–Hongwei
This is the 10th release of ATS2, the successor of the ATS
programming language. The compiler for ATS2 is given the name
ATS/Positats, ATS2/Postiats or simply Postiats.
I also changed the code to staload the correct paths, but still didn’t work.
– AlexOn Wednesday, August 6, 2014 1:25:04 AM UTC-7, Alex Chen wrote:
I think there might be some packaging changes here that caused the error
below. I’m trying to compile misc.dats file, and I got this error:
/home/ajchen/ats-test/misc.dats: 2095(line=102, offs=1) – 2159(line=103,
offs=52): error(1): the file
[{$ATSCNTRB}/libats-hwxi/testing/SATS/randgen.sats] is not available for
staloading.
exit(ATS): uncaught exception:
_2home_2hwxi_2research_2Postiats_2git_2src_2pats_error_2esats__FatalErrorException(1025)
I looked at the ATS2 contrib, and it has libats-/hwxi directory instead. I
tried to changed it to libats-hwxi, but compilation still didn’t go
through. I’ve tried setting my PATSHOMERELOC and also moving contrib
directory into PATSHOME. The error message complained about ATSCNTRB
variable? I tried setting that, but to no avail.
I think there might be some packaging changes here that caused the error
below. I’m trying to compile misc.dats file, and I got this error:
/home/ajchen/ats-test/misc.dats: 2095(line=102, offs=1) – 2159(line=103,
offs=52): error(1): the file
[{$ATSCNTRB}/libats-hwxi/testing/SATS/randgen.sats] is not available for
staloading.
exit(ATS): uncaught exception:
_2home_2hwxi_2research_2Postiats_2git_2src_2pats_error_2esats__FatalErrorException(1025)
I looked at the ATS2 contrib, and it has libats-/hwxi directory instead. I
tried to changed it to libats-hwxi, but compilation still didn’t go
through. I’ve tried setting my PATSHOMERELOC and also moving contrib
directory into PATSHOME. The error message complained about ATSCNTRB
variable? I tried setting that, but to no avail.
This tiny sample produces an uncaught exception in Postiats:
datatype list (a: t@ype) =
| nil (a) of ()
| cons (a) of (a, list a)
val _ = $showtype list
Trying to type check, I get this output, produced by the $showtype line:
exit(ATS): uncaught exception:
_2home_2hwxi_2research_2Postiats_2git_2src_2pats_error_2esats__FatalErrorException
(1025)Le jeudi 31 juillet 2014 01:33:31 UTC+2, gmhwxi a écrit :
---------- Forwarded message ----------
Date: Wed, 30 Jul 2014 19:22:41 -0400 (EDT)
From: Hongwei Xi <hw…@cs.bu.edu <javascript:>>
To: ats-l...@lists.sourceforge.net <javascript:>
Subject: ATS2-0.1.1 released
Never mind. I got it working after fixing the code for correctly loading
the SATS and DATS files.
– AlexOn Wednesday, August 6, 2014 1:45:36 AM UTC-7, Alex Chen wrote:
I also changed the code to staload the correct paths, but still didn’t
work.
– Alex
On Wednesday, August 6, 2014 1:25:04 AM UTC-7, Alex Chen wrote:
I think there might be some packaging changes here that caused the error
below. I’m trying to compile misc.dats file, and I got this error:
/home/ajchen/ats-test/misc.dats: 2095(line=102, offs=1) – 2159(line=103,
offs=52): error(1): the file
[{$ATSCNTRB}/libats-hwxi/testing/SATS/randgen.sats] is not available for
staloading.
exit(ATS): uncaught exception:
_2home_2hwxi_2research_2Postiats_2git_2src_2pats_error_2esats__FatalErrorException(1025)
I looked at the ATS2 contrib, and it has libats-/hwxi directory instead.
I tried to changed it to libats-hwxi, but compilation still didn’t go
through. I’ve tried setting my PATSHOMERELOC and also moving contrib
directory into PATSHOME. The error message complained about ATSCNTRB
variable? I tried setting that, but to no avail.