general questions about ats postiats and upcoming xanadu compatibility

Skip to first unread message

Jan 21, 2022, 11:28:32 AM1/21/22
to ats-lang-users
hi everyone, sorry for noob questions
1. will there be support added for msvc?
2. does ats code compile to c89 and/or c99?
3. does it support  pre-processor?
4.  a) if it does would you be able to use win32-threads aswell as pthreads?
      b) if not can i jam win32-thread code into the "<% %>" delimiters

Jan 21, 2022, 11:30:43 AM1/21/22
to ats-lang-users
correction for 4 b: if not 4 a then can i jam win32-thread code into "<% %>" delims


Jan 25, 2022, 1:46:48 PM1/25/22
to ats-lang-users
I'll try to answer your questions to the best of my ability.
  1. ATS Postiats (also known as ATS2) does not currently support MSVC, and likely never will since ATS Xanadu (a.k.a. ATS3) is the main focus of the lead developer.
  2. I don't know what C standard ATS compiles to, but it's probably safe to assume it compiles to C99 unless there is evidence to the contrary.
  3. In ATS2 you have full access to C's pre-processor, and can use it just like how you would when programming in C.
  4. I know you can use pthreads in ATS, there are some examples of this in the ATS Postiats.  Assuming win32-threads are accessible through a C API, then ATS can use it via FFI.
If you are interested in learning to use ATS, I'd reccommend checking out the documentation available on the ATS website and the wiki page for ATS2.  And don't be afraid to post addition questions. :D

Jan 27, 2022, 12:21:03 PM1/27/22
to ats-lang-users
Thanks, I'll ask my questions here if I have any questions, the first thing I want to do is actually compile some ATS example with pthreads and see if the code runs on MinGW-w64 and mac and linux. I understand the language is abnormally powerful, but i want the c code spit out by the ATS compiler to work _everywhere_ including windows.

If it meets this criteria, then I'll put all my effort into learning this language.

Yann Le Du

Jan 27, 2022, 5:31:54 PM1/27/22
to ats-lang-users
I’ll be interested in hearing from you when you have the results because I plan to use pthreads too. You can also keep us informed on the Discord channel


Jan 28, 2022, 4:12:47 AM1/28/22
to ats-lang-users
thx for the interest, i'll try keep u updated, ive joined the discord as mustapha


Jan 28, 2022, 10:37:50 AM1/28/22
to ats-lang-users
Postiats and Xanadu use the same data representation (when compiled to C).
So they should be compatible at the level of C.

Reply all
Reply to author
0 new messages