News for hackers. Stuff that matters.

lloydhilaiel

Re:Awsbox: A DiY PaaS for Node.JS on Tuesday May 21, 2013 @05:39PM (#5747075)
Ack! Acronym collision! EBS is Elastic Beanstalk, or Elastic Block Store?

If the former, it's in my opinion a question of what you're looking for. Here's my best response: https://hacks.mozilla.org/2013/05/introducing-awsbox-the-diy...

Re:Awsbox: A DiY PaaS for Node.JS on Tuesday May 21, 2013 @04:47PM (#5746711)
For what it's worth, there is a complementary (early stage) project a colleague of mine is working on where the idea is to let you leverage cloud formation from the command line and get closer to what you're talking about (deployment of a more complex infrastructure rather than just a single instance):

https://github.com/mozilla/awsboxen

Re:Building A Node.js Server That Won't Melt on Tuesday January 15, 2013 @04:40PM (#5063205)
That was specifically for the example server - if each request uses 5ms of processor time, (1000 ms / s) / (5 ms / req) == (200 req / s)

https://gist.github.com/4532177#file-application_server-js-L...

Re:Building A Node.js Server That Won't Melt on Tuesday January 15, 2013 @02:03PM (#5062155)
Re:Building A Node.js Server That Won't Melt on Tuesday January 15, 2013 @01:29PM (#5061862)
I agree. /me fixes
Re:Building A Node.js Server That Won't Melt on Tuesday January 15, 2013 @01:22PM (#5061804)
Our problem is the the number of simultaneous connections we can support isn't static, it varies depending on the type of traffic bursts (i.e. New vs. Returning users).

But agree that a higher level proxy is useful - because this way your overloaded application doesn't even need to deal with traffic (we hope to use toobusy to have applications instruct the routing layer to temporarily block / reroute traffic in times of load).

Re:An Open Letter to ICANN on the TLD.js Movement on Friday May 25, 2012 @08:44PM (#4026001)
"Two-character ASCII strings are not permitted, to avoid conflicting with current and future country codes based on the ISO 3166-1 standard."

See https://github.com/ozten/TLD.js/issues/8

Re:Mozilla's BrowserID (single sign-on for the web) is live on Friday December 16, 2011 @01:02PM (#3361488)
the include file is about 4.7k minified and compressed. You don't need to include it in head, that's lame. we'll update the docs.

lloyd

Re:Mozilla's BrowserID (single sign-on for the web) is live on Friday December 16, 2011 @12:59PM (#3361462)
Hi MatthewPhillips,

That's just the license header that's not stripped. I agree, that's a bit draconian. lemme see if I can fix that for you.

lloyd

Re:1 in 5 APIs Say “Bye XML” - JSON gaining ground on Thursday May 26, 2011 @05:12PM (#2589459)
As for streaming JSON parsers: https://github.com/lloyd/yajl

Around for four years. Stable. Language bindings for all major languages.

Re:JSONSelect on Saturday May 21, 2011 @10:18AM (#2570902)
I hope to build jsonselect support on top of yajl and expose it as a native command line tool, so fast stream based filtering... but that's still ideaware at this moment :)
Re:JSONSelect on Saturday May 21, 2011 @10:17AM (#2570895)
with the reference implementation:

JSONSelect.match(".nonexistantkey .somechild", obj) returns []

Alternately, if you use the JSONSelect.forEach() method your callback will just not be invoked.

So no existence testing before access for recursive values. A main benefit of this thing in javascript.

Re:Mozilla Chromeless 0.2 on Friday April 29, 2011 @11:56PM (#2499843)
one way you can do native code integration with chromeless is using JSCtypes: https://wiki.mozilla.org/JSctypes

I hacked up a trivial proof of concept on this branch: https://github.com/mozilla/chromeless/tree/jsctypes_play

Re:Mozilla Chromeless 0.2 on Friday April 29, 2011 @11:52PM (#2499838)
file system access, yeah! It should feel like node.js (on purpose): http://mozilla.github.com/chromeless/#guide/filesystem-acces...

databases, IndexedDB should "just work", and thinking exposing SQLlite is worthwhile.

only the most basic network libraries at the moment.

Re:Mozilla Chromeless 0.2 on Friday April 29, 2011 @11:50PM (#2499833)
totally. check out webian: https://github.com/webianproject/shell
Re:Mozilla Chromeless 0.2 on Friday April 29, 2011 @11:48PM (#2499830)
it's homegrown. I spun off the docstract project which pulls docs outta .js and outputs them in json. From their you can render the docs however you want. Docstract itself is permissive open source you can use, here:

https://github.com/lloyd/docstract