Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark Stosberg  
View profile  
 More options Dec 20 2010, 8:22 pm
From: Mark Stosberg <m...@summersault.com>
Date: Mon, 20 Dec 2010 17:22:58 -0800 (PST)
Local: Mon, Dec 20 2010 8:22 pm
Subject: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch
Comments are currently open for the proposal for native PSGI support
in CGI::Application and CGI::Application::Dispatch. Details are here:

http://permalink.gmane.org/gmane.comp.lang.perl.modules.cgi-appplicat...

I'm currently waiting to hear back from Alex Kapranoff about
permission to upload the proposed update in the namespace of
CGI::Application::Dispatch::PSGI.

I hope to upload final designs to CPAN in the next few days.

    Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zbigniew Lukasiak  
View profile  
 More options Dec 21 2010, 3:10 am
From: Zbigniew Lukasiak <zzb...@gmail.com>
Date: Tue, 21 Dec 2010 09:10:51 +0100
Local: Tues, Dec 21 2010 3:10 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch

On Tue, Dec 21, 2010 at 2:22 AM, Mark Stosberg <m...@summersault.com> wrote:
> Comments are currently open for the proposal for native PSGI support
> in CGI::Application and CGI::Application::Dispatch. Details are here:

> http://permalink.gmane.org/gmane.comp.lang.perl.modules.cgi-appplicat...

Ad. psgi_app - I wish there was a standard among the object oriented
web frameworks here.  Then all the startup scripts would be the same,
or maybe we could even have a plackup extension that would call this
static method when passed just the class name and no .psgi file.

--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tatsuhiko Miyagawa  
View profile  
 More options Dec 21 2010, 3:21 am
From: Tatsuhiko Miyagawa <miyag...@gmail.com>
Date: Tue, 21 Dec 2010 00:21:47 -0800
Local: Tues, Dec 21 2010 3:21 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch

On Tue, Dec 21, 2010 at 12:10 AM, Zbigniew Lukasiak <zzb...@gmail.com> wrote:

>> http://permalink.gmane.org/gmane.comp.lang.perl.modules.cgi-appplicat...

> Ad. psgi_app - I wish there was a standard among the object oriented
> web frameworks here.  Then all the startup scripts would be the same,
> or maybe we could even have a plackup extension that would call this
> static method when passed just the class name and no .psgi file.

To me that sounds like an unnecessary abstraction.

Some frameworks require setting up engines, allow configuration
options to ->new() etc. You'll lose them by sticking the universal
interface i.e. MyApp->psgi_app.

PSGI embraces diversity, and to me, inconsistency is a good thing.

Note that we used to have Plack::Adapter::(YourFrameworkNameHere) when
Plack was 3-4 days old, which was soon killed since it was not a good
idea :)

https://github.com/miyagawa/Plack/commit/02f2bff02ca2a3a1353c3b89e2ab...

--
Tatsuhiko Miyagawa


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zbigniew Lukasiak  
View profile  
 More options Dec 21 2010, 6:59 am
From: Zbigniew Lukasiak <zzb...@gmail.com>
Date: Tue, 21 Dec 2010 12:59:27 +0100
Local: Tues, Dec 21 2010 6:59 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch

OK - I understand, diversity is important,  I completely agree.  I not
yet worked with frameworks that require setting up an engine and I do
configuration in the application not in the .psgi file - so I don't
know.  But just to explain myself: for me (as a framework author) the
name of the ->psgi_app method is a free variable and it can be
anything, so why not something standard?  That does not mean I would
go as far as using the mentioned Adapter - that adds new code and
there is always some cost to that - but changing the name of the
'->psgi_app' method does not cost me anything.

--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tatsuhiko Miyagawa  
View profile  
 More options Dec 21 2010, 11:47 am
From: Tatsuhiko Miyagawa <miyag...@gmail.com>
Date: Tue, 21 Dec 2010 08:47:29 -0800
Local: Tues, Dec 21 2010 11:47 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch

Also note that some frameworks allows applications be classless i.e.
Mojolicious::Lite and Dancer.

> But just to explain myself: for me (as a framework author) the
> name of the ->psgi_app method is a free variable and it can be
> anything, so why not something standard?

Sure, if you write a new framework and some guidance for a naming
that's fine. But that "standard" doesn't work as a standard unless we
change all the existing frameworks to adapt to the proposal. Otherwise
it's just a "convention that some frameworks follow but not all, hence
not that useful".

>  That does not mean I would
> go as far as using the mentioned Adapter - that adds new code and
> there is always some cost to that - but changing the name of the
> '->psgi_app' method does not cost me anything.

Right, it doesn't cost *you* anything to pick that name, but it will
cost others once you propose it as a standard and force other authors
to update the names and syntax.

Speaking of calling plackup with the class names, plackup already has
a secret (as in, barely used i think) feature to take a class name as
its app argument. The logic is in Plack::Util::load_psgi - if the
given app name doesn't contain ".", treat it as a class name, require
it, and take the return value of the .pm (usually 1 but could be
anything in perl, you know) as a PSGI code ref.

It was added a few months ago as a result of IRC discussion, but i'm
yet neutral on this i.e. i'm happy to kill this feature.

--
Tatsuhiko Miyagawa


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zbigniew Lukasiak  
View profile  
 More options Dec 22 2010, 5:37 am
From: Zbigniew Lukasiak <zzb...@gmail.com>
Date: Wed, 22 Dec 2010 11:37:50 +0100
Local: Wed, Dec 22 2010 5:37 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch

Thanks for the explanations.  I like that undocumented option - I have
some plans to make it possible to run WebNano apps directly from the
command line without creating a special directory for them and any
additional files beside what is in the CPAN distribution.  Perhaps
this would not make much sense for an application in production - but
it would eliminate one more step when checking CPAN distributed apps.

--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Stosberg  
View profile  
 More options Dec 21 2010, 9:39 am
From: Mark Stosberg <m...@summersault.com>
Date: Tue, 21 Dec 2010 09:39:39 -0500
Local: Tues, Dec 21 2010 9:39 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch
On 12/21/2010 03:10 AM, Zbigniew Lukasiak wrote:

> On Tue, Dec 21, 2010 at 2:22 AM, Mark Stosberg <m...@summersault.com> wrote:
>> Comments are currently open for the proposal for native PSGI support
>> in CGI::Application and CGI::Application::Dispatch. Details are here:

>> http://permalink.gmane.org/gmane.comp.lang.perl.modules.cgi-appplicat...

> Ad. psgi_app - I wish there was a standard among the object oriented
> web frameworks here.  Then all the startup scripts would be the same,
> or maybe we could even have a plackup extension that would call this
> static method when passed just the class name and no .psgi file.

I am open to changing this name is there are a few other frameworks that
have the same API, but different names. But, I think Miyagawa may be
right that there are too many other different details for there to be
really be a standard.

We this with Emplacken, it has different code for calling Catalyst,
Dancer, Mason and Mojo:

http://search.cpan.org/dist/Emplacken/

   Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zbigniew Lukasiak  
View profile  
 More options Dec 24 2010, 4:21 am
From: Zbigniew Lukasiak <zzb...@gmail.com>
Date: Fri, 24 Dec 2010 10:21:48 +0100
Local: Fri, Dec 24 2010 4:21 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch

OK - I'll change mine to yours :)  Just to open the possibilities.

Z.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zbigniew Lukasiak  
View profile  
 More options Jan 3 2011, 5:43 am
From: Zbigniew Lukasiak <zzb...@gmail.com>
Date: Mon, 3 Jan 2011 11:43:41 +0100
Local: Mon, Jan 3 2011 5:43 am
Subject: Re: Proposed native PSGI support for CGI::Application and CGI::Appliication::Dispatch

Done in https://github.com/zby/WebNano/commit/b4b804a19187b5194557cf2e6247f14...

I also checked Dancer - it uses psgi_app as well - so it seems like a
good choice.

Cheers,
Z.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »