PHP UK Conference 2013

El futuro que nos deparará PHP 5.5

David Soria Parra  · 
PHP

Presentación

PDF (pincha para descargar)

Vídeo

Transcripción

Extracto de la transcripción automática del vídeo realizada por YouTube.

welcome my talk is about looking ahead PHP 55 my name is David Soviet aha I'm one of the release managers of PHP 55 which means I'm responsible for packaging looking to security fixes in announcements yes so the talk I will just cover like some parts

of PHP 55 I'll look into what we're going to break which is kind of interesting for you I guess ah and look like into current discussions on what has been discussed because obviously 55 is not out yet nevertheless first of all I want to actually start

with a look back into the year 2012 because honestly 2012 was a great year for PHP why because first of all we've seen like a big adoption of symfony2 and Silex as micro framework and we have seen the release of scent framer to which was great right and

we have seen new tools come out that help us to develop our software we have finally a decent dependency management system called composer so from the PHP community perspective 2012 was a great year a lot of Drive you know two major frameworks brought out

a new virgin so after like a few years what we like allods not going on that much in PHP finally it's a year a lot of stuff came out but this was the only community stuff right in the Court itself I think the core itself had a huge Drive and like new people

coming in new development in general and I won't you know talk about a little bit about why 2012 with a great year from PHP not just from community and framework perspective but also from the core and one of the first thing I want to talk about is is what

we call the RFC process and i'm not i'm pretty sure there are a few people in the audience would think it's a pain in the ass but i think this is one of the best things PHP has done over the last years as the krill core internals group is to enable

new people to bring in their ideas as you know as a vicky page as a request for comment I will they show you know what they're going to change how they want to go how they want to change it and where they think about you know what's implications of

the change and then ask for discussions on the internal mailing list they can just call for a vote and we just vote on on the feature and then it's decided if it's going it go goes in or not and this really helped a lot of new people to get into the

community I'll help people that have been affiliated with the community for a long time but never being part of the core development team to bring in their ideas and basically to open up the PHP community or to like more people that brick on frameworks

and need a specific feature to go in and so on so forth so this really helped to drive PHP in 2012 I thing and the second thing which helped us a lot was what is called the time-based release pine and I'm not sure who has heard about that yet but this

is actually the reason why I'm standing here in front of you and talk about PHP 55 already because if you remember PHP 5 4 was released in 2012 februari 2012 so actually a year ago um and if you think about when did but then when did we release 53 right

there was some when 2008 so it took us three and a half years to release 54 from 53 on and 53 was even worse right so we figured out well it's not really motivating for people for like base the community to move to a new version in particularly not for

core developers to work on a new version if you spend like four years waiting that your code finally hits the world and then another three years so it actually is in use so we thought ah why would you know a lot of other projects do it much better so we could

adopt that and since this year and 55 is kind of the first try of that and we already failed with that well explain that later that we do um release every year right from now on you will see 5 5 this year and may probably and you will see 5 6 next and may

hopefully so let's think about that so in May 2014 you will have HP 56 out there it will have 55 out there and we'll have 54 out there ah honestly who have you is still using 52 who is using 54 okay so the rest is 53 so if your neighbor is still sleep

um the guy on the right next to you please wake him up because this is an important announcement here right now as you can imagine three versions too may change three versions as a pain in the ass right 5 6 55 54 but we have 53 right so the PHP community um

the last week set together and decided and wrote an RFC about it and voted on it um how are we dealing with PHP 53 and this is like I think one of the biggest announcement today if you have not followed the internal mailing lists um we are going to UL PHP

53 in 2014 so there will be no bug fixes anymore not even security bugs fixes from the 56 release on in a year now so what does it mean also that means that once we release 55 you get only security fixes from the community obviously if you have a distributions

that you know does some LTS support and so on so forth um you get longer support but from our side 53 is done in a year from now and I know that you're on is the current release manager is looking forward to this point where you can finally have to like

46 years of maintaining this stuff put this away so that's kind of interesting that are you have like approximately one and a half years to make my great to something you so let's look into what is new actually now so you get a ma you know a feeling

of what do you have to do you know what we added actually so I'm you know I'm a nerd I really love language features a lot so I will start off with some random language feature this I think the biggest addition in PHP 55 but it might not be the most

useful one to be honest and that is the so-called generators uh who have you have ever verdict was Payton you should partners awesome so the general generators are an idea which we i would say borrow but actually stole it right away from tyson because why

nots to good ideas right so um over the last year's PHP you know try to incorporate more language features which help you to write more concise code you know shorter stuff you know we have closures so you don't have to write functions and come up with

some random function names so we are introduced generators also it's part of this making code a bit more concise and the basic idea was well if you look into something that people write from time to time like iterators uh it's a fairly complex thing

to do writing an iterator so look at this thing it's a an iterator to remember that for years like nothing else and just a plan on how to traverse stuff right how to traverse any kind of data most of the time is the data structure it can be a stream it

can be anything right it's just a algorithm around that and to write such a thing in PHP at the moment in five four you have to you know implement the iterator interface um so if you want to traverse for example in this very stupid example obviously just

natural numbers you end up with a very very complex implementation of an iterator it does nothing else than get a counter up right so in if you think about what makes of the iterator Steve like director iterators and I know the poly traitors what they are

[ ... ]

Nota: se han omitido las otras 3.481 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.