r/ATS • u/Jondice83 • Jun 22 '13
r/ATS • u/Enji-Hex • Oct 15 '26
Fixing ATS2 (Postiats 0.4.2) compilation on modern toolchains (GCC 16 + Arch Linux)
Hey everyone,
I was experimenting with ATS2 (Postiats 0.4.2) on Arch Linux setup (GCC 16.2.1) and I ran into compilation conflicts with legacy C header declarations (specifically around bsearch in prelude/CATS/array.cats).
To make building and testing ATS2 painless I wrote minimal bootstrap script.
Feel free to check it out.
r/ATS • u/charlielidbury • Jan 06 '24
Multiple borrows vs ATS' linear types
Hello, am currently learning ATS from the fantastic Introduction to Programming in ATS, and have gotten a bit stuck on Views for Memory Access through Pointers. I have a background in Rust so my thinking is somewhat framed in concepts from over there.
The way it passes the views (which I'm interpretting as tokens of ownership) around, seemingly doesn't allow for immutably borrowing. To borrow a value, you pass a function ownership, and it gives it back, so how would you express something like this (Rust) in ATS?:
fn max_ref<'a>(x: &'a i32, y: &'a i32) -> &'a i32 {
if x > y { x } else { y }
}
fn main() {
let x = 5;
let z = max_ref(&x, &x); // x borrowed twice
dbg!(z); // z = 5
}The equivilant ATS would take in two viewtypes, one for x and one for y, which in this example would mean using the ownership token for x twice before the function returns, which violates lineararity.
Many thanks to anyone who can shine some light on the subject! Boy is this a heavy language to try and grapple.
EDIT: More generally I guess my question is "how do you do immutable borrows?", because they're much more common than mutable borrows in Rust but the ATS default seems equivilant to mutable borrows.
r/ATS • u/CryHavoc3000 • Apr 07 '25
Can anyone else get to ATS?
This is what I get when Iry to go to ATS.
Connection timed out
Connection timed out
Error code 522
Visit cloudflare.com for more information.2025-04-07 06:45:11 UTC
Error code 522
Anyone else getting this?
At the link it says:
Cloudflare protects this website
But, something went wrong trying to reach it
If the problem isn’t resolved in the next few minutes, it’s most likely an issue with the web server you were trying to reach.
Cloudflare is a global network that secures websites, applications, remote teams, and networks. We help build a better Internet through a focus on security and speed.
Is the site down? Is it not accepting VPNs anymore?
r/ATS • u/peripateticman2026 • Nov 10 '25
Is it even worth waiting for ATS(3)?
Last I checked (around 4 years back), ATS3, the final version of ATS was supposed to be almost done.
I checked the Xanadu repo yesterday, and I can't make sense of what's been done, what's pending, how to get started etc.?
I've been really enthusiastic about ATS(3), and stopped learning ATS2 when it was announced that ATS3 was the final version of the language, and in the works.
At this stage, it seems like it's pointless to even wait for it anymore? The Google groups is practically abandoned, and so, it seems, is this subreddit as well.
r/ATS • u/doublec • Apr 28 '26
Is there still interesting in ATS dicussion? Subreddit takeover has been requested.
Hello /r/ATS members. There has been a request in /r/redditrequest by someone asking if they could take over the /r/ATS subreddit for a different topic, stating that the subreddit appears relatively low trafficed. I was asked by Reddit to comment and I've requested that while it has low activity it would be good for it to continue as a place to discuss the ATS language.
What are your thoughts, as community members and ATS users? Would you care if this subreddit was no longer available for ATS discussion?
r/ATS • u/[deleted] • Nov 30 '14
Project announces switch from Haskell to ATS
Examples of large or impressive programs in ATS?
I try to judge languages and their ecosystems by what they let you do. Are there any large, impressive, or otherwise notable ATS programs that demonstrate the potential of the language and its tools?
ATS Text editor
Is there any text editor that helps me spell check my code for syntax errors and just common mistakes as I am new to the language and commonly make mistakes. I can't seem to find a good one to use. I currently use emacs but it does not have any of the functions and basically is just a simple text editor. Is there anything betteR?