tag:blogger.com,1999:blog-34454975.post7791108934333560543..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: JavaScript prototype behaviour with PHPAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-34454975.post-34320872717757926192008-06-06T15:29:00.000+02:002008-06-06T15:29:00.000+02:00P.S. I've not tested performances, but in my opini...P.S. I've not tested performances, but in my opinion it does not matter now, because runkit is still too experimental and loads of problems :)Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-85167071882176213542008-06-06T15:27:00.000+02:002008-06-06T15:27:00.000+02:00PHP wasn't designed to behave this way, though it ...<I>PHP wasn't designed to behave this way, though it can be fun to play with. :)</I><BR/>Hi Stan, if you look at runkit extension possibilities, you can even imagine an entirely JS to PHP converter / pseudo-compiler, as Rhino is for Java world.<BR/><BR/>With Rhino, the JavaScript expressiveness and simplicity wins over a massive usage of invokes, that are everywhere in translated code.<BR/><BR/>Java is, against PHP, pseudo compiled, and it makes Rhino usage a feature, instead of a problem, even if performances are slower than pure Java without reflection and thousands of invokes.<BR/><BR/>At the same time, runkit is young but it is the new classkit extension, and since I believe that APC will make the difference, I am pretty much sure that in one or two years we will be able to use PHP as Javascript and vice-versa ... and honestly, i cannot wait :DAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-44114807913913042772008-06-06T15:06:00.000+02:002008-06-06T15:06:00.000+02:00Very nice post. Keep in mind, though, most of the...Very nice post. Keep in mind, though, most of the PHP world resides in a shared-hosting environment with little access to their installations. Developers like you and I may be able to install runkit, but we're the exception to the rule.<BR/><BR/>Ultimately... PHP wasn't designed to behave this way, though it can be fun to play with. :)<BR/><BR/>Do you have any insight on the performance of PHP+runkit? I doubt it's realistic for high-traffic production environments, but maybe I'm wrong?Stanhttps://www.blogger.com/profile/10597187385303912920noreply@blogger.com