Hacker News new | ask | show | jobs
by kinkora 2538 days ago
Myth: Perl 6 has no official "framework"

Reality: Yep.

The biggest issue with Perl 6 IMO is that there are no "official" scaff holding framework(s) for anything. If I need to spin up a web app? Start from scratch. Need something like a CMS? Start from scratch. Need a static site generator? Start from scratch.

Yes, I know there are probably some Github repos out there that may do what I want and I am nitpicking but it is IMHO that until a programming language adopts an official framework[1] to help with new entrants or even crusty old dev guys like me that don't wanna keep reinventing the wheel, that language will rarely ever get popular.

[1] e.g. rails to ruby, laravel/wordpress to PHP, Django to python, nodejs to javascript, etc

3 comments

2 minutes of searching found a number[1] of modules implementing frameworks. Notice the static site generator you mentioned to be one of the lacking elements[2]. Or the CMS system[3].

But sure, lets just dismiss these, and accept the "but its not rails/django/...". The comment reads just like the anti-Perl language hate that it is.

I'm curious though ... WP has been developed over multiple decades, Django started out a long time ago. Perl6 has been available in usable form for what ... 3 years? And you are seriously asking why the ecosystem is not equivalent?

[1] https://modules.perl6.org/t/WEB

[2] https://modules.perl6.org/dist/Uzu:cpan:SACOMO

[3] https://perl6.pheix.org/

Perhaps I could have better communicated my feedback and I do apologise for that but I wanted to point out that I did not say there is nothing out there and in fact, specifically mentioned that I could find those repos:

> Yes, I know there are probably some Github repos out there that may do what I want and I am nitpicking

Plus I could also say that if you spent 2 minutes searching my comment history, you will find that I am a Perl enthusiast and also started my sys admin career with cgi-bin yet you jumped straight into dismissing me as an anti-Perl person.

I could also add that if you took another 2 minutes to look at the link of list of modules that you listed, none of them are friendly to new adopters. E.g. Here are the documentation for the top 4 links:

• Bailador: https://github.com/Bailador/Ressources (misspelled link + 404 error to documentation)

• Cro: https://cro.services/docs/intro/getstarted (taking out the code samples, the whole documentation is 9 lines)

• Uzu: https://modules.perl6.org/dist/Uzu:cpan:SACOMO (this one is actually good. just needs some polishing for new comers)

• Pheix: https://perl6.pheix.org/doc (404 error to documentation)

And compare that to the following:

• Rails: https://guides.rubyonrails.org/getting_started.html

• Django: https://www.djangoproject.com/start/

• Laravel: https://laravel.com/docs/5.8

That's just the documentation. I haven't even gone on about the fact that all of those Perl 6 modules are by independent contributors (Cro being a private web consulting company) and the worry about it disappearing or losing support for future releases, bug fixes, etc if I want to adopt Perl 6 for production systems.

So my point stands.. until Perl 6 has an official & comprehensive framework to do something to help beginners, it will not be popular. Key word "official", "comprehensive" and "beginners".

The whole point about this article is that people don't adopt Perl 6 because of the many myths purported but my feedback is that the reason because any new language gets popular is due to the official frameworks and community around it that helps the adoption which also set some standards and will help dispel some of these myths. All of these makes it much more inviting to someone new to the language and drives adoption. Without that, even me as a Perl veteran will find it tough to get myself up and running.

Lastly, I have tried to give constructive feedback to the Perl 6 community and have always met with these sort of defensive behaviour. We could do with some more conversations around feedback than simply dismissing comments right away with a "your language is so filled with anti-perl hate".

For Cro the documentation is much more extensive than you suggest https://cro.services/docs/intro/spa-with-cro

The main issue you're perhaps less aware of is the total size of the Perl 6 user base is about 200ish people who are not commercially oriented for the majority.

As far as I'm aware, there's nothing "official" about any of the three examples you linked. They've just gained unanimity.
You're looking for Cro

https://cro.services

Ho doesn't have a framework either but it's quite easy to start a webserver/develop a web app.