Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56857 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63580 invoked from network); 9 Dec 2011 19:22:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2011 19:22:59 -0000 Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:48273] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/33-41208-21062EE4 for ; Fri, 09 Dec 2011 14:22:59 -0500 Received: by iabz21 with SMTP id z21so4174618iab.29 for ; Fri, 09 Dec 2011 11:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=yFSowBg26L8wUpg0ahQtLdscjrl9SGrOzUebsumTWjo=; b=dxIl5NARWhHgz1hoHt1Ua9yY0xT4nz2636L4Eu7pS4QlTuB82YDds5M9io/3ZNx1KM Aqo7elFhHUpAbGfUT7JAJU3KMvzzqBtfeJ2VE7vqaUyUONIhzHL6/ojqIq5wO8unEZbr 4HdggEOaQIlqtb8Uk6HwpGjoBVh46zcn37/1U= MIME-Version: 1.0 Received: by 10.50.160.161 with SMTP id xl1mr4599370igb.5.1323458575995; Fri, 09 Dec 2011 11:22:55 -0800 (PST) Received: by 10.42.172.130 with HTTP; Fri, 9 Dec 2011 11:22:55 -0800 (PST) In-Reply-To: References: Date: Fri, 9 Dec 2011 12:22:55 -0700 Message-ID: To: Rasmus Schultz Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Phalanger From: chrisstocktonaz@gmail.com (Chris Stockton) Hello, On Thu, Dec 8, 2011 at 4:28 PM, Rasmus Schultz wrote: > Don't take this the wrong way, I'm merely trying to provoke your thoughts= a > bit with this e-mail! :-) > > Has it occurred to anyone, to abandon the official PHP codebase and adopt > Phalanger instead? > > Some convincing (to me) points: > > - Phalanger runs on Mono, meaning similar platform-reach as PHP. (but > eliminating most platform-specific implementations.) > > - It's fast. (probably fast enough to mostly eliminate the need for nativ= e > extensions in general.) > > - The community would be able to write modules/extensions in PHP or other > CLR languages. > > - It's secure. (not that C/FFI PHP extensions tend not to be trustworthy, > but they do tend to come from a relatively small group of authors.) > > - Access to more languages means a much bigger community who can contribu= te > extensions and core patches. > > - Access to existing CLR codebases means more third-party libraries can b= e > readily integrated without writing and maintainting C/FFI wrappers. > > - The codebase is new, clean and modern (it's not dragging around a lot o= f > legacy baggage.) > > - Fully take advantage of new 64-bit hardware (vector computations and > larger address space) in all aspects. (core, extensions, PHP scripts). > > I'm not going to try to sell you on the fact that the integration with th= e > Windows world is tighter in Phalanger than in PHP - but it is a point tha= t > carries considerable weight =A0to many businesses. > > People I know have had a tendency to view Phalanger as "PHP for Windows" = - > it's really not. It's PHP for CLR - and CLR is not (only) Windows. And it > is readily available on most modern operating systems with good support f= or > various hardware platforms. > > Now, before you start flaming me - I'd love to hear precisely why you're > eager to hang on to the C codebase. What are the benefits of the C codeba= se > over Phalanger? > > I understand the licensing may be an issue. It may be the argument that > outweighs everything else, but I'm curious to hear what else would keep y= ou > from moving to Phalanger? > I am not sure the response you are expecting, suggesting to abandon the PHP project with over a decade of tried and proven work to architecture that prohibits a great portion of the implementations very attraction for a majority of large projects... furthermore doing it on a list full of the very developers who have put in all this time and effort is almost a bit ridiculous. If PHP ever took away my freedom to write efficient C extensions for domain specific problems, library integration or was better favored to a windows world I would unfortunately have to move to another technology. I would like to make note in no disrespect to anyone that I think some graphs showing some bars larger then others, are meaningless to me in the current state of technology. I haven't had to write a C extension for performance improvements in years. Scaling web applications is just so easy, the bottlenecks are almost NEVER in the web tier anymore and when it does reach capacity provision a new web box and voila. What is expensive ($$) is data storage and network communication (performance) to external service providers (fb api, openid, twitter, internal enterprise services, pick your api). Just a couple thoughts from me and my experience, in a nut shell it's great to see work on alternative implementations that better fit a specific group or set of groups problem domains, but such a drastic statement as to drop the current implementation and start anew is pretty far away from logical :- ) -Chris