Am 15.04.2010 23:39, schrieb Stefan Marr:
Added traits test cases. No engine changes for now. [TRAITS]
Hello Stefan,
do you have an ETA for when the actual implementation will be committed?
Thanks!
Sebastian
--
Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/
Hi Sebastian:
Am 15.04.2010 23:39, schrieb Stefan Marr:
Added traits test cases. No engine changes for now. [TRAITS] do you have an ETA for when the actual implementation will be committed? I am currently fighting with some of the changes which have accumulated since I last updated the patch.
Currently, it looks like there is one memory leak left which makes most traits tests fail. I want to fix that before committing the first version. Which wont be perfect either, but at least more visible for comments.
ETA: Well, ASAP
BTW: I have not tried to compile the runkit extension, but I doubt that it will. I am using some code to copy methods which I needed to adapt to some changes in zend_op and related structs. Have not seen similar commits to runkit, so I guess it is broken.
Best regards
Stefan
Quoted text · 4 lines
Thanks!
Sebastian--
Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/
Hi!
do you have an ETA for when the actual implementation will be committed?
I must have missed some emails, so which one of the numerous proposals is this based on? I have some comments on the tests, but I don't want to start with it befor it's clear which one we're talking about.
Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com
Hi:
Hi!
do you have an ETA for when the actual implementation will be committed?
I must have missed some emails, so which one of the numerous proposals is this based on? I have some comments on the tests, but I don't want to start with it befor it's clear which one we're talking about. I would commit the traits implementation[1] (not grafts). Just fixed the last immediately visible problem and am now in the process of writing up a list of open questions/todos for the implementation. There are some details in the patch which need to be reviewed and improved I think.
Best regards
Stefan
[1] http://wiki.php.net/rfc/horizontalreuse#traits_-_reuse_of_behavior
Quoted text · 4 lines
--
Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com--
--
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax: +32 2 629 3525
I must have missed some emails, so which one of the numerous proposals is this based on? I have some comments on the tests, but I don't want to start with it befor it's clear which one we're talking about. I would commit the traits implementation[1] (not grafts). Just fixed the last immediately visible problem and am now in the process of writing up a list of open questions/todos for the implementation. There are some details in the patch which need to be reviewed and improved I think.
None of this touches the executor, right, even the conflict resolution? And I am assuming the class composition changes aren't going to blow up opcode caches? I really fear making the class composition more complicated than it already is. You can sit and stare at all the code required in APC to deal with that all day and still not get any wiser.
-Rasmus
I must have missed some emails, so which one of the numerous proposals is this based on? I have some comments on the tests, but I don't want to start with it befor it's clear which one we're talking about. I would commit the traits implementation[1] (not grafts). Just fixed the last immediately visible problem and am now in the process of writing up a list of open questions/todos for the implementation. There are some details in the patch which need to be reviewed and improved I think.
None of this touches the executor, right, even the conflict resolution? Am not sure how you define the executor. Maybe that answers the question:
http://svn.php.net/viewvc?view=revision&revision=298348
All traits related operations are done when the class is compiled. Similar to how interfaces are handled.
For the composition there is an additional opcode which concludes the compilation of a class and executes all merge/conflict resolution operations. After that is done, traits do not have any additional impact on the execution anymore.
And I am assuming the class composition changes aren't going to blow up opcode caches? I really fear making the class composition more complicated than it already is. You can sit and stare at all the code required in APC to deal with that all day and still not get any wiser. Don't know exactly. There is a certain need to adapt the opcode caches, I would guess.
Best regards
Stefan
--
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax: +32 2 629 3525