Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-20 Thread Benoit Chesneau
On Fri, Aug 20, 2010 at 8:55 AM, Benoit Chesneau wrote: ion. > > Now I reckon /db/_design/ddoc/_rewrite/ is a little ugly and that > would be good to shorten this path. Maybe by using the ini like > suggest jchris I think . Which would be the easiest actually, though > I'm not fan of auto declarat

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 11:12 PM, Jason Smith wrote: > On Fri, Aug 20, 2010 at 04:02, Paul Davis wrote: > >> Still confused. A couchapp developer shouldn't require any sort of >> configuration because that's not under their control. For a couchapp >> to be couchappy, its going to be barred from *r

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
> '$' mean? Maybe it is like shell variables? For you sysadmin that know only shell and figure that "$" is only use in shell ;) this issue is now gone in last commit. ":" are now used like in the _rewrite handler. For the "issue" of jchris, I think we should answer to potential problems in the ti

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Fri, Aug 20, 2010 at 04:02, Paul Davis wrote: > Still confused. A couchapp developer shouldn't require any sort of > configuration because that's not under their control. For a couchapp > to be couchappy, its going to be barred from *requiring* such > configuration or it'll never work on the wi

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Paul Davis
On Thu, Aug 19, 2010 at 4:57 PM, Jason Smith wrote: > On Fri, Aug 20, 2010 at 03:31, J Chris Anderson wrote: > >> My point is that if you have an app that requires a vhost to work, then you >> have to do some machine level configuration to get more than one (or maybe >> 2) vhosts, from a standard

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Paul Davis
On Thu, Aug 19, 2010 at 4:21 PM, Jason Smith wrote: > On Fri, Aug 20, 2010 at 01:43, Paul Davis wrote: > >> > CouchDB adoption is growing. The network, system, and programming >> > responsibilities are becoming different people. It needs to allow >> everybody >> > to do their job. >> > >> >> Can y

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Fri, Aug 20, 2010 at 03:31, J Chris Anderson wrote: > My point is that if you have an app that requires a vhost to work, then you > have to do some machine level configuration to get more than one (or maybe > 2) vhosts, from a standard issue Mac or Windows box. You can't ask grandma > to do th

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 10:31 PM, J Chris Anderson wrote: > > On Aug 19, 2010, at 1:25 PM, Jason Smith wrote: > >> On Fri, Aug 20, 2010 at 02:28, J Chris Anderson wrote: >> >>> KEY POINT: Any CouchApp which is designed to require vhosts is >>> automatically not capable of running on localhost. >>

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 10:20 PM, Benoit Chesneau wrote: > On Thu, Aug 19, 2010 at 9:28 PM, J Chris Anderson wrote: > >> My top concern with all of this vhost stuff is much more basic, and I think >> needs to be addressed before we think about adding convenience features: >> >> On localhost, the

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread J Chris Anderson
On Aug 19, 2010, at 1:25 PM, Jason Smith wrote: > On Fri, Aug 20, 2010 at 02:28, J Chris Anderson wrote: > >> KEY POINT: Any CouchApp which is designed to require vhosts is >> automatically not capable of running on localhost. >> >> Until we solve this issue I'm not much interested in refining

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Fri, Aug 20, 2010 at 02:28, J Chris Anderson wrote: > KEY POINT: Any CouchApp which is designed to require vhosts is > automatically not capable of running on localhost. > > Until we solve this issue I'm not much interested in refining the existing > vhost stuff. > Many apologies but I'm havi

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Fri, Aug 20, 2010 at 01:43, Paul Davis wrote: > > CouchDB adoption is growing. The network, system, and programming > > responsibilities are becoming different people. It needs to allow > everybody > > to do their job. > > > > Can you describe this in more detail? I don't think I understand you

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 9:28 PM, J Chris Anderson wrote: > My top concern with all of this vhost stuff is much more basic, and I think > needs to be addressed before we think about adding convenience features: > > On localhost, there is no such thing as a Domain Name (unless you are the > type

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread J Chris Anderson
I'll admit I'm a little lost here too. What is the change to $foo supposed to allow for, and what is the downside to having it? I think the example: $app.$db.example.com = /$db/_design/$app/_rewrite is actually pretty compelling *as a convenience feature.* However, Jason is arguing that the co

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Paul Davis
On Thu, Aug 19, 2010 at 10:59 AM, Jason Smith wrote: > On Thu, Aug 19, 2010 at 21:27, Benoit Chesneau wrote: > >> Could you explain me how it's impossible compared to previous >> behaviour ? It doesn't change anything technically. Please post all >> your concern and a way to reproduce , I will ha

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Fri, Aug 20, 2010 at 00:37, Benoit Chesneau wrote: > On Thu, Aug 19, 2010 at 7:22 PM, Jason Smith wrote: > > On Fri, Aug 20, 2010 at 00:13, Benoit Chesneau > wrote: > > > >> A couchapp should be "domain" independant, this is the principle of a > >> couchapp . So I can replicate anywhere and

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
> But that's just the way I see it. Today it's already possible to had s/had/add sorry for the typos.

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 7:22 PM, Jason Smith wrote: > On Fri, Aug 20, 2010 at 00:13, Benoit Chesneau wrote: > >> A couchapp should be  "domain" independant, this is the principle of a >> couchapp . So I can replicate anywhere and not only in >> centralizedhost.com . Following this principle, it s

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Fri, Aug 20, 2010 at 00:13, Benoit Chesneau wrote: > A couchapp should be "domain" independant, this is the principle of a > couchapp . So I can replicate anywhere and not only in > centralizedhost.com . Following this principle, it sound weird to set > an hostname in the CouchApp. > That is

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
> A couchapp should be  "domain" independant, this is the principle of a s/domain/couchdb node

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 7:00 PM, Jason Smith wrote: > On Thu, Aug 19, 2010 at 22:23, Benoit Chesneau wrote: > >> To answer in a more generic way. As a "sys admin" or "operatives", you >> are already habit to vhosts or Locations with http servers. This is >> the same system here. Nothing new, just

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
> > My feeling is when you need > >  * pattern matching (the concept, not Erlang) >  * capturing substrings >  * building new strings based on the captured parts >  * Understood by *most* programmers and sysadmins is lagniappe > what is not understandable in $val1.test.$val2.domain.tld = /$val1/$

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Thu, Aug 19, 2010 at 23:53, Noah Slater wrote: > > On 19 Aug 2010, at 17:48, Benoit Chesneau wrote: > > >> 3. Everybody knows them > > > > that's not true. http://xkcd.com/208/ > > > > To answer to this "reinventing" . We had long discussions on how to > > manage rewriting in couchapps. Some

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Thu, Aug 19, 2010 at 22:23, Benoit Chesneau wrote: > To answer in a more generic way. As a "sys admin" or "operatives", you > are already habit to vhosts or Locations with http servers. This is > the same system here. Nothing new, just a syntax different. > > I think also there is 2 views of c

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Noah Slater
On 19 Aug 2010, at 17:48, Benoit Chesneau wrote: >> 3. Everybody knows them > > that's not true. http://xkcd.com/208/ > > To answer to this "reinventing" . We had long discussions on how to > manage rewriting in couchapps. Some included "regexp", we fall in the > current system. Ie pattern mat

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 6:30 PM, Jason Smith wrote: > On Thu, Aug 19, 2010 at 23:14, Benoit Chesneau wrote: > >> On Thu, Aug 19, 2010 at 5:56 PM, Noah Slater wrote: >> > >> > On 19 Aug 2010, at 16:49, Benoit Chesneau wrote: >> > >> >> Well asking without giving yourself some data make it irrelev

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Thu, Aug 19, 2010 at 23:14, Benoit Chesneau wrote: > On Thu, Aug 19, 2010 at 5:56 PM, Noah Slater wrote: > > > > On 19 Aug 2010, at 16:49, Benoit Chesneau wrote: > > > >> Well asking without giving yourself some data make it irrelevant but > > > > Not really. > > > > I'm suggesting that if we

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 5:56 PM, Noah Slater wrote: > > On 19 Aug 2010, at 16:49, Benoit Chesneau wrote: > >> Well asking without giving yourself some data make it irrelevant but > > Not really. > > I'm suggesting that if we're going to use performance as an argument, we use > data and not suppos

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Noah Slater
On 19 Aug 2010, at 16:49, Benoit Chesneau wrote: > Well asking without giving yourself some data make it irrelevant but Not really. I'm suggesting that if we're going to use performance as an argument, we use data and not supposition. > Pattern matching is more efficient in erlang. Why would

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 5:36 PM, Noah Slater wrote: > > On 19 Aug 2010, at 16:23, Benoit Chesneau wrote: > >> Regexps are complicated, Regexps are slow (especially in erlang). > > This is generally false. > > I'd want to seem some data to back it up as a justification. Well asking without giving

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Noah Slater
On 19 Aug 2010, at 16:23, Benoit Chesneau wrote: > Regexps are complicated, Regexps are slow (especially in erlang). This is generally false. I'd want to seem some data to back it up as a justification. If you're going to allow this kind of pattern matching, I would use regexps until it was p

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
To answer in a more generic way. As a "sys admin" or "operatives", you are already habit to vhosts or Locations with http servers. This is the same system here. Nothing new, just a syntax different. I think also there is 2 views of couchdb in oposition here. One is about managing couchdb in multi

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Thu, Aug 19, 2010 at 21:27, Benoit Chesneau wrote: > Could you explain me how it's impossible compared to previous > behaviour ? It doesn't change anything technically. Please post all > your concern and a way to reproduce , I will have a look on it. Though > here hosting > 50 couch - trunk be

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 4:27 PM, Benoit Chesneau wrote: > On Thu, Aug 19, 2010 at 4:22 PM, Jason Smith wrote: >> On Thu, Aug 19, 2010 at 21:19, Benoit Chesneau wrote: >> >>> On Thu, Aug 19, 2010 at 2:30 PM, Jason Smith wrote: >>> >>> > Woah! Can we all please take a step back and talk about wha

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 4:22 PM, Jason Smith wrote: > On Thu, Aug 19, 2010 at 21:19, Benoit Chesneau wrote: > >> On Thu, Aug 19, 2010 at 2:30 PM, Jason Smith wrote: >> >> > Woah! Can we all please take a step back and talk about what problem this >> > solves? >> Not everyone want to use a proxy

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Thu, Aug 19, 2010 at 21:19, Benoit Chesneau wrote: > On Thu, Aug 19, 2010 at 2:30 PM, Jason Smith wrote: > > > Woah! Can we all please take a step back and talk about what problem this > > solves? > Not everyone want to use a proxy to do smart vhosting. Not everyone do > mass hosting. Some pe

Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Benoit Chesneau
On Thu, Aug 19, 2010 at 2:30 PM, Jason Smith wrote: > Woah! Can we all please take a step back and talk about what problem this > solves? Not everyone want to use a proxy to do smart vhosting. Not everyone do mass hosting. Some people just want to host their couchdb on port 80 like some tshirt sa

Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL)

2010-08-19 Thread Jason Smith
On Thu, Aug 19, 2010 at 01:48, Benoit Chesneau (JIRA) wrote: > >[ > https://issues.apache.org/jira/browse/COUCHDB-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899954#action_12899954] > > Benoit Chesneau commented on COUCHDB-230: > ---