3 ms·
There are sites written entirely in Flash and ActionScript, a platform that is now obsolete. Another attempt was Silverlight and XAML (and JavaScript), dead als
by scriptproof 10y ago
There are sites written entirely in Flash and ActionScript, a platform that is now obsolete. Another attempt was Silverlight and XAML (and JavaScript), dead also. I am not sure the desire to abandon JS is shared by all.
- tmzt 10y agoYes, and to be clear I am not calling on developers or browser makers to abandon JS. I'm talking about an additional API that is more suitable to polyglot support in the browser and more in tune with how modern browser frameworks work. JS would remain a first-class language, and users of libraries or frameworks such a React would have to make very few changes to their application if they had to make any at all. The difference is the new API used by React itself to render HTML elements would be faster with native support for diffing and batching updates. Less work would be performed in blocking script contexts or on UI threads with changes to content being essentially atomic. A developer could decide to implement an ES6 module and use a new tag, <import module />, instead of <script>. This tag would support JS, WASM, and a new Dynamic WASM with support for interpreted and dynamic languages like Python or Ruby or Clojure or Elm using a similar bytecode and syntax to WASM. The <script> tag would not change and the window, navigator, and document objects and DOM APIs will be available as always. The same would be true for Angular, Ember and even JQuery.