lpetrich
Contributor
The World Wide Web emerged in the early 1990's, as the collective of users of HTML documents across the Internet. Soon afterward, in the mid 1990's, client-side webpage programming emerged. Client-side meaning run in the web browsers that display the pages, rather than in the servers that transmit the pages. Server-side webpage programming is almost universal,
The first was Java, run as "applets", displaying inside of webpages. Webpage Java is no longer very common, with webpage Flash largely superseding it. But applets usually have very little interaction with the pages that contain them.
Not long afterward, JavaScript emerged, with its code embedded in the text of webpages, and with it being able to manipulate just about all of a webpage's content -- the page's Domain Object Model (DOM). But since its introduction in late 1995, it has had only one successful bit of competition: Cascading Style Sheets, introduced a year later. However, CSS is limited to specifying properties of webpage objects like their size and color, and it has no programmability. While JavaScript is Turing-complete, neither HTML nor CSS is.
JavaScript has several problems. All its type checking is done in run time, and it is transmitted as source code, complete with the resulting bulkiness. This makes it difficult to do proprietary software with it, like online games. The Top 10 Things Wrong with JavaScript – JavaScript Non Grata – Medium
But adding another programming language has plenty of problems, like getting the support of major browser writers. That may also be why webpage support for image formats has remained very conservative. So why is Web Assembly getting anywhere where others have yet to get off the ground?
The first was Java, run as "applets", displaying inside of webpages. Webpage Java is no longer very common, with webpage Flash largely superseding it. But applets usually have very little interaction with the pages that contain them.
Not long afterward, JavaScript emerged, with its code embedded in the text of webpages, and with it being able to manipulate just about all of a webpage's content -- the page's Domain Object Model (DOM). But since its introduction in late 1995, it has had only one successful bit of competition: Cascading Style Sheets, introduced a year later. However, CSS is limited to specifying properties of webpage objects like their size and color, and it has no programmability. While JavaScript is Turing-complete, neither HTML nor CSS is.
JavaScript has several problems. All its type checking is done in run time, and it is transmitted as source code, complete with the resulting bulkiness. This makes it difficult to do proprietary software with it, like online games. The Top 10 Things Wrong with JavaScript – JavaScript Non Grata – Medium
1) There is no integer type! JavaScript has only one numerical type and that’s (double precision) floating point.
2) JavaScript’s loose typing and aggressive coercions exhibit odd behaviour.
3) Automatic semicolon insertion. This can cause subtle bugs and unexpected behaviour.
4) JavaScript is seriously abused. Much of the code in the wild, especially those in commonly used libraries, are very badly written.
5) JavaScript is highly dependent on global variables. ... JavaScript also has horrible scoping rules.
6) JavaScript code can fail silently due to syntactical slip-ups.
7) Object prototypes do not scale well to large applications; it’s a rather primitive and sloppy way to do object-oriented programming (but it’s flexible!).
8) Asynchronous programming in JavaScript is very messy.
9) Douglas Crockford says that JavaScript is “Lisp in C’s Clothing.” ... But JavaScript is nothing like Lisp!
10) The main draw of JavaScript is actually in frameworks like Node.js and AngularJS. If not for them, why would you use JavaScript???
But adding another programming language has plenty of problems, like getting the support of major browser writers. That may also be why webpage support for image formats has remained very conservative. So why is Web Assembly getting anywhere where others have yet to get off the ground?