[nodejs] Re: Writing an HTML5 DOM module in C/C++. Anyone interested?

2012-04-26 Thread Luke Scott
On Wednesday, April 25, 2012 6:36:12 PM UTC-7, Brandon Benvie wrote: > > You probably want to take a second look at dom.js if you're not dead set > on C++ because it's the closest to what you're describing. The thing about > the DOM and IDL interfaces is that there's an enforced separation betwee

[nodejs] Writing an HTML5 DOM module in C/C++. Anyone interested?

2012-04-25 Thread Luke Scott
I'm working on a project that makes use of V8. For this project I'm not using Node, but what I need is probably something people using Node could benefit from. What I need is an efficient light weight "HTML5 DOM pre-processor". Basically I need to expose an HTML5 based DOM to V8 without a full

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> > Do you think the following model would work? > > - have a limit for the number of workers: 100 > - one worker or zero per user (not visitor!) > - when a worker is needed but none is active for the polls/forms/... > creator, kill the one with the highest idle time and spin up a new one > (EX

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> How many "user"s will there be? Like, <100, <1000, <1 or many more? > 2000+. Each user has any where between 1 and 50 pages. Each page will probably get anywhere from 0-200,000 requests (total). Most of these users will use the stock features. The plugins will probably be only used by ad

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> So you have untrusted code and an untrusted user, and the untrusted code > and the untrusted user don't trust each other as well? > > How many different people will be able to upload untrusted code? > Each "user" has an account and creates forms. The plugins created by the "users" do things l

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> > Can't you just run the code on the client side and hook it into the > server with dnode or something like that? (Or regular AJAX if you're > worried about DoS attacks - as soon as you run something like socket.io, > you're pretty much defenseless against mildly sophisticated DoS attacks. > A f

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
wning vanilla V8 instances (v8cgi perhaps?). I found a PHP extension called V8JS. Not sure how well that work. Doesn't seem to get much attention unfortunately. On Monday, March 5, 2012 9:22:06 AM UTC-8, Jann Horn wrote: > > Am Sonntag, den 04.03.2012, 17:43 -0800 schrieb Luke Sco

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> JavaScript gets analysed and minified by different tools, you'll have a > choice between serveral AST parsers to start your creation of a DSL for > your users (even and especially if it means a subset of the > JavaScript/EcmaScript language). Maybe you can even prevent users to > write code whi

[nodejs] Will Node.js work for me?

2012-03-04 Thread Luke Scott
I'm trying to figure out if Node will work for our platform or not (or even V8 in general). We're planning a rewrite. We use PHP. We need to allow users to write server side plugins. For it to be secure in PHP we'd have to write a "language" using flex/bison to eliminate dynamic function calling