Javascript is widely used to create apps in the web. How about desktop, etc? Gnome Shell is made of it. I'm just curious if there's a way or something which allows devs to access Gnome/Clutter graphics libraries?
views:
164answers:
5
+1
A:
There are various ways to do this. Besides Rhino, V8/node.js is one of them.
Andrew Kolesnikov
2010-02-23 03:03:50
+1 for mentioning Node.js, it's a great and fun way to build servers
Robert Gould
2010-02-23 05:57:02
But it's not really Gnome related. Yet you still get my +1 for mentioning Rhino although it's not as fun.
Robert Gould
2010-02-23 05:58:19
A:
I dont know much about the Gnome/Clutter graphics access, But several SSJS (Server-side_JavaScript) available that can work on Linux environments.
Ramesh Vel
2010-02-23 05:53:27
+2
A:
The three best options that I know of are Rhino (using Swing, or other Java graphics frameworks), Seed, and Gjs.
Seed and Gjs are both Gnome projects that bind the GTK+ and Gnome libraries to JavaScript. Seed uses the JavaScriptCore runtime from WebKit and Gjs uses Mozilla's Spidermonkey engine. Gnome Shell is using Gjs.
Another option that, as far as I know, is still pretty immature is Gom. Instead of just a JavaScript binding for GTK+, it has an HTML-like DOM interface.
Matthew Crumley
2010-02-23 17:33:07
I also want to point out that both Seed and GJS support Clutter through GObjectIntrospection.
Brian McKenna
2010-03-24 01:00:41