News for hackers. Stuff that matters.
Re:Why don't they implement Python and Ruby on the web brows... by doublerebel on Friday December 16, 2011 @01:32PM (#3361653)
The browsers themselves are already built and powered using JS. Maintaining a comprehensive API at the speed that web tech advances in more than one client-side scripting language would be hellish -- browser vendors already have enough trouble agreeing on CSS and JS standards. The Stack Overflow article already raised a number of good reasons why not. Not sure why this is garnering so much attention from HN.
Re:Why don't they implement Python and Ruby on the web brows... by zanny on Friday December 16, 2011 @01:49PM (#3361742)
Because we all hate javascript.

I just wish they decoupled javascript engines and browsers, made a language agnostic api spec for the DOM, and just let html <script> tags require a language ref and the browser would be expected to try to find a runtime on the local machine or ask the user to install it. The monopolistic nature of javascript in client web browsing is bad for innovation.

Re:Why don't they implement Python and Ruby on the web brows... by jlongster on Friday December 16, 2011 @02:05PM (#3361815)
Really? You're discounting all of the incredible webapps, games, and social networking on the web. If Javascript was bad for innovation, I sure don't see it.

You're talking language syntax. Although it matters, it practically doesn't. People build stuff no matter what the language looks like. Look at Obj-C, that thing is horrid (syntax-wise) but look at all the developer adoption.

What is bad for innovation is to move back to the 90's where people had to handle local instances of applications, fix versioning problems, and have to install something just because they want one small piece of functionality.

Re:Why don't they implement Python and Ruby on the web brows... by riffraff on Friday December 16, 2011 @02:24PM (#3361905)
> If Javascript was bad for innovation, I sure don't see it.

This is a fallacy: in absence of a peek at some alternative world where something else was available, you can't tell that javascript improved or worsened the innovation rate.

Re:Why don't they implement Python and Ruby on the web brows... by wwweston on Friday December 16, 2011 @03:46PM (#3362249)
It seems pretty reasonable to observe the desktop world, though, since it has the properties under discussion, and ask ourselves whether it's easier to deploy an application to a wide audience there or on the web.
Re:Why don't they implement Python and Ruby on the web brows... by slurgfest on Saturday December 17, 2011 @03:46AM (#3363839)
Well, the problem is that this confounds all the properties of "the desktop world" with the properties of another client-side substitute for Javascript (like, say, Dart or some language using NaCl)
Re:Why don't they implement Python and Ruby on the web brows... by munificent on Friday December 16, 2011 @04:58PM (#3362512)
> webapps

Mostly interesting because of their content and what they do with it on the server.

> games

You've got to be kidding me. There is nothing technically interesting in any web game I've ever seen.

> social networking

Again, has nothing to do with interesting client-side technical challenges and everything to do with the content and community.

> You're talking language syntax.

Don't forget the semantics too.

Re:Why don't they implement Python and Ruby on the web brows... by MatthewPhillips on Friday December 16, 2011 @02:19PM (#3361883)
We don't all hate JavaScript.
Re:Why don't they implement Python and Ruby on the web brows... by maratd on Friday December 16, 2011 @05:06PM (#3362549)
> Because we all hate javascript.

You only hate JavaScript when you're starting out. When you get to know the language and how to use it properly, you begin to appreciate it in a very unique way. Until you understand what prototypical programming truly is, you don't understand JavaScript.

Re:Why don't they implement Python and Ruby on the web brows... by winteriscomming on Friday December 16, 2011 @06:30PM (#3362794)
I don't think you can dismiss someones dislike for a language as "they don't know how to use it". Common, many people have been building applications on client and server for 15+ years using JS and whatever exists on the backend. And 90% of the time, the backend language is better, and has way better tooling.

So you can understand and master JS (including prototypical programming) and still hate it.

Re:Why don't they implement Python and Ruby on the web brows... by bzbarsky on Saturday December 17, 2011 @12:08AM (#3363460)
There _is_ a language-agnostic API spec for the DOM; that's the whole point of the DOM specs. It's led to APIs that are a huge pain to use from any language (I've tried it from C++, Java, and JavaScript).
Re:Why don't they implement Python and Ruby on the web brows... by gnaritas on Friday December 16, 2011 @04:52PM (#3362495)
> Because we all hate javascript.

Says who? I love JavaScript, as do a great many other developers. I look at CoffeeScript and all I can think is yuk.

Re:Why don't they implement Python and Ruby on the web brows... by dman on Friday December 16, 2011 @03:05PM (#3362082)
Why arent browser UI's created using HTML, CSS and JS ?
Re:Why don't they implement Python and Ruby on the web brows... by wwweston on Friday December 16, 2011 @03:20PM (#3362150)
I think the various Mozilla projects actually do have facilities for this, and that some significant portion of the chrome is done this way.

Where browser UIs aren't done this way, though, I suspect it's because the APIs are for components that aren't markup based -- you write the software for the platform with the APIs it provides, or (as I believe Mozilla has done) you write your own platform on top of something else.

I think the real question to ask yourself is -- if the conventional patterns of the desktop API that we'd more or less laid down by the mid 90s were so generally awesome, why didn't some universal client based on them take off instead of the web?

It's not as if we didn't have network aware desktop-style clients at the time...

Re:Why don't they implement Python and Ruby on the web brows... by dman on Friday December 16, 2011 @03:45PM (#3362242)
I think we are asking opposite questions - if web based UI's are so awesome and have no caveats attached for display based apps then why are browsers not written using HTML, CSS and JS ? I am asking this question because I know at least one person from mozilla has replied to this thread.
Re:Why don't they implement Python and Ruby on the web brows... by randomdata on Friday December 16, 2011 @06:54PM (#3362862)
"why didn't some universal client based on them take off instead of the web?"

Because you had several companies all fighting to have their desktop platform be the standard. The web slipped in the back door because nobody felt threatened by a hyperlink document publishing system. As such, it was the only platform that was available everywhere. Worse is better.

Interestingly, the web is starting to adopt the old desktop model. If you look at many of the emerging frameworks for web development (talking client side here), they all seem to be loosely based on the work of OpenStep.

It is actually a really great question posed by dman. If the web is suitable for applications, the browser chrome should be one of those such applications.

Re:Why don't they implement Python and Ruby on the web brows... by Tobu on Friday December 16, 2011 @07:31PM (#3362948)
In large part they are. Mozilla Firefox is 80% JS, and the chrome is XUL, an XML language.