Here is a small experiment I did:
https://ats-lang.github.io/EXPERIMENT/test_libatsopt/test_libatsopt.htmlSo finally it is a reality that one can compile ATS source code in the browser.
Note that compilation is done entirely on the client's side, and there is no
involvement of the server (except for delivering files needed for compilation).
What can we do with the C code generated from ATS source?
1) Download it locally and then use a C compiler to compile it
2) I will soon make Atscc2js available for running entirely in the browser. In
this way, the generated C code can be compiled to JS code in the browser
and then evaluated.
I guess what really stands out here is that libatsopt(JS) makes it possible for
everyone (not just ATS developers) to build what I did here. See the source at:
https://github.com/githwxi/ATS-Postiats/tree/master/utils/libatsopt/JS/TEST