Re: Erlang vs JavaScript

2013-08-19 Thread nicholas a. evans
It seems like there might be several simple "internalizing" speedups, even before tackling the view server protocol or the couchjs view server, hinted at by Alexander's suggestion: On Fri, Aug 16, 2013 at 3:58 PM, Alexander Shorin wrote: > Idea: move document metadata into separate object. ... >

Re: Erlang vs JavaScript

2013-08-18 Thread Robert Keizer
On 13-08-18 09:33 AM, Alexander Shorin wrote: On Sun, Aug 18, 2013 at 3:54 PM, Volker Mische wrote: On 08/18/2013 08:42 AM, Alexander Shorin wrote: On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau wrote: On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin wrote: On Fri, Aug 16, 2013 at 11:

Re: Erlang vs JavaScript

2013-08-18 Thread Alexander Shorin
On Sun, Aug 18, 2013 at 3:54 PM, Volker Mische wrote: > On 08/18/2013 08:42 AM, Alexander Shorin wrote: >> On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau >> wrote: >>> On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin wrote: >>> On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith wrote:

Re: Erlang vs JavaScript

2013-08-18 Thread Volker Mische
On 08/18/2013 08:42 AM, Alexander Shorin wrote: > On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau wrote: >> On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin wrote: >> >>> On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith wrote: On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische wrote:

Re: Erlang vs JavaScript

2013-08-17 Thread Alexander Shorin
On Sun, Aug 18, 2013 at 10:22 AM, Benoit Chesneau wrote: > On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin wrote: > >> On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith wrote: >> > On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische >> > wrote: >> >> >> >> On 08/16/2013 11:32 AM, Alexander Shorin wrot

Re: Erlang vs JavaScript

2013-08-17 Thread Benoit Chesneau
On Fri, Aug 16, 2013 at 9:58 PM, Alexander Shorin wrote: > On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith wrote: > > On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische > > wrote: > >> > >> On 08/16/2013 11:32 AM, Alexander Shorin wrote: > >> > On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau > > >>

Re: Erlang vs JavaScript

2013-08-17 Thread JFC Morfin
At 11:49 16/08/2013, Volker Mische wrote: > What if we split document metadata from document itself? E.g. pass > _id, _rev and other system or meta fields with separate object. Their > size much lesser than whole document, so it will be possible to fast > decode this metadata and decide is doc ne

Re: Erlang vs JavaScript

2013-08-16 Thread Alexander Shorin
On Fri, Aug 16, 2013 at 11:23 PM, Jason Smith wrote: > On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische > wrote: >> >> On 08/16/2013 11:32 AM, Alexander Shorin wrote: >> > On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau >> > wrote: >> >> I agree, (modulo the fact that I would replace a string by

Re: Erlang vs JavaScript

2013-08-16 Thread Jason Smith
On Fri, Aug 16, 2013 at 4:49 PM, Volker Mische wrote: > On 08/16/2013 11:32 AM, Alexander Shorin wrote: > > On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau > wrote: > >> I agree, (modulo the fact that I would replace a string by a binary ;) > but > >> that would be only possible if we extract th

Re: Erlang vs JavaScript

2013-08-16 Thread Volker Mische
On 08/16/2013 11:32 AM, Alexander Shorin wrote: > On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau wrote: >> I agree, (modulo the fact that I would replace a string by a binary ;) but >> that would be only possible if we extract the metadata (_id, _rev) from the >> JSON so couchdb wouldn't have to

Re: Erlang vs JavaScript

2013-08-16 Thread Alexander Shorin
On Fri, Aug 16, 2013 at 1:12 PM, Benoit Chesneau wrote: > I agree, (modulo the fact that I would replace a string by a binary ;) but > that would be only possible if we extract the metadata (_id, _rev) from the > JSON so couchdb wouldn't have to decode the JSON to get them. Streaming > json would

Re: Erlang vs JavaScript

2013-08-16 Thread Benoit Chesneau
On Fri, Aug 16, 2013 at 11:05 AM, Volker Mische wrote: > On 08/15/2013 11:53 AM, Benoit Chesneau wrote: > > On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt wrote: > > > >> > >> On Aug 15, 2013, at 10:09 , Robert Newson wrote: > >> > >>> A big +1 to Jason's clarification of "erlang" vs "native". C

Re: Erlang vs JavaScript

2013-08-16 Thread Volker Mische
On 08/15/2013 11:53 AM, Benoit Chesneau wrote: > On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt wrote: > >> >> On Aug 15, 2013, at 10:09 , Robert Newson wrote: >> >>> A big +1 to Jason's clarification of "erlang" vs "native". CouchDB >>> could have shipped an erlang view server that worked in a

Re: Erlang vs JavaScript

2013-08-15 Thread Jan Lehnardt
On Aug 15, 2013, at 11:53 , Benoit Chesneau wrote: > On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt wrote: > >> >> On Aug 15, 2013, at 10:09 , Robert Newson wrote: >> >>> A big +1 to Jason's clarification of "erlang" vs "native". CouchDB >>> could have shipped an erlang view server that wor

Re: Erlang vs JavaScript

2013-08-15 Thread Benoit Chesneau
On Thu, Aug 15, 2013 at 11:38 AM, Jan Lehnardt wrote: > > On Aug 15, 2013, at 10:09 , Robert Newson wrote: > > > A big +1 to Jason's clarification of "erlang" vs "native". CouchDB > > could have shipped an erlang view server that worked in a separate > > process and had the stdio overhead, to co

Re: Erlang vs JavaScript

2013-08-15 Thread Jan Lehnardt
On Aug 15, 2013, at 10:09 , Robert Newson wrote: > A big +1 to Jason's clarification of "erlang" vs "native". CouchDB > could have shipped an erlang view server that worked in a separate > process and had the stdio overhead, to combine the slowness of the > protocol with the obtuseness of erlang