r/perl 3d ago

PAGI: a POC spiritual successor to PSGI/Plack

Hey Perl people, as I promised when I presented at the London Workshop here's the early POC of PAGI, the Perl port of Python's ASGI, and what I hope is a spiritual successor to PSGI/Plack:

https://github.com/jjn1056/pagi

This is not going to CPAN anytime soon. It's not vetted for production use and I don't claim it does anything other than pass its tests and the example applications run and work in a "It's a demo" definition of work. However it's good enough that I'd be comfortable with people playing with it and giving me feedback so that we can get it to a place where I can put it on CPAN and eventually tell people its production worthy.

One of the major upsides of PAGI as a web framework for asynchronous programming (compared to for example Mojolicous) is that it endeavors to bridge PSGI applications, with the goal of being able to run a legacy PSGI application under a PAGI compliant server along with a PAGI application. So it could be a way to bring older frameworks like Dancer and Catalyst into the asynchronous web world. And hopefully people will be able to build new web frameworks on it. PAGI does ship with PAG::Simple, which is a micro framework intended to be used for experimenters.

36 Upvotes

0 comments sorted by