Re: [qooxdoo-devel] Node.js and qooxdoo statics

2012-09-17 Thread Loren Schlomer
Glad it worked for you! On Mon, Sep 17, 2012 at 7:03 AM, Florin Jurcovici wrote: >> I would throw your initializer in a constructor if pointing to a >> static. Define your props like this: > > I was suspecting something like this, but didn't dig deep enough into > properties. I did the change

Re: [qooxdoo-devel] Node.js and qooxdoo statics

2012-09-17 Thread Florin Jurcovici
> I would throw your initializer in a constructor if pointing to a > static. Define your props like this: I was suspecting something like this, but didn't dig deep enough into properties. I did the changes you suggested (deferred initialization of non-nullable properties), and now node loads the

Re: [qooxdoo-devel] Node.js and qooxdoo statics

2012-09-17 Thread Loren Schlomer
I would throw your initializer in a constructor if pointing to a static. Define your props like this: properties: { someProp: { nullable: false, deferredInit: true, check: [test.ClassWithStatics.constant1, test.ClassWithStatics.constant2] } } And then inside of your constructor

Re: [qooxdoo-devel] Node.js and qooxdoo statics

2012-09-17 Thread franck34
I'm developing an app using appjs+nodejs+qooxdoo. The main problem is SCOPE. Hard to say what's your problem, but warning about binding and scope ... I'm using lot's of qx.lang.Function.bind and var self = this; in my code. Don't know exactly what's your problem but just take care of binding/sc

Re: [qooxdoo-devel] Node.js and qooxdoo statics

2012-09-17 Thread thron7
On 09/17/2012 02:42 PM, Florin Jurcovici wrote: > I have something like: > > qx.Class.define("test.ClassWithStatics", > { > statics: > { > constant1: "john", > constant2: "doe" > }, > > properties: > { > someProp: >

[qooxdoo-devel] Node.js and qooxdoo statics

2012-09-17 Thread Florin Jurcovici
I have something like: qx.Class.define("test.ClassWithStatics", { statics: { constant1: "john", constant2: "doe" }, properties: { someProp: { init: test.ClassWithStatics

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-09 Thread Martin Wittemann
Hi Christian, if you take the newest download version, you will have the qx = require('./qx-oo') syntax. Thats what I prefer. :) Regards, Martin Am 09.08.2010 um 20:46 schrieb panyasan: > > Hi Martin, > > > MartinWittemann wrote: >> >>> be solved differently. How did you import qx-oo a

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-09 Thread panyasan
Hi Martin, MartinWittemann wrote: > >> be solved differently. How did you import qx-oo as a module in node.js? > > I just used the require statement and did not assign the return value of > it to qx. As the qx-oo script defines a global qx variable, it is not > necessary to assign it. But the

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-08 Thread Martin Wittemann
Hello Burak, > what's going to be the license of qxoo, lgpl? it'd be wonderful if you > could release qxoo under bsd license. As its part of qooxdoo and contains only a part of the whole qooxdoo code, I guess we don't change the license of it. Additionally, I don't think we are going to "release

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-08 Thread Burak Arslan
On 08/09/10 09:12, Martin Wittemann wrote: > Hello Christian, > >> much more readable now! > Totally agree! Thats really looking good, but still I have to get used to see > qooxdoo code run on a server. :) > >> What I had to do to make this work is to add "exports.qx = qx;" at >> the end of the q

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-08 Thread Martin Wittemann
Hello Christian, > much more readable now! Totally agree! Thats really looking good, but still I have to get used to see qooxdoo code run on a server. :) > What I had to do to make this work is to add "exports.qx = qx;" at > the end of the qx-oo.js file. Is that something that could be added to

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-07 Thread panyasan
Another update: Using Martin's qx-oo.js package, I have turned the server script into a real qooxdoo class (rev. 20611). Goodbye, coding by closure (It is really a pain to code javascript the old way once you have started qooxdoo development)! compare http://qooxdoo-contrib.svn.sourceforge.net/

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-06 Thread benco
Thanks Christian! I'll probably take a look at it this we :) Regards, Benoît. -- View this message in context: http://qooxdoo.678.n2.nabble.com/node-js-and-qooxdoo-tp5345772p5379944.html Sent from the qooxdoo mailing list archive at Nabble.com. ---

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-06 Thread panyasan
Further update: I just checked in the NodeSocket Contribution into qooxdoo-contrib: http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qooxdoo-contrib/NodeSocket/trunk/ Here's a screenshot: http://qooxdoo.678.n2.nabble.com/file/n5379905/Bild_1.png If you look at the serve

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-05 Thread panyasan
MartinWittemann wrote: > > But anyway, I have good news! I took two hours yesterday right after the > release to play a bit with building a file containing only the qooxdoo OO > layer which can be used in webworkers, on servers (Rihno and node.js) and > so on. I managed to get it done and will i

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-05 Thread Martin Wittemann
Hey, sorry guys, I didn't have the time to read all your mails so I'm not sure whats going on. But anyway, I have good news! I took two hours yesterday right after the release to play a bit with building a file containing only the qooxdoo OO layer which can be used in webworkers, on servers (Rih

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-03 Thread panyasan
panyasan wrote: > > leverage a technology (qooxdoo/javascript) and there is a way to extend it > to the client in a simple and "extend it to the SERVER", that is... C. -- View this message in context: http://qooxdoo.678.n2.nabble.com/node-js-and-qooxdoo-tp5345772p5367495.html Sent from the

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-03 Thread panyasan
Hello, this has become an interesting discussion. But in the end: everyone starts with different experiences and investments into technologies that need to be most efficiently applied to the problem at hand. If I can leverage a technology (qooxdoo/javascript) and there is a way to extend it to th

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-03 Thread flj
Hi. > Threads are a debugging and maintenance nightmare. (...) > I recommend against using them for nearly all applications. You can't resonably expect an app server talking to several databases simultaneously and serving up thousands of clients could do without threads. You also can't reasona

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-03 Thread Werner Thie
Ok, we're now marching straight into a religious war about languages - if I would be heeding what my grandmother used to say - never ever discuss sex, religion and programming languages - I would remain silent. But tongue in cheek away, let's expand a little bit on a specific part of that discu

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-03 Thread flj
Hi. Javascript has its advantages. Neither C# nor Java provide the same level of flexibility. And it's definitely not the worst language I ever worked with. In fact, it's one of the better ones. A Javascript version with optional static typing plus mechanisms for aspects, generics, operator ov

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread flj
Hi. > no one > running a high-traffic site is choosing apache these days at the front > line. I wouldn't say so. A quick googling says something else: http://durak.org/sean/pubs/bss/ http://www.e-gineer.com/v1/articles/web-servers-used-at-the-top-sites.htm For me, node.js is

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread Petr Kobalíček
Hi Derrell, On Mon, Aug 2, 2010 at 9:28 PM, Derrell Lipman < derrell.lip...@unwireduniverse.com> wrote: > On Mon, Aug 2, 2010 at 14:58, Petr Kobalíček wrote: > >> Hi, >> >> do you think that javascript is a good language to use it on server-side? >> For me it's worst language I ever worked with,

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread thron7
Well said, as usual. T. > On Mon, Aug 2, 2010 at 14:58, Petr Kobalí�ek > wrote: > >> Hi, >> >> do you think that javascript is a good language to use it on >> server-side? >> For me it's worst language I ever worked with, but there is no other I >> can >> use to write multibrowser web-pages / w

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread Derrell Lipman
On Mon, Aug 2, 2010 at 14:58, Petr Kobalíček wrote: > Hi, > > do you think that javascript is a good language to use it on server-side? > For me it's worst language I ever worked with, but there is no other I can > use to write multibrowser web-pages / web-apps. > Different strokes for different

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread Petr Kobalíček
Hi, do you think that javascript is a good language to use it on server-side? For me it's worst language I ever worked with, but there is no other I can use to write multibrowser web-pages / web-apps. Using java on server side and java applets/javafx on client is the same (same language for both

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread b a
On 8/2/10, thron7 wrote: > twisted is certainly a proven platform. but as apache, it is rather for > complex applications, and it's a huge and unwieldy beast. nothing > compared to the ultra-light node.js. and performance-wise i think there > is no way current python implementations can beat v8 an

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread Petr Kobalíček
Qooxdoo is a huge beast too. Means it something;-)? On Mon, Aug 2, 2010 at 7:16 PM, thron7 wrote: > twisted is certainly a proven platform. but as apache, it is rather for > complex applications, and it's a huge and unwieldy beast. nothing > compared to the ultra-light node.js. and performance-wi

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread thron7
twisted is certainly a proven platform. but as apache, it is rather for complex applications, and it's a huge and unwieldy beast. nothing compared to the ultra-light node.js. and performance-wise i think there is no way current python implementations can beat v8 and the likes, even if run through s

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread thron7
> apache has years of experience dealing with dos attacks, broken clients, > malicious input etc. it's also the swiss army knife of web servers. you > can't throw all that away that easily. OTOH, apache has more and more evolved into an application platform, and is much too big and too heavy for s

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread Werner Thie
Can't resist to point out that what you're aiming at exists with twisted/nevow on the server side in python and athena/qooxdoo on the client side. - proven standalone webserver, http/https - probably the oldest and widest protocol support for TCP/IP in Python - completely asynchronous framework

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread Burak Arslan
On 08/02/10 17:36, b a wrote: > On 8/2/10, benco wrote: >> All Right. Yep indeed, in theory, node.js doesn't need another http server. >> >> But I heard that, according to the creator, nodejs isn’t really ready for >> replacing http server yet - however, I don't know if it still the case >> nowad

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread b a
On 8/2/10, benco wrote: > All Right. Yep indeed, in theory, node.js doesn't need another http server. > > But I heard that, according to the creator, nodejs isn’t really ready for > replacing http server yet - however, I don't know if it still the case > nowadays. I'm pretty sure it can succesfu

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread benco
Hi, panyasan wrote: > > actually, what I have in mind is to replace Apache altogether for the > node.js part > All Right. Yep indeed, in theory, node.js doesn't need another http server. But I heard that, according to the creator, nodejs isn’t really ready for replacing http server yet - ho

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread panyasan
the_sheriff wrote: > > lines 185-216 serve static qooxdoo files > http://github.com/wsdookadr/Q-Chess/blob/master/server/serv.js > Cool, thanks! Learning by example is the fastest way forward :-) C. -- View this message in context: http://qooxdoo.678.n2.nabble.com/node-js-and-qooxdoo-tp53

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread thron7
On 08/02/2010 12:02 PM, panyasan wrote: > > Hi Benoît, > > actually, what I have in mind is to replace Apache altogether for the > node.js part. I have the feeling that small qooxdoo apps could do without > Apache if a server script based on node.js can supply all the files that are > needed fo

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread b a
lines 185-216 serve static qooxdoo files http://github.com/wsdookadr/Q-Chess/blob/master/server/serv.js cheers On 8/2/10, panyasan wrote: > > Hi, > > this weekend I started experimenting with node.js and Socket.IO, in order to > implement a solution that will hook into the qx.event.message syste

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread panyasan
Hi Benoît, actually, what I have in mind is to replace Apache altogether for the node.js part. I have the feeling that small qooxdoo apps could do without Apache if a server script based on node.js can supply all the files that are needed for the initial loading of the client application, and the

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread benco
Hi Christian, Thanks for the report. I don't know if it is your case but I've heard that using Apache as http server for node.js applications is not recommended/adapted. Nginx seems to be a better candidate. Maybe you could give it a try ? Best, Benoît. -- View this message in context: http

Re: [qooxdoo-devel] node.js and qooxdoo

2010-08-02 Thread panyasan
Hi, this weekend I started experimenting with node.js and Socket.IO, in order to implement a solution that will hook into the qx.event.message system (replacing the cometd contribution which I will no longer maintain). It didn't go as fast as I originally thought -- for example, when mixing the s

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-30 Thread Fabian Jakobs
Hi Dietrich, I've been using the mongodb and they are pretty solid. I had no luck with any of the mysql drivers. Our current project uses redis (a really database) and it works like a charm. Best Fabian On Thu, Jul 29, 2010 at 9:43 AM, Dietrich Streifert wrote: > >  Hi Fabian, > > sorry for nip

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-29 Thread b a
started writing a chess game server in node.js and qooxdoo on front-end http://github.com/wsdookadr/Q-Chess On 7/28/10, panyasan wrote: > > Hi, > > I am currently looking into node.js (http://nodejs.org/) and am pretty > fascinated, actually thinking to creating some of my backend logic with >

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-29 Thread Dietrich Streifert
Hi Fabian, sorry for nipping into this thread: Are you using any DB modules/drivers with nodejs? Are there reliable implementations? Or is there something like odbc/jdbc (nodejsdbc?) Thank you for your answer. Best regards.. Am 29.07.2010 00:56, schrieb Fabian Jakobs: > Hi Christian, > >

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-29 Thread Martin Wittemann
Hello Christian, as far as i can say, it's currently not a topic here in the office. All my interests are based on a some nerdy thought. ;) But opening a bug is still a good idea even if i don't expect us to take care of it in the future, at least not this year for sure. Maybe someone has too mu

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-28 Thread panyasan
Fabian Jakobs wrote: > > Hi Christian, > > I am still on the mailing list by i read only topics which catch my > interest - like yours does :) > > my qxoo should still work and provides all OO features and most of > qx.core and qx.lang. The qooxdoo version used is from January but this > shoul

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-28 Thread Fabian Jakobs
Hi Christian, I am still on the mailing list by i read only topics which catch my interest - like yours does :) my qxoo should still work and provides all OO features and most of qx.core and qx.lang. The qooxdoo version used is from January but this shouldn't matter much as this code usually does

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-28 Thread panyasan
Cool. I KNEW that the smart qooxdoo devs/community must have already noticed. ;-) MartinWittemann wrote: > > Hello Christian, > sure I have thought about such scenarios. I have tested node.js also and > was impressed by its elegance. I once wrote a full JSON RPC layer for > node.js which is on

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-28 Thread MartinWittemann
Hello Christian, sure I have thought about such scenarios. I have tested node.js also and was impressed by its elegance. I once wrote a full JSON RPC layer for node.js which is on my github account [1]. But i'm sure it's not working anymore because ryan (node JS guru) removed the promises one day.

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-28 Thread benco
Hi Christian, Personally, I am also planning to migrate my PHP works to node.js - it looks really great! - but I'm not yet well familiar with it... so, all I can give to you for the moment is some links. Here is a list of (interesting) modules for/based on node.js : http://wiki.github.com/ry/n

Re: [qooxdoo-devel] node.js and qooxdoo

2010-07-28 Thread Siarhei Barysiuk
Hi Christian, Please check it out: http://github.com/wittemann/JSON-RPC-for-Node.js http://github.com/fjakobs/qxoo But Martin and Fabian know better than me (it's their personal repositories). :) Cheers, Siarhei On Jul 28, 2010, at 6:38 PM, panyasan wrote: > > Hi, > > I am currently looking

[qooxdoo-devel] node.js and qooxdoo

2010-07-28 Thread panyasan
Hi, I am currently looking into node.js (http://nodejs.org/) and am pretty fascinated, actually thinking to creating some of my backend logic with node.js rather than with my usual PHP. Obviously, node.js cries out for a qx module providing all of the fine OO-stuff that qooxdoo excels in. Also