So 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?
Download it locally and then use a C compiler to compile it
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:
More on how to use the C code generated from
running patsopt inside the browser:
It just occurred to me that one could readily send the
C code to a web server running locally and then have it
compiled there by gcc, clang, tcc, or even avr-gcc.
Cheers!On Saturday, October 24, 2015 at 4:04:09 PM UTC-4, gmhwxi wrote:
So 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?
Download it locally and then use a C compiler to compile it
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:
It works inside Firefox but not Chromium (due to Chromium using a smaller
call stack for each webworker).On Saturday, October 24, 2015 at 4:04:09 PM UTC-4, gmhwxi wrote:
So 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?
Download it locally and then use a C compiler to compile it
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: