On Thu, Apr 12, 2012 at 8:27 AM, Dean Landolt <[email protected]> wrote:

>
>
> On Thu, Apr 12, 2012 at 4:20 AM, Nuno Job <[email protected]> wrote:
>
>>   It'll be interesting to see the pressure build to get
>>> fibers/coroutines in core if this gains in
>>> popularity (likely if you look at the HN score).
>>
>>
>> Knowing some of the core team I don't really think this will happen. In
>> the unlikely event of a water landing, it wouldn't be because of pressure
>> of some framework or HN. :)
>>
>
> I think it's safe to say it won't ever, regardless of pressure. Especially
> since es6 has an equivalently expressive feature -- generators (shallow
> continuations) w/o the well-documented problem of fibers (deep
> continuations). (And no, this is not to flame fibers. I think they're
> really interesting and useful as a stop gap for people that like that style
> until they have generators.)
>
> I do wonder though -- does anyone know if they're faking fibers on the
> client side? The demo shows sync interaction with the db -- are they using
> sync xhr? Or is it some crazy fancy rewriting, or some other exotic
> technique? They just did some hand-waving about latency compensation and I
> couldn't find anything in the docs.
>

It's very very unlikely that they'd be able to do that. It looks like they
have a MongoDB query parser in the package, so the most likely thing seems
to me to be that the query is executed against whatever data already exists
on the client (in cache) and then the object returned is backfilled with
additional data when it comes back from the server. Because of the
"everything realtime" principle, it seems like it would be conceptually
simple to just update the dataset when the query finished executing and
treat it the same on the application side as new records.

I haven't gotten deep enough into the code to see how it works, but that's
my gut.

>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>



-- 
chrisrhoden

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to