general questions about ats postiats and upcoming xanadu compatibility

75 views
Skip to first unread message

saif.ras...@gmail.com

unread,
Jan 21, 2022, 11:28:32 AMJan 21
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
thanks.

saif.ras...@gmail.com

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

d4v3y_5c0n3s

unread,
Jan 25, 2022, 1:46:48 PMJan 25
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

saif.ras...@gmail.com

unread,
Jan 27, 2022, 12:21:03 PMJan 27
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

unread,
Jan 27, 2022, 5:31:54 PMJan 27
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 https://discord.gg/bpt7wj9Q

ianxek

saif.ras...@gmail.com

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

gmhwxi

unread,
Jan 28, 2022, 10:37:50 AMJan 28
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.

--Hongwei
Reply all
Reply to author
Forward
0 new messages