atom feed48 messages in net.launchpad.lists.openstackRe: [Openstack] Fwd: Nodejs in horizon
FromSent OnAttachments
Joshua HarlowMay 24, 2012 10:33 am 
Chuck ShortMay 24, 2012 12:26 pm 
Joshua HarlowMay 24, 2012 12:31 pm 
Devin CarlenMay 24, 2012 12:40 pm 
Gabriel HurleyMay 24, 2012 12:42 pm 
Joshua HarlowMay 24, 2012 12:47 pm 
Gabriel HurleyMay 24, 2012 1:42 pm 
Joshua HarlowMay 24, 2012 1:45 pm 
Gabriel HurleyMay 24, 2012 1:48 pm 
Russell BryantMay 24, 2012 3:37 pm 
Joshua HarlowMay 24, 2012 4:08 pm 
Devin CarlenMay 24, 2012 4:22 pm 
Joshua HarlowMay 24, 2012 4:27 pm 
Russell BryantMay 24, 2012 4:42 pm 
Gabriel HurleyMay 24, 2012 5:45 pm 
Mark McLoughlinMay 25, 2012 12:53 am 
Thierry CarrezMay 25, 2012 1:47 am 
Thierry CarrezMay 25, 2012 2:04 am 
Simon G.May 25, 2012 2:43 am 
Gabriel HurleyMay 25, 2012 3:26 am 
Russell BryantMay 25, 2012 4:33 am 
Simon G.May 25, 2012 5:40 am 
Jay PipesMay 25, 2012 6:20 am 
Simon G.May 25, 2012 7:39 am 
Thierry CarrezMay 25, 2012 7:51 am 
Thierry CarrezMay 25, 2012 8:09 am 
John PostlethwaitMay 25, 2012 9:22 am 
Gabriel HurleyMay 25, 2012 10:53 am 
Kiall Mac InnesMay 25, 2012 11:41 am 
Gabriel HurleyMay 25, 2012 12:35 pm 
Russell BryantMay 25, 2012 1:19 pm 
Gabriel HurleyMay 25, 2012 1:51 pm 
Russell BryantMay 25, 2012 2:32 pm 
Adam YoungMay 25, 2012 3:56 pm 
Gabriel HurleyMay 25, 2012 4:15 pm 
Adam YoungMay 25, 2012 5:33 pm 
Gabriel HurleyMay 26, 2012 7:57 pm 
Thierry CarrezMay 28, 2012 7:20 am 
Matthias RungeMay 29, 2012 12:58 am 
Gabriel HurleyMay 29, 2012 9:29 am 
Adam YoungMay 29, 2012 10:26 am 
Martin PauloMay 29, 2012 9:18 pm 
Devin CarlenMay 30, 2012 1:36 pm 
Adam YoungMay 30, 2012 2:14 pm 
Jan DrakeMay 30, 2012 4:27 pm 
Gabriel HurleyMay 30, 2012 4:44 pm 
Caitlin BestlerMay 31, 2012 10:31 am 
Jan DrakeMay 31, 2012 7:24 pm 
Subject:Re: [Openstack] Fwd: Nodejs in horizon
From:Thierry Carrez (thie@openstack.org)
Date:May 28, 2012 7:20:49 am
List:net.launchpad.lists.openstack

John Postlethwait wrote:

Sorry if I've missed anything below, this thread has become rather fragmented and messy (at least in my email clients) but I will try to address the main points I have seen so far:

Thanks for your answers !

* Just so that everyone is aware, the lessc parser that is bundled in Horizon, while executable, is NOT a binary. It is, in fact, just a 140 line JS file, you can see the code here: https://review.openstack.org/#/c/7367/4/bin/less/lessc

I think the concern is not about binary bundling, it's more about bundling code from another project (code duplication). Less is more (haha) than 3500 lines of code. Javascript is often duplicated to be included in pages that get executed client-side... But here it is server-side code, so this is as bad as duplicating (and having to maintain) 3500 lines of C code from another project in your source code.

That said, if this code duplication is seen as a stop-gap, temporary measure until "enough" distros catch up and package it correctly, as Gabriel suggested, I think that's acceptable.

* As to the concerns about "it not being Python" or "JavaScript has been abused." Well, all I can say to that is no, it is not Python, and yes, some developers write terrible and abusive code with JavaScript. I'm sure I could find horrid/abusive Python somewhere as well, but doing so would not preclude our reasons to use it in OpenStack. Misuse of a tool is not a reason to fear the tool itself, if that were so none of us would use any language, ever. Not to mention, we already use a ton of JS in Horizon... I'm not introducing JavaScript to Horizon for the first time or anything here.

The difference here is that it is server-side. So far we only had Python as a server-side language, while obviously more languages were accepted for client-side scripts. IMHO we should try to converge towards Python, but if this precise featureset is not covered by any Python alternative and the best tool for the job is JS...