You already can run other languages in a browser. There is a TCL plugin; IE has VB Script; and there is also C# in the form of Silverlight. And who can forget the most popular plugin and language on the web today…. Java FX!?
Flash is also a good example of how you can reach too far. Flash has and has had many impressive features, but a lot of these were later hindered by internet security issues. So we can, for example, wish for a browser language with access to the local file system, but that’s not going to happen. So what then can we wish for?
What is not the problem
It’s flabbergasting to me that CSS has
Yes, everyone wants their precious private variables, but I’m on record for not being a fan, as I feel they are over used and abused. Protected variables on the other hand, give you the best of both worlds: the public API can be exposed as the clear intent, and the protected variables and methods can only be accessed or changed if the class is extended to explicitly override them. If you want to change my library code you need to work for it, yo!
Yes, I’m referring to the fact that
.1 + .2 = 0.30000000000000004. I understand that it’s common problem in floating point numbers using binary digits. I also concede that this situation rarely is an issue for me, because I do largely graphical work, not work that requires extreme numerical accuracy like accounting. Regardless, a new Math namespace would be a welcome addition, and even better, it could be a strictly typed namespace that allows only floating point numbers.
At first glance it may seem to be a great benefit to develop a language outside of the W3C and their sometimes draconian politics, their self centered policies, and their ability to take a great idea and turn it into a shitty one. Lots of languages are written, but only a few catch on. For every great language like Python, you get several like DOS, LotusScript, Authorware, Lingo, or Cold Fusion — or any other Macromedia derived language. Speaking of Macromedia, the early Flash scripting language was proprietary, cumbersome, and unusable. They switched to an ECMAScript-based syntax, and ActionScript exploded with success.
Believe me, I’m not championing the standards body that almost killed off HTML. Nor am I saying that designing a language by committee is a good idea. It’s just that you are fighting an uphill battle if you throw out the standards and start from scratch, even if it’s a better idea. The US System of Measurements is an example of design by a committee of retarded orangutangs flinging their feces at finger paintings to make their discussions — yet the Metric System was not widely adopted. Yet while Python was invented by one guy, it evolved in an open source community.