<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Javascript meet Gnome, Gnome meet Javascript</title>
	<atom:link href="http://www.grillbar.org/wordpress/?feed=rss2&#038;p=307" rel="self" type="application/rss+xml" />
	<link>http://www.grillbar.org/wordpress/?p=307</link>
	<description>the infernal output of Mikkel Kamstrup Erlandsen</description>
	<lastBuildDate>Mon, 30 Aug 2010 14:45:38 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: skrat</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-113585</link>
		<dc:creator>skrat</dc:creator>
		<pubDate>Fri, 17 Apr 2009 21:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-113585</guid>
		<description>Well, I think Gnome as a whole should be language neutral. As it is these days, there Gnome and Gtk+ bindings for many popular languages. It&#039;s just that Javascript should included. That&#039;s done by Gjs and Seed.

Now the thing is that DOM + CSS (or alikes) should be used as biulding blocks for next Gtk+ (3.0). Forget GtkBuilder, forget Glade, lets just rebuild these things from scratch. We already can construct GUIs from XML files, so that DOM is there. Why not allow styling using CSS like stylesheets. Let default theme be that of the running system, but allow developers to completely restyle widgets with sweetness as in CSS3.</description>
		<content:encoded><![CDATA[<p>Well, I think Gnome as a whole should be language neutral. As it is these days, there Gnome and Gtk+ bindings for many popular languages. It&#8217;s just that Javascript should included. That&#8217;s done by Gjs and Seed.</p>
<p>Now the thing is that DOM + CSS (or alikes) should be used as biulding blocks for next Gtk+ (3.0). Forget GtkBuilder, forget Glade, lets just rebuild these things from scratch. We already can construct GUIs from XML files, so that DOM is there. Why not allow styling using CSS like stylesheets. Let default theme be that of the running system, but allow developers to completely restyle widgets with sweetness as in CSS3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamstrup</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-103127</link>
		<dc:creator>kamstrup</dc:creator>
		<pubDate>Sat, 07 Mar 2009 13:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-103127</guid>
		<description>@Laszlo: You are talking ancient history :-) See http://www.advogato.org/article/985.html.</description>
		<content:encoded><![CDATA[<p>@Laszlo: You are talking ancient history <img src='http://www.grillbar.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  See <a href="http://www.advogato.org/article/985.html." rel="nofollow">http://www.advogato.org/article/985.html.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laszlo Pandy</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-103083</link>
		<dc:creator>Laszlo Pandy</dc:creator>
		<pubDate>Fri, 06 Mar 2009 15:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-103083</guid>
		<description>I realize this discussion ended months ago, but i just had a thought trying out all these new fancy next gen browsers.

Above Jean remarked that JavaScript is the new defacto VM, citing GWT as an example. There is already a thing like that for Python called Pyjamas (http://pyjs.org/).

Given that Firefox 3.1, Chrome both have new superfast open source JavaScript engines, why can&#039;t we have a thing which lets you write in Python, compile to JavaScript with Pyjamas (translating the GTK api calls using a thing like Vala&#039;s .vapi files) and then run in the fastest VM available. It would be nice to see how much faster than Python we can make it go.</description>
		<content:encoded><![CDATA[<p>I realize this discussion ended months ago, but i just had a thought trying out all these new fancy next gen browsers.</p>
<p>Above Jean remarked that JavaScript is the new defacto VM, citing GWT as an example. There is already a thing like that for Python called Pyjamas (<a href="http://pyjs.org/)" rel="nofollow">http://pyjs.org/)</a>.</p>
<p>Given that Firefox 3.1, Chrome both have new superfast open source JavaScript engines, why can&#8217;t we have a thing which lets you write in Python, compile to JavaScript with Pyjamas (translating the GTK api calls using a thing like Vala&#8217;s .vapi files) and then run in the fastest VM available. It would be nice to see how much faster than Python we can make it go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fresch</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-91247</link>
		<dc:creator>fresch</dc:creator>
		<pubDate>Sun, 30 Nov 2008 23:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-91247</guid>
		<description>I&#039;ll jump on the Lua-wagon as well... let&#039;s just forget Javascript really fast, even though it is prototype based, and there is lots of activity in developing ever faster engines. And instead use Lua... a language actually developed to be embedded! And only minimal syntax, too!

I firmly say no to a consortium controlled language, expecially one where at least one monopolistic company has vested interest in. Even if I happen to like Javascript... that alone kills it for me. Can&#039;t do anything about it being the scripting language of the web in it&#039;s many dialects (see what monopolists did there?) but please lets not use it anywhere else ever...

Also while I&#039;m at it, lets take a look what good it did for HTML and CSS to be governed by a consortium: How long did they have to work on XHTML1.0? How long on CSS v2? Hmmm? How much have the various web consortiums and experts changed to shape todays web? That&#039;s right, they spent too much time and changed not much! It was the Browser Godfathers (Netscape, Mozilla, Microsoft, and that annoying upstart Apple) that changed (or more accurately didn&#039;t), the webdevelopers did change the web, by simply doing and not so much talking (that nobody heard.)

And don&#039;t get me started about &quot;Introducing classes&quot; into Javascript, or &quot;Lambda function statements&quot; (Mozilla)... That&#039;s exactly what&#039;ll happen if you let people that never really use the damn thing decide how it should evolve...

Prototype based and class based can actually live alongside comfortably, I just don&#039;t see why the prototyper has to avoid &quot;class&quot;, &quot;instance&quot;, &quot;public&quot;, &quot;private&quot; and all that design-by-contract-junk for variable names while they don&#039;t even get proper &quot;copy&quot; and &quot;clone&quot; keywords!?</description>
		<content:encoded><![CDATA[<p>I&#8217;ll jump on the Lua-wagon as well&#8230; let&#8217;s just forget Javascript really fast, even though it is prototype based, and there is lots of activity in developing ever faster engines. And instead use Lua&#8230; a language actually developed to be embedded! And only minimal syntax, too!</p>
<p>I firmly say no to a consortium controlled language, expecially one where at least one monopolistic company has vested interest in. Even if I happen to like Javascript&#8230; that alone kills it for me. Can&#8217;t do anything about it being the scripting language of the web in it&#8217;s many dialects (see what monopolists did there?) but please lets not use it anywhere else ever&#8230;</p>
<p>Also while I&#8217;m at it, lets take a look what good it did for HTML and CSS to be governed by a consortium: How long did they have to work on XHTML1.0? How long on CSS v2? Hmmm? How much have the various web consortiums and experts changed to shape todays web? That&#8217;s right, they spent too much time and changed not much! It was the Browser Godfathers (Netscape, Mozilla, Microsoft, and that annoying upstart Apple) that changed (or more accurately didn&#8217;t), the webdevelopers did change the web, by simply doing and not so much talking (that nobody heard.)</p>
<p>And don&#8217;t get me started about &#8220;Introducing classes&#8221; into Javascript, or &#8220;Lambda function statements&#8221; (Mozilla)&#8230; That&#8217;s exactly what&#8217;ll happen if you let people that never really use the damn thing decide how it should evolve&#8230;</p>
<p>Prototype based and class based can actually live alongside comfortably, I just don&#8217;t see why the prototyper has to avoid &#8220;class&#8221;, &#8220;instance&#8221;, &#8220;public&#8221;, &#8220;private&#8221; and all that design-by-contract-junk for variable names while they don&#8217;t even get proper &#8220;copy&#8221; and &#8220;clone&#8221; keywords!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Creating Themes &#171; dborg&#8217;s Journal</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-89160</link>
		<dc:creator>Creating Themes &#171; dborg&#8217;s Journal</dc:creator>
		<pubDate>Wed, 19 Nov 2008 13:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-89160</guid>
		<description>[...] only way I could see CSS making a real difference is if we would enable absolute themes as kamstrup calls it, which I believe are very badly needed if we want to see some actual creative [...]</description>
		<content:encoded><![CDATA[<p>[...] only way I could see CSS making a real difference is if we would enable absolute themes as kamstrup calls it, which I believe are very badly needed if we want to see some actual creative [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamstrup</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-88684</link>
		<dc:creator>kamstrup</dc:creator>
		<pubDate>Mon, 17 Nov 2008 19:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-88684</guid>
		<description>@Gustavo: I think the reasons are sorta implicit from what I write... Please note though I don&#039;t explicitely require C, but just something that compiles to native code. The restriction can be made more loose by setting the requirements for the &quot;native language&quot; part of the architecture, to be not &quot;native&quot;, but:

 * Runs with a memory-footprint comparable to native code
 * Runs with a speed comparable to native code
 * The platform it runs against is pushed into (and used) in the embedded language

Another point is that &quot;Language with Embedded C&quot; pretty much translates to &quot;Writing in a managed language with bindings&quot;... no? Which I specifically say is still a very good way to write apps.

Whether or not Javascript is beautiful or not is really in the eye of the beholder I think. And regarding the performance and foorprint of IronPython I must confess that I don&#039;t know the answer. And if you are writing an app in IronPython why not write the enitre app in IP?</description>
		<content:encoded><![CDATA[<p>@Gustavo: I think the reasons are sorta implicit from what I write&#8230; Please note though I don&#8217;t explicitely require C, but just something that compiles to native code. The restriction can be made more loose by setting the requirements for the &#8220;native language&#8221; part of the architecture, to be not &#8220;native&#8221;, but:</p>
<p> * Runs with a memory-footprint comparable to native code<br />
 * Runs with a speed comparable to native code<br />
 * The platform it runs against is pushed into (and used) in the embedded language</p>
<p>Another point is that &#8220;Language with Embedded C&#8221; pretty much translates to &#8220;Writing in a managed language with bindings&#8221;&#8230; no? Which I specifically say is still a very good way to write apps.</p>
<p>Whether or not Javascript is beautiful or not is really in the eye of the beholder I think. And regarding the performance and foorprint of IronPython I must confess that I don&#8217;t know the answer. And if you are writing an app in IronPython why not write the enitre app in IP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamstrup</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-88680</link>
		<dc:creator>kamstrup</dc:creator>
		<pubDate>Mon, 17 Nov 2008 18:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-88680</guid>
		<description>@mohaine: The Gjs Style_Guide.txt[1] states that this pattern should be avoided. Quoting that document:

&quot;The problem with this pattern is that you might want to have side effects in the Base() constructor. Say Base() in its constructor creates a window on the screen, because Base() is a dialog class or something. If you use the pattern that some instances of Base() are just prototypes for subclasses, you&#039;ll get extra windows on the screen.

The other problem with this pattern is that it&#039;s just confusing and weird.&quot;

[1]: http://svn.gnome.org/svn/gjs/trunk/doc/Style_Guide.txt</description>
		<content:encoded><![CDATA[<p>@mohaine: The Gjs Style_Guide.txt[1] states that this pattern should be avoided. Quoting that document:</p>
<p>&#8220;The problem with this pattern is that you might want to have side effects in the Base() constructor. Say Base() in its constructor creates a window on the screen, because Base() is a dialog class or something. If you use the pattern that some instances of Base() are just prototypes for subclasses, you&#8217;ll get extra windows on the screen.</p>
<p>The other problem with this pattern is that it&#8217;s just confusing and weird.&#8221;</p>
<p>[1]: <a href="http://svn.gnome.org/svn/gjs/trunk/doc/Style_Guide.txt" rel="nofollow">http://svn.gnome.org/svn/gjs/trunk/doc/Style_Guide.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-88665</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Mon, 17 Nov 2008 15:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-88665</guid>
		<description>Java, Ruby and Python can be already translated into JavaScript without problems (Java for example by GWT). So support for others languages will come with JavaScript support (for free). 

JavaScript is becoming de facto universal VM.</description>
		<content:encoded><![CDATA[<p>Java, Ruby and Python can be already translated into JavaScript without problems (Java for example by GWT). So support for others languages will come with JavaScript support (for free). </p>
<p>JavaScript is becoming de facto universal VM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo Carneiro</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-88659</link>
		<dc:creator>Gustavo Carneiro</dc:creator>
		<pubDate>Mon, 17 Nov 2008 15:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-88659</guid>
		<description>I don&#039;t think anyone explained why &quot;C With Embedded Language&quot;  is better than  &quot;Language With Embedded C&quot;, i.e. why is your main() in C and not in some high level language?  I would understand that if the &quot;embedded language&quot; parts were only plugins that can be disabled, but it does not sound like it is so.

And I also don&#039;t think Javascript is a good language; it does not have an elegant design, and so I am not sure it will attract that many developers.  Yes, there are many javascript _web_ developers out there, but javascript is not nearly as easy to learn as Python.  As for Python performance, I suspect that maybe IronPython is at least as much fast and light as javascript?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think anyone explained why &#8220;C With Embedded Language&#8221;  is better than  &#8220;Language With Embedded C&#8221;, i.e. why is your main() in C and not in some high level language?  I would understand that if the &#8220;embedded language&#8221; parts were only plugins that can be disabled, but it does not sound like it is so.</p>
<p>And I also don&#8217;t think Javascript is a good language; it does not have an elegant design, and so I am not sure it will attract that many developers.  Yes, there are many javascript _web_ developers out there, but javascript is not nearly as easy to learn as Python.  As for Python performance, I suspect that maybe IronPython is at least as much fast and light as javascript?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohaine</title>
		<link>http://www.grillbar.org/wordpress/?p=307&#038;cpage=1#comment-88658</link>
		<dc:creator>mohaine</dc:creator>
		<pubDate>Mon, 17 Nov 2008 15:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.grillbar.org/wordpress/?p=307#comment-88658</guid>
		<description>Javascript is really nice once you get past all nastiness of the browser interaction.   The hardest part is finding good a tutorial.  Almost everything is for the beginner only.  Finding good info on OO in javascirpt is even harder. 

BTW, an easier way to extend an object in JS is:

function Base(){
}
function Sub(){
}
Sub.prototype = new Base();

This method requires no argument constructors (or manually calling the init function in the subclass) , but I can live without them.</description>
		<content:encoded><![CDATA[<p>Javascript is really nice once you get past all nastiness of the browser interaction.   The hardest part is finding good a tutorial.  Almost everything is for the beginner only.  Finding good info on OO in javascirpt is even harder. </p>
<p>BTW, an easier way to extend an object in JS is:</p>
<p>function Base(){<br />
}<br />
function Sub(){<br />
}<br />
Sub.prototype = new Base();</p>
<p>This method requires no argument constructors (or manually calling the init function in the subclass) , but I can live without them.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
