146 points · by iProject · 13y ago · 131 comments
But there's a fault in their thinking IMHO. Web guys are web guys for one reason: They sincerely believe web is the future and better than native desktop software. (For some values of better.)
And then there's the other big group: The native desktop devs who don't think JavaScript is a good choice for a native platform as there's already a big eco system of C/C++ code supporting this platform and why make the extra work of creating JS bindings? (I'm one of these guys - though I don't develop for GNOME.)
So all the GNOME guys do with this decision is to alienate their existing developer base while not really attracting any new devs to their platform.
Personally I think Vala was/is a perfect language for their platform. It's sad they they gave up on that.
It's much harder to figure those out than the usual bindings let's say http://docs.python.org/2/library/sqlite3.html . There is some Database class. But apart from function names no documentation is given at all.
With the python version (and most likely ruby, perl, C, etc.) i can start immediatly, there are examples and everything.
No, why should this be different with the gnome javascript bindings? What happens if there is no binding? You can find lots and lots of bindings for the major script languages and it is easy enough to create one yourself thanks to boost and SWIG and ctypes in python.
That's probably only a very small, but very vocal group of developers; those that seem to spend more of their time on writing about their work and their unique insights into how software development should be done (all inferred from their petty front-end dabbling) than actually doing something productive. The vast majority of web developers is developing for the web out of necessity, not because of some grandiose spiritual self-delusion.
I do of course agree with your view that this move will neither attract new developers nor keep existing developers happy.
I wouldn't call it necessity. I, for one, like the openness of the web, how it allows me to deploy software to all my users at the same time, the customization, etc. I don't believe it's the holy grail, but it's hardly out of necessity that I develop for it.
I may not be close to the metal, but I write good software.
Oh my, your horse, it is so high!
I have to admit that I'm a bit of a JS fan (warts and all), and with NodeJS and MongoDB it's been a far more fluid development experience than other groups of technologies I've had to work with over the past 17 years in software development. It's a pretty decent language to work with.
Being able to reuse a chunk of code written for the web and integrate it into gnome could allow for rapid development of lightweight applications for the desktop.
Since the Linux desktop is still a minority platform, anything that makes it easier to port apps there without digging into python/mono/C++ is a win.
In fact with MS adding first class JS support for metro apps there might be an opening for a cross platform library that pops out Metro and Gnome apps.
As for code-reuse, most any web library you could care for has probably been done, better, locally. The only allure of Javascript libraries are that they can be utilized in the browser, and since GNOME JS code relies on GNOME-specific APIs you don't even get that benefit.
GTK already allows you to write cross-platform apps. Javascript isn't going to improve matters there.
From a business point of view you are likely looking at a considerable time sink on an existing developer, or possibly hiring an extra one.
This to develop for a platform with ~1% market share does not necessarily look like a great investment.
Javascript on the desktop allows you to take a bunch of the code that you may have already written for the web or for Metro or for phonegap , add GTK stuff for desktop integration and call it good.
Not only that there is a sane language like Python, there is Vala as well. There are already are good binding for both. GNOME should have marketed the hell of out of Vala, I think.
I think GNOME should have played ball better with Ubuntu. Now they sort of got pushed to the back a bit and they are trying to be "cool" again. But as you said, there is only one latest cool platform and that's the browser.
If I want to write a "app" for GNOME I would write it for Ubuntu's Software Store, I wouldn't write it for GNOME desktop.
Maybe; how does that fit in with PhoneGap?
http://phonegap.com/2012/05/09/phonegap-beliefs-goals-and-ph...
> The ultimate purpose of PhoneGap is to cease to exist.
"Our second goal is not nihilistic but is rather a commitment to standardization of the web as a platform. We believe in a web open to everyone to participate however they will. No locked doors. No walls. The things we do with PhoneGap are directly influenced by the work we see at the W3C, WHATWG, and other research such as Mozilla's WebAPI, BONDI, WAC, Webinos, webOS, Tizen and the like."
Charging for software is somehow evil, but wallet gardens with "road tax" are somehow acceptable and people are getting used to them.
Makes sense for them I guess, but I'm going to continue ignoring Gnome as I've been doing since Gnome 3, as they have made very clear I'm "outside of their target demographic".
When it comes to language bindings GObject creates bindings for multiple languages. I know I'm only ever going to use Gtk via python personally.
If you're using GI to access GObject libraries like Gtk+, you can still use any library your language supports for anything you want to do.
[1] http://en.wikipedia.org/wiki/Vala_%28programming_language%29 [2] https://live.gnome.org/Vala/Documentation#Projects_Developed...
genuinely curious : In general, do we see a lot of desktop app developers coming from the web world on Linux ? I'm pretty sure that is not the case in the Windows world. In fact, more often than not I have seen die hard fanatics ("interpreted languages sucks for desktop apps!!" vs "C++ sucks") on both sides unwilling to cross over.
Dart has a VM by the same folks who created the JavaScript V8 Engine and they say that they expect Dart to be faster than JavaScript in a number of ways. Part because Dart's code is less dynamic than JavaScript's. Part because loading Dart files could use a pre-parsed file.
You can work on documenting Dart code by adding types to the APIs as it's optionally typed. Dart on the browser gets translated into JavaScript for deployment making the issue of not having a Dart VM everywhere less important.
One of the niceties of Dart is that before deploying, code gets reduced by removing unused code with a tree-shaking algorithm based on Dart's less dynamic features.
class Dart extends JavaScript {
var points;
Dart(this.points = 10);
}
That's a sample Dart class with default constructor parameter.In fact I recommend reading the comments.
EDIT: ah, I didn't notice the reg linked to the blog post (I got distracted by the inaccurate title). Well, that's the source anyway and my recommendation stands.
Kudos to Travis Reitter for replying to the comments.
JS isn't the sole app dev language and it won't ever be. It's the language they chose to prioritize resources for tooling, documentation, and evangelizing of the platform to new developers.
A better, more thoughtful explanation is at the developer's blog, which I hope the OP link is replaced with: http://treitter.livejournal.com/14871.html
Also, JavaScript is not a bad language for UI development at all. It certainly has its warts, but I liked it more than the other frameworks I've done UIs in: Java Swing, Perl/Python Tk or Haskell WX.
Admittedly, I really liked the FRP logic part with Haskell, but actually using wxWidgets was pretty poor. Also, JavaScript has some very compelling FRP libraries itself which could probably be adapted to work on Gnome.
The irony is when Microsoft comes up with Typescript because they now think javascript is not good enough.
Eventually Javascript will look like Python.
At that time , investing on javascript would not have made Windows sell more.
Now Javascript is seen as a way for MS to get more apps on their RT plateform thus sell more Windows licenses.
However , i dont believe MS javascript move is a long term one.
it's a coffeescript descendant rather than a haskell->js compiler, but it has a very pleasing haskell/ml surface.
Rhythmbox? C. Evolution? C. (Geary? Vala.) Shotwell? Vala. LibreOffice? C++. gnome-terminal? C.
There are no GNOME apps written in JavaScript yet. The fact that they're using it in the shell is promising, but if they want app developers to pick it up en masse they need to lead by example.
I am looking forward to more apps using JS to see how well it all works in practice though. More docs and support will help this I hope.
this also led to the C#/mono platform lagging behind, so that these days writing gnome apps in C# means using deprecated libraries, which is unfortunate.
My question is, what about people that like JavaScript derivatives like CoffeeScript or LiveScript?
That makes absolutely no sense. You aren't going to evaluate GNOME as a C developer and thinking about whether or not you're going to use the Python bindings--you're going to use the C bindings. This is just garbage.
> "We will continue to write documentation for other languages"
I think you mean 'primary'. Everyone who loves C or Python or whatever will continue to be able to use C or Python or whatever.
Q: What do GNOME developers really want? A: Who cares?
As a language, javascript feels less complete when compared to other languages (like python). The weak-typing is especially bad, leading to inconsistent results. More time/effort is then required to write a good application, which I think is unacceptable.
By comparison python is a relatively niche language.
It also has the advantage of allowing web devs to port their web code over easily to a desktop app.
Things were much better when it was C programmers doing the bulk of GNOME's design and implementation.
Funny how the number of languages a programmer can pick from is growing every day, but on the one HUGE platform that is the web, it's Javascript or nothing. And by funny, I really mean extremely annoying and a severe regression.
I guess my point is that growth doesn't matter when it's in another sector.
This move is bad for the GNOME project as it has the potential to knock the quality of new GNOME apps down to the quality of the average web app. They're robbing themselves of the benefits of native development and, due to their GNOME-specific APIs, not even getting portability in return.
I can understand if they are recommending it, but I'm not sure lowering the barrier to entry so low that you're going to have an absolute tonne of horrendously written, likely insecure apps, is all that good.
>> lowering the barrier to entry so low that you're going to have an absolute tonne of horrendously written, likely insecure apps, is all that good.
I disagree. One of the most common questions about opensource projects is "where do I start contributing?", and the FOSS community admits that the initial contribution barrier is high.
Horrendously written apps I can live with: I just won't use them. Regarding insecurity, I'd much rather an insecure desktop app than an insecure web app (that might be accessible to the world).
Recommending is all they are doing here (the title is quite inaccurate)
I'm curious what engine they've decided on using though. As far as I can see, that has not been mentioned. Anyone got any intel?
This would definitely be possible. When GNOME say "Javascript", they actually mean Javascript + GObjectIntrospection + any C libraries that are written with Glib or libraries that have Glib bindings for them.
Javascript will end up calling C code.
But this is very interesting :-) Can you point to any documentation?
Edit: the issue with porting LibreOffice to Javascript is the sheer size of the codebase. I don't suppose anyone has a block diagram anywhere of OpenOffice/LibreOffice that divides it into modules?
I mean, how do you tackle such a massive codebase? It looks like Michael Meeks has a good idea about this, but the biggest problem with the codebase is that there isn't any high level, quality documentation that shows how it works.
Also... and this is probably just me, but I can't even find the entry-point to the code. That's always been my issue with these apps, but that just shows my exceeding lack of ability in C++ coding I suspect.