We recently rejected a plan to migrate to D2 when we discovered that Dancer2::Text::Xslate requires Perl 5.10. We still have to support 5.8 because we have an existing fleet of CentOS 5 boxes which aren’t going away any time soon. (Upgrading them in the field is as good as impossible, and we lack a good business reason to have them shipped back to be upgraded. They won’t go away until our customers just stop using them, or they fall over dead and need to be replaced.) Is dropping Perl 5.8 support an intentional move? If so, we’ll have to stick with D1 for years to come. I know the Modern Perl movement is trying to get beyond 5.8, but the fact is, it was the primary version of Perl for nearly 5 years, so it left a big “pulse” in the timeline that will take a long time to dissipate. Incidentally, a big factor in our choice to use Dancer 1 was that it still supports Perl 5.8. We rejected Catalyst and Mojolicious without even evaluating them because they both require Perl 5.10.
On 12/29/2015 05:03 PM, Warren Young wrote:
We recently rejected a plan to migrate to D2 when we discovered that Dancer2::Text::Xslate requires Perl 5.10.
I suggest to contact author of the Dancer2::Text::Xslate about this prerequisite resp. trying to run it with Perl 5.8 and fix problems.
We still have to support 5.8 because we have an existing fleet of CentOS 5 boxes which aren’t going away any time soon.
(Upgrading them in the field is as good as impossible, and we lack a good business reason to have them shipped back to be upgraded. They won’t go away until our customers just stop using them, or they fall over dead and need to be replaced.)
Is dropping Perl 5.8 support an intentional move? If so, we’ll have to stick with D1 for years to come.
Dancer2 itself should work with Perl 5.8.
I know the Modern Perl movement is trying to get beyond 5.8, but the fact is, it was the primary version of Perl for nearly 5 years, so it left a big “pulse” in the timeline that will take a long time to dissipate.
Incidentally, a big factor in our choice to use Dancer 1 was that it still supports Perl 5.8. We rejected Catalyst and Mojolicious without even evaluating them because they both require Perl 5.10. ________________________
Also you have always the choice to install a custom Perl on these boxes. Regards Racke _______________________
dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-- Perl and Dancer Development Visit our Perl::Dancer conference 2015. More information on https://www.perl.dance.
On Dec 30, 2015, at 3:35 AM, Stefan Hornburg (Racke) <racke@linuxia.de> wrote:
you have always the choice to install a custom Perl on these boxes.
The supported way to do that on RHEL type OSes wasn’t added until CentOS 6.5, which comes with Perl 5.10 already. Prior to that, you have to either: 1. Find a third-party RPM and hope for the best. (Not exactly a production-grade solution!) 2. Use PerlBrew or similar, which largely defeats the purpose of using a stable Linux like CentOS in the first place. If we wanted to build platform software from source, we’d be on Arch or Gentoo. I think we’re either going to have to hold off on D2 for some time, or as you say, try to get the Xslate plugin backported to 5.8.
On Dec 31, 2015, at 8:20 AM, Warren Young <wyml@etr-usa.com> wrote:
I think we’re either going to have to hold off on D2 for some time, or as you say, try to get the Xslate plugin backported to 5.8.
It turns out that fixing this is a one-liner: https://github.com/rsimoes/Dancer2-Template-Xslate/pull/7 A wish to use //= on a single line in the plugin is a pretty silly reason to require Perl 5.10. :)
On 2015-12-31 8:29 AM, Warren Young wrote:
On Dec 31, 2015, at 8:20 AM, Warren Young <wyml@etr-usa.com> wrote:
I think we’re either going to have to hold off on D2 for some time, or as you say, try to get the Xslate plugin backported to 5.8.
It turns out that fixing this is a one-liner:
https://github.com/rsimoes/Dancer2-Template-Xslate/pull/7
A wish to use //= on a single line in the plugin is a pretty silly reason to require Perl 5.10. :)
Indeed. In my experience, the most common reasons that Perl code would require a version over 5.8 is due to wanting to use some new syntactic features such as that, and that instead sticking to the syntax 5.8 has would not change the code very much. There are other, deeper features of Perl versions over 5.8 that make them worth upgrading to, but often code incompatibilities aren't due to people needing these things, and so for that code it should still support 5.8. Bottom line, if a Perl module/script you depend on requires a higher Perl version number than you have, don't just take that at face value but look into it and you may often find that tweaking this module's source is indeed the easiest path. -- Darren Duncan
We have also just released a new version of Dancer2 which fixes a few notable errors on our part that required 5.10 without noticing. I think Peter (SysPete) deserved a big ++ here on all the work he did on it: * https://github.com/PerlDancer/Dancer2/issues/1096 * https://github.com/PerlDancer/Dancer2/issues/1097 * https://github.com/PerlDancer/Dancer2/pull/1098 On Thu, Dec 31, 2015 at 11:48 PM, Darren Duncan <darren@darrenduncan.net> wrote:
On 2015-12-31 8:29 AM, Warren Young wrote:
On Dec 31, 2015, at 8:20 AM, Warren Young <wyml@etr-usa.com> wrote:
I think we’re either going to have to hold off on D2 for some time, or as you say, try to get the Xslate plugin backported to 5.8.
It turns out that fixing this is a one-liner:
https://github.com/rsimoes/Dancer2-Template-Xslate/pull/7
A wish to use //= on a single line in the plugin is a pretty silly reason to require Perl 5.10. :)
Indeed.
In my experience, the most common reasons that Perl code would require a version over 5.8 is due to wanting to use some new syntactic features such as that, and that instead sticking to the syntax 5.8 has would not change the code very much.
There are other, deeper features of Perl versions over 5.8 that make them worth upgrading to, but often code incompatibilities aren't due to people needing these things, and so for that code it should still support 5.8.
Bottom line, if a Perl module/script you depend on requires a higher Perl version number than you have, don't just take that at face value but look into it and you may often find that tweaking this module's source is indeed the easiest path.
-- Darren Duncan
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
On Jan 12, 2016, at 11:22 AM, Sawyer X <xsawyerx@gmail.com> wrote:
We have also just released a new version of Dancer2 which fixes a few notable errors on our part that required 5.10 without noticing.
Thanks! I’ll re-evaluate D2 with our app on CentOS 5 in the near future.
On Tue, 12 Jan 2016 19:22:36 +0100 Sawyer X <xsawyerx@gmail.com> wrote:
We have also just released a new version of Dancer2 which fixes a few notable errors on our part that required 5.10 without noticing.
I think Peter (SysPete) deserved a big ++ here on all the work he did on it: * https://github.com/PerlDancer/Dancer2/issues/1096 * https://github.com/PerlDancer/Dancer2/issues/1097 * https://github.com/PerlDancer/Dancer2/pull/1098
Thanks, Peter / SysPete! Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/ Larry Wall can understand the Perl code he wrote last year. Please reply to list if it's a mailing list post - http://shlom.in/reply .
participants (5)
-
Darren Duncan -
Sawyer X -
Shlomi Fish -
Stefan Hornburg (Racke) -
Warren Young