[Opensim-dev] Node.js, anyone?
Infinity Linden (Meadhbh Hamrick)
infinity at lindenlab.com
Sat Nov 28 20:32:41 UTC 2009
whoa. sorry for spamming the list with my modern art poetry. fwiw... i was
replying via my g1 (android phone.) apparently there are still some kinks to
work out of it's mail client.
so anyway, fwiw, i _have_ been working with node.js on Ubuntu. it's mostly
the bomb. i'm unashamed to admit my love of javascript and accept it with
all it's faults. (i.e. - typical things people say about dynamic languages.)
debugging any application in v8 (google's javascript implementation for
chrome that node.js was intended to run on top of) is.. um.. not especially
pleasurable.
however, i've been able to prototype a few very basic applications.
there have been a few hiccups:
a. the apps i'm writing want to consume application/llsd+xml or
application/llsd+json and produce application/llsd+xml mime types. not
text/html. i also want to use node.js to prototype some VWRAP over
LLIDL/LLSD over HTTP(S) services, and sorta want to get at all the headers
both coming and going. this is not impossible with node.js, but it was less
easy than i would have thought.
b. the client i'm working with doesn't like chunked encoding. or rather, it
has non-optimal blocking behavior when receiving chunked HTTP responses.
turning off chunked encoding with node.js was difficult. not because the
code was difficult, but because it was easier to sift through the code to
figure out how to do it than to read how to do it in the documentation.
c. no mysql.
d. no prevayler or neo4j equivalents. i'm a NoSQL kinda person, so this is
more of a big deal for me.
so... my take on node.js? it's a good start. it needs help in documentation.
server side javascript apps generally need better debugging tools. i would
like to see AOP support in v8, but that's a different thread. performance is
generally good, with hiccups. it would be waaaay more attractive to me if it
had a "standard" NoSQL solution, or even some sort of MySQL binding.
-cheers
-meadhbh
--
infinity linden (aka meadhbh hamrick) * it's pronounced "maeve"
http://wiki.secondlife.com/wiki/User:Infinity_Linden
On Fri, Nov 27, 2009 at 16:33, Meadhbh Hamrick (Infinity Linden) <
infinity at lindenlab.com> wrote:
> Yup. I'm using it to do some VWRAP tests, but not the UDP stuff.
>
> Daniel Smith <javajoint at gmail.com> wrote:
>
> >Am wondering if anyone in the OpenSim realm is using Node.js (server side
> >JavaScript)
> >to do event-based I/O:
> >
> >http://nodejs.org/
> >
> >The more I look at it, the more I see great potential in using it as a
> >gateway to handle
> >daabase calls, a proxy to external web sites, and much more. It's a very
> >simple means
> >of writing all manner of tcp servers. The big deal is.. no threads.. it
> >doesn't block...
> >(in other words.. many scripts in a sim could hit this all at once and it
> >wont need
> >a ton of threads waiting around for disk or network i/o, etc..)
> >
> >An example of a web server written with Node which responds with "Hello
> >World" after waiting two seconds:
> >
> >var sys = require('sys'),
> > http = require('http');
> >http.createServer(function (req, res) {
> > setTimeout(function () {
> > res.sendHeader(200, {'Content-Type': 'text/plain'});
> > res.sendBody('Hello World');
> > res.finish();
> > }, 2000);
> >}).listen(8000);
> >sys.puts('Server running at http://127.0.0.1:8000/');
> >
> >Just some food for thought!
> >
> >cheers,
> >
> >Daniel
> >
> >
> >
> >
> >--
> >Daniel Smith - Sonoma County, California
> >http://daniel.org/resume
> >_______________________________________________
> >Opensim-dev mailing list
> >Opensim-dev at lists.berlios.de
> >https://lists.berlios.de/mailman/listinfo/opensim-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20091128/e2a2387e/attachment-0001.html>
More information about the Opensim-dev
mailing list