Re: Percentage of MS Windows Perl Users
by marto (Cardinal) on Feb 19, 2020 at 08:02 UTC
|
"This suggests to me (making certain assumptions that the testing population represents the broad user population) -- that only about 4% of Perl users are on Windows."
The basis of your assumption is flawed. Some testers run smokers for several different OS. Windows has licence costs. If you feel Windows is underrepresented it's a voluntary effort, see Why are some OS blank in CPAN Testers Matrix?.
| [reply] |
|
The statistician George Box is often quoted as saying: "All models are flawed, but some models are useful". I'm well aware that the assumption regarding testers being representative of the broader userbase isn't exactly correct. But I'm curious if the estimate is off by a little bit, or a lot.
Based on the types of questions seen on various forums, there could be many more Windows users than the testing logs would suggest. And if that is the case, I'd like to devote some time to testing on Windows.
| [reply] |
|
#!/usr/bin/perl
use strict;
use warnings;
use feature 'say';
use DateTime;
use Mojo::UserAgent;
# http://api.cpantesters.org/docs/?url=/v3#!/Summary/v3_summary_all
my $url = 'http://api.cpantesters.org/v3/summary';
# just an example, the last month
my $date = DateTime->now->add( months => -1 )->iso8601.'Z';
my $osname = 'mswin32';
my $grade = 'fail';
my $ua = Mojo::UserAgent->new;
my $res = $ua->get( "$url?osname=$osname&grade=$grade&since=$date" )->
+res->json;
say "$osname $grade since $date";
foreach my $fail ( @{$res} ){
say "$fail->{dist} failed on $fail->{perl}";
}
Displays:
mswin32 fail since 2020-01-19T16:45:05Z
Config-Registry failed on 5.20.1
ExtUtils-MakeMaker failed on 5.22.1
Config-Registry failed on 5.18.2
Config-Registry failed on 5.18.2
CBOR-Free failed on 5.18.2
MySQL-ORM failed on 5.18.2
MySQL-ORM failed on 5.12.2
Metabolomics-Fragment-Annotation failed on 5.18.2
MySQL-ORM failed on 5.20.1
Config-Registry failed on 5.12.2
Class-Refresh failed on 5.18.2
.....
| [reply] [d/l] [select] |
|
|
|
| [reply] |
|
|
|
|
| [reply] |
|
| [reply] |
|
|
Re: Percentage of MS Windows Perl Users
by swl (Parson) on Feb 19, 2020 at 03:29 UTC
|
I would assume the majority are on UNIX variants, but I'm not sure CPAN testers is a reliable source of information for this specific question. For example, how easy is it to set up a windows machine for CPAN testing, as compared with Unix variants?
A semantic question would also be whether you are counting developers or end-users. Maybe it does not matter, though.
| [reply] |
Re: Percentage of MS Windows Perl Users
by Tux (Canon) on Feb 20, 2020 at 07:04 UTC
|
And your count also excludes OS's like HP-UX and AIX. I do run CORE smokes on those, but I do not have the capacity to run CPANTESTERS, so you will miss feedback of cpan/cpanm installs on these.
Enjoy, Have FUN! H.Merijn
| [reply] |
Re: Percentage of MS Windows Perl Users
by jcb (Parson) on Feb 19, 2020 at 23:55 UTC
|
As far as I can tell, none of the automated CPAN smoketest boxes seem to be running Windows, or at least none of the automated testers that will pick up an alpha release. If you want improvements and have a Windows box where you could install multiple versions of Strawberry Perl, you could set up a Windows smoketest box. Be the change you want to see in the world.
| [reply] |
|
| [reply] |
Re: Percentage of MS Windows Perl Users
by ikegami (Patriarch) on Feb 20, 2020 at 19:36 UTC
|
I don't think there's a link between the proportion of systems used by CPAN smokers to the proportion of systems used by Perl users in general.
On a different note, the way in which Perl is used might vary by system.
| [reply] |
Re: Percentage of MS Windows Perl Users
by harangzsolt33 (Chaplain) on Feb 22, 2020 at 02:33 UTC
|
I use TinyPerl 5.8 on Windows XP, and I never ran any CPAN tests, thus I don’t show up in the statistics. | [reply] |
|
| [reply] |
Re: Percentage of MS Windows Perl Users
by Anonymous Monk on Feb 21, 2020 at 02:16 UTC
|
So far as I am aware, "Windows is not, and has never been, 'under-represented.'" Nor could it ever be. We live in a cross-platform world. | [reply] |