3 ms·
If I understand this correctly SaneScript is like asm.js in that it's a subset of JavaScript but rather being intended for compilers it's intended for humans so
by bobajeff 12y ago
If I understand this correctly SaneScript is like asm.js in that it's a subset of JavaScript but rather being intended for compilers it's intended for humans so that JS engines can start to remove the insane parts of the language and transition it be SoundScript which is not to be compatible with JavaScript.
- olavk 12y agoSaneScript is AFAICT like the "use strict" directive in ES5 which defines a restricted subset of the language. Compilers might also take advantage of this by performing certain optimizations. SoundScript extends this restricted subset. It is incompatible with previous versions of JavaScript only in the same sense that ES5 is incompatible with ES3: It introduces new features not supported by older engines.