develooper Front page | perl.perl6.users | Postings from September 2019

Re: perl6 for web development

Thread Previous
From:
William Michels via perl6-users
Date:
September 30, 2019 19:26
Subject:
Re: perl6 for web development
Message ID:
CAA99HCxnfERYbfxtfPUP-6SzwDw6oPCACaygNEQz1VPeM1Bfmg@mail.gmail.com
Hi, thought I'd chime in here with a good starting point: the
modules.perl6.org website. You can search for 'http' or 'web' or
'server', which gives you more results that you might find by using
tags:

(60 results) https://modules.perl6.org/search/?q=http
(44 results) https://modules.perl6.org/search/?q=web
(30 results) https://modules.perl6.org/search/?q=server

There is a lot there to start playing with, and it would be hard for
me to mention all the modules. Cro and Bailador have already been
mentioned by others, so I'll confine my comments below to other
modules.

Modules such as HTTP::Server::Async, HTTP::Server::Tiny should get you
started. The HTTP::Server::Simple and HTTP::Easy modules includes the
PSGI (Plack) framework, used by P5 Catalyst and P5 Dancer.

If you're in need of a basic introduction to 'writing a web-server in
Perl6', check out an older video from Gabor Szabo. In particular, I
just ran (in the Perl6 REPL) the HTTP::Server::Simple code from about
minutes 2:00-to-3:00 of the video, and it still works fine:
https://www.youtube.com/watch?v=VJi1hsB4vN0

One module that deserves mention is Hiker by Tony O'Dell, which I find
very interesting. Hiker is "MVC Framework built on HTTP::Server
HTTP::Server::Router". You can read about Hiker at the blog-post below
(also, the github repo):
https://deathbyperl6.com/hello-web-with-puree-perl-6/
https://github.com/tony-o/perl6-hiker

HTH, Bill.

On Mon, Sep 30, 2019 at 8:52 AM Patrick Spek via perl6-users
<perl6-users@perl.org> wrote:
>
> It's a library for making a web application. One could also make a
> framework out of it, if they wished to do so.
>
> Jonathan has made this distinction in the past, referring to Cro as a
> library explicitly, as opposed to a framework, as a framework is
> (usually) highly opinionated. Cro is not.
>
> That said, Cro has been quite smooth sailing for me, so I too would
> suggest you taking a look there. There's also Bailador[1], which is an
> actual framework for creating web applications as well. There's also a
> tutorial for it on YouTube[2], if that's interesting to you.
>
> [1]: https://github.com/Bailador/Bailador
> [2]: https://www.youtube.com/watch?v=zmQ3FQCIXmk
>
> On Sun, 29 Sep 2019 15:03:58 +0300
> Veesh Goldman <rabbiveesh@gmail.com> wrote:
>
> > No, it's a web framework.
> >
> > On Sun, Sep 29, 2019, 14:33 ζ˜Ÿζ²‰ <star@fallenstar.xyz> wrote:
> >
> > > On 2019/9/29 7:23 δΈ‹εˆ, Laurent Rosenfeld wrote:
> > > > you probably want to take a look at Cro. <https://cro.services/>
> > >
> > > hello,
> > >
> > > is this the replacement to perl5's coro?
> > >
> > > regards.
> > >
>
>
>
> --
> With kind regards,
>
> Patrick Spek
>
>
> www:  https://www.tyil.nl/
> mail: p.spek@tyil.nl
> pgp:  1660 F6A2 DFA7 5347 322A  4DC0 7A6A C285 E2D9 8827
>
> social: https://soc.fglt.nl/tyil
> git:    https://gitlab.com/tyil/

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About