5 ms·
So there will be an "official" JS VM but there will be no actual compilation. Title should be updated IMHO.
by sylvinus 15y ago
So there will be an "official" JS VM but there will be no actual compilation. Title should be updated IMHO.
- extension 15y agoMy understanding is that Processing always "compiles" (or more accurately, transliterates) to some other language -- originally Java and now JavaScript as well.
- scott_s 15y agoA source-to-source compiler is still a compiler, and it still compiles. Transliteration implies that there is a one-to-one mapping between concepts in the source language and the target language, which is rarely the case. (If so, why bother with another language? Some of the languages which are a more readable CSS may come close, but my understanding is that they still have a few abstractions that don't exist in CSS.)
- jamesbritt 15y agoSo there will be an "official" JS VM but there will be no actual compilation. You enter code using the Processing language, and if you've selected the JavaScript "mode" it will output JavaScript that uses processing.js and canvas. Prior to 2.0 the modes were "standard" (i.e. Java byte code) and "android" (Dalvik byte code, I presume, since you get an apk file).