Moose Stuck on API

Back to the API day again here in the Moose-pen

To be extra diligent I decided to play about with some of the tests in '40_joins.t' to see if my API was working as I expected. Namly I took this link;

Parsers and their useful power

I have posted a new entry on the Ocean of Awareness blog: "Parsers and useful power". I look at what parser users want and what makes a parser successful, in light of the 1960s contest between the Irons parser, the first ever published, and recursive descent. One of those is very much with us today, and one survives only in the literature.

For more about Marpa, my own parsing project, there is the semi-official web site, maintained by Ron Savage. The official, but more limited, Marpa website is my personal one. Comments on this post can be made in Marpa's Google group, or on our IRC channel: #marpa at freenode.net.

CPAN Testers at the Perl Toolchain Summit 2018

I made a lot of progress on CPAN Testers at this year's Perl Toolchain Summit (PTS). The PTS is an annual event devoted to maintaining and improving the Perl toolchain. The Perl toolchain includes things like:

YAML.pm 1.25 Changelog

This release contains a lot of little bug fixes, so I thought I'd blog about it. I hope I didn't break anything but you should be aware that chances are a bit higher than usual. Please test!

At the Perl Toolchain Summit I decided to work on trailing comments for YAML.pm, and then I felt like digging a bit deeper into other bugs.

Fix More Moose API

Its deal with change day here in the Moose-Pen

Today the first thing I am going to fix is this little line of code in Database::Accessor;

foreach my $link ((@{ $self->links },@{ $self->dynamic_links })){
            my $view = $link->to;
            my $alias = !$view->alias ? $view->name : $view->alias;
            $self->_check_element($link->conditions,0,$alias);
           push(@items,$link->conditions);
namily I want the above to work the same as the other parts of my API ie I only pass down the view name not its alias; here is my first change of the day;

What's happening with DBD::Oracle?

For $work reasons I have had to do a lot of work with DBD::Oracle.

Master in github has a lot of floating changes (https://github.com/pythian/DBD-Oracle/commits/master) since the latest release (v1.74 see https://github.com/pythian/DBD-Oracle/commits/v1.74)

There are also a number of PR's aged by several years, of which I found many helpful and have curated into a new PR which applies cleanly against master (see https://github.com/pythian/DBD-Oracle/pull/62)

Whilst I have no interest in adoption DBD::Oracle, I am interested in a new "official release" so am curious who's out there using it?

FWIW In the wonderful world of travis and docker, it would be neat to spin up all sorts of testing. I investigated for a few moments but the Oracle docker images still require you to download the SDK zip files (requires oracle.com account) and insert them

PrePan

I recently decided to try to create a CPAN module I thought might be of interest to the community.

http://prepan.org/module/nYhnPU5b9ce

Having gone through the steps necessary to create an account and having read the admonition to seek input before adding needless modules to CPAN by posting on PrePan I was a bit disappointed to find that PrePan is not very active.

Is PrePan still a viable channel for vetting ideas or is there a different path? If so, the CPAN instructions might want to suggest the alternatives for bouncing ideas off the Perl community and embracing new folks to contribute to CPAN.

As an aside, I also volunteered too adopt a module by sending the requisite email to the author but never heard back. It's these kinds of experiences that tend to make me wonder why I don't heed the advice of everyone around me and switch to Python where the community is much more vibrant and less disorganized in general.

Having said that, I respect all of the people in the Perl world that have given so much of their time and energy to creating a useful ecosystem for application development. To those who are active in the Perl community and volunteer their time to create working tools without any pay or recognition I commend you.

Announcing The London Perl Workshop 2018

The London Perl Workshop (LPW) takes place this year on Saturday 3rd Nov at the usual place of The University of Westminster's Cavendish Campus. You are encouraged to submit your talk proposals now, or if you have already feel free to submit another.

Talks may be long (45-60 mins) short (15-20 mins) or very short (lightning talks, 5 mins); however given the feedback after last year's LPW we would prefer, and will probably favour, shorter talks. We would also be pleased to accept proposals for workshops, tutorials and discussions. The deadline for submissions is Sunday 16th Oct.

We would really like to have more rookie speakers this year. If you’d like help with a talk proposal, and/or the talk itself, let us know - we’ve got people happy to be your talk buddy!

Register (it's free!) and submit your talk at: http://act.yapc.eu/lpw2018/

We hope to see you there,

Pete, Rick, Lee and Katherine (the organising team)

Back to API Moose

Its go back and rethink day here in the Moose-Pen

You might remember form yesterday I really did not like this bit of code

               next
                   if ((($field->view) 
                    and ($field->view ne $self->view()->name()) 
                         or ($self->view()->alias() and ($field->view ne $self->view()->alias()))));

My report of the Perl Toolchain Summit 2018 in Oslo

This year, to my surprise, I was again invited to the summit, on short notice.

Again, I was able to visit a city I have never been before and hack four days on YAML and other stuff.

CPAN Pull Request: Mission (Im)possible 2018

Perl 5 Porters Mailing List Summary: April 3rd-30th

Hey everyone,

Following is the p5p (Perl 5 Porters) mailing list summary for the past month.

Enjoy!

Moose Bug Test Fixer

A quick postette day may-by here in the Moose-Pen

Well I though I would have a very quick post here today, which is nice as I am still not 100%. I was going to re-run my test-suite end to end and you would think with only '

 2 files changed, 37 insertions(+), 9 deletions(-)

in Database::Accessor there is not much that could go wrong. 
First I had these annoying warings again;

 Use of uninitialized value in string ne at /home/scolesj/databaselib/Database/Accessor.pm line 479.
After little poking about I seen that I had to include a check to see if indeed there is an alias on the view. I added in this patch;

A Perl Toolchain Summit 2018 organiser's report

The 2018 edition of the Perl Toolchain Summit is over! I’ve posted my report from it on my own blog.

What after the Pull Request Challenge?

Ever since Neil Bowers decided he would stop the "PullRequest Challenge" at the end of the year 2018 in this blog, I have been thinking over time what next after. He even wrote a blog about his ideas.

I am kind of addicted to this phenomena by now. I can't think of life without it. I then noticed someone called, Kıvanç Yazan, taking the initiative. He even setup a website PullRequest Club. Unfortunately I haven't seen much activities lately. Luckily he is giving talk at "The Perl Conference", Glasgow in Aug 2018, where I am also one of the speakers. I hope to meet him and discuss about the future of "PullRequest Challenge".

Perl Toolchain Summit 2018 Wrap-up Report

I had a great and very productive time working on MetaCPAN at this year's Perl Toolchain Summit. I've posted the full report here.

Moose Fixes Second Bug

ts fix the other bug day here in the Moose-Pen.

The second of the bugs that I am after squishing today was in Driver::DBI and in test case '15_alias.t' It was dropping the elements/fields from the update command like this

Expected->UPDATE people SET first_name = ?
Generated -> UPDATE people SET 
Looking at the code in Driver::DBI the line in question is the '_update' sub;

    my (@field_sql) =
        $self->_insert_update_container( Database::Accessor::Constants::UPDATE,
        $container );
The first thing I checked was what was in the '$container' I was playing with. A line of two or waring and a run later it that turned out it was

Mojolicious "morbo" work well in Windows - winmorbo

winmorbo

Tool to make Mojolicious Development server "morbo" work well in Windows

I create winmorbo batch script. Do you think this tool?

If claiming voice is nothing, I want to release App::winmorbo on CPAN.


Download
winmorbo

Usage

    winmorbo app.pl

Description

In Windows, Mojolicious development server morbo don't work well
because worker process can't be receive parent TERM signal well.

For this reason, in windows, Web development is not fun and hard.

I hack Mojo::Server::Morbo in a simple way to make morbo work well in Windows.

How to use winmorbo?

Donwload winmorbo.bat

At first download winmorb.bat in your Mojolicious project directory.

Click winmorbo.bat on GitHub and click Raw button to download winmorbo.bat

Excecute winmorbo.bat

Execute the following command.

You don't specify .bat extension because this is windows batch file.

In this example, Mojolicious application is app.pl.

Perl Toolchain Summit 2018 report

The Perl Toolchain Summit (previously known as the Perl QA Hackathon) is an annual coding workshop for people involved in the Perl toolchain, testing, quality assurance, and related issues. 2018 marked ten years of the PTS, so it seems fitting that it returned to Oslo, where it was first held. I’ve attended a few of them, and I was very pleased to take part in this one as well.

Perl RaspberryPi eBook fundraiser, goal reached!

Well, thanks to the very generous donations by my kin Perl Hackers, the fundraiser for the Raspberry Pi eBook that Timm set up and I eventually jumped on board for has reached its initial fundraising goal!!

I'm very excited, and even before we hit the target, Timm and I had been in communication preparing for, and even commencing some of the book's aspects.

I would like to personally thank everyone for their support, and want to give Gabor a shout-out for monitoring the progress of the fundraiser, and making it prevalent in the Perl Weekly for those couple of weeks there. We noticed a significant spike in activity following the release of the newsletter. Thank you everyone!

-stevieb

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.