Compiling ATS Programs to Javascript

79 views
Skip to first unread message

William Blair

unread,
Sep 30, 2013, 2:57:42 PM9/30/13
to ats-lan...@googlegroups.com
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:


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

Cyrille Duret

unread,
Oct 2, 2013, 3:33:50 AM10/2/13
to ats-lan...@googlegroups.com
brilliant !
Unfortunately, emscripten is really not easy to setup in linux/BSD OSes..

;-)
Reply all
Reply to author
Forward
0 new messages