Try ATS in your browser

133 views
Skip to first unread message

gmhwxi

unread,
Nov 6, 2015, 8:12:24 AM11/6/15
to ats-lang-users

I have combined Patsopt and Atscc2js.

Now it is all the way from ATS source to C code to JS code to
the evaluation of the JS code:

http://ats-lang.github.io/EXPERIMENT/patsopt-atscc2js-trial/index.html

You probably need Firefox to test it as the stack of a WebWorker in
Chrome is often too small for running patsopt.

Thanks to the Emscripten team!

And special thanks to Will Blair for getting me started on this and for piloting
the work!

As I see this, it is really a small miracle that the whole thing actually works :)

Cheers!

Raoul Duke

unread,
Nov 6, 2015, 11:26:15 AM11/6/15
to ats-lang-users
hi, *very cool*!

I tried in FF 41.0.2 on linux Ubuntu 14.04 x86/32bit, and it did not
appear to me to work? And/or I really do not understand the user
interface. I think it is probably something that could be tweaked to
be more self-evident / "intuitive". If you can do some simple hallway
usability studies, that might be good. :-)
https://duckduckgo.com/?q=hallway+usability

Hongwei Xi

unread,
Nov 6, 2015, 11:38:29 AM11/6/15
to ats-lan...@googlegroups.com

The default setting should just work. The current design is mainly for the
purpose of testing. I will try to write more about it later. I consider using it
to make "live" lecture notes, where people could try coding on-line.

BTW, I just tried it on a cheap LG phone running Chrome. It actually worked :)
It took a long while (like 20 seconds). When it works, you should see some primes
numbers printed out.



--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAJ7XQb5VdgyaAYLExTLdekvRcPJPH5sB_1T8H9DBfEz6DwRxSQ%40mail.gmail.com.

gmhwxi

unread,
Nov 7, 2015, 9:29:38 AM11/7/15
to ats-lang-users

I added a little explanation about the GUI for this server-less
service of try-ats-in-your-browser:

http://ats-lang.github.io/EXPERIMENT/patsopt-atscc2js-trial/index.html

I also tried it on Safari successfully.
Reply all
Reply to author
Forward
0 new messages