Compiling ATS Programs to Javascript

Hello,

Recently we found an easy way to compile ATS programs to Javascript so they
can be run inside a browser or a runtime like Node.js. This is an exciting
opportunity now that we can use the features of ATS to make reliable web
applications both on the client and server.

Compilation is supported by the emscripten compiler which compiles C code
to javascript.

Here’s a small animated clock to demonstrate ATS code manipulating an HTML5
Canvas:

http://cs-people.bu.edu/wdblair/jsclock/myclock0.html

and a general overview of how it works along with a how to guide for making
more programs like it:

https://github.com/githwxi/ATS-Postiats/tree/master/doc/PROJECT/SMALL/jsclock

brilliant !
Unfortunately, emscripten is really not easy to setup in linux/BSD OSes…

;-)Le lundi 30 septembre 2013 20:57:42 UTC+2, William Blair a écrit :

Hello,

Recently we found an easy way to compile ATS programs to Javascript so
they can be run inside a browser or a runtime like Node.js. This is an
exciting opportunity now that we can use the features of ATS to make
reliable web applications both on the client and server.

Compilation is supported by the emscripten compiler which compiles C code
to javascript.

Here’s a small animated clock to demonstrate ATS code manipulating an
HTML5 Canvas:

http://cs-people.bu.edu/wdblair/jsclock/myclock0.html

and a general overview of how it works along with a how to guide for
making more programs like it:

https://github.com/githwxi/ATS-Postiats/tree/master/doc/PROJECT/SMALL/jsclock