Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93019 invoked from network); 20 Jan 2014 04:20:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 04:20:02 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.220.45 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:46666] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/D0-21343-FE3ACD25 for ; Sun, 19 Jan 2014 23:20:00 -0500 Received: by mail-pa0-f45.google.com with SMTP id lf10so4237962pab.4 for ; Sun, 19 Jan 2014 20:19:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=TEtQQCy51HNGCNJB+tcgg1RDSH9Anrq1M+/LNv8ksRo=; b=k53esH6GJos8C5U8NdANmrR975wzHo3kBYy6kQCmSIdpO1nK7pbNSWcSXCeJQlQ2gS 51ve1ADWFwPUga3P8xmGIstPRHEQc41u5XlyLWtxnLxESZQKd/t2IRNedJlnjpOgmKHU hoNc64QMzlsKW7tgM2N31VKvNT3RRIl3GXVAK7+oGEVYL84S7fejqwviz/SEMLrsgNOy 1kNKPuWkwSQrqrYZsDNUWv/n83vkBaAZZl02DVhXLf1eTqu5n/6zADoAhhw7Zne1siK+ hquIMHLfnuBuat5UQxx0R6FP/4Tol7jVsrjFT3YEnL2sFTKbksTWGZoTmFrOOG+FBp0v eVpQ== X-Gm-Message-State: ALoCoQmFIqysKPJsQ6SHZ8/BtIgstu1q0L8Ir8TeueyxvBQzlwgHBBZf2z9kiJAp2oj7HHRqW3M5 X-Received: by 10.66.224.165 with SMTP id rd5mr16331442pac.119.1390191596618; Sun, 19 Jan 2014 20:19:56 -0800 (PST) Received: from [192.168.200.30] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPSA id gn5sm40722184pbc.29.2014.01.19.20.19.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 Jan 2014 20:19:55 -0800 (PST) Message-ID: <52DCA3E7.80602@lerdorf.com> Date: Sun, 19 Jan 2014 20:19:51 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Philip Sturgeon , Sherif Ramadan CC: Chris Wright , Mark Tomlin , PHP Internals References: <002d01cf1234$01e6dc60$05b49520$@tutteli.ch> <004c01cf123d$35730870$a0591950$@tutteli.ch> <52D71748.1090402@googlemail.com> <52D71FAE.8030002@ajf.me> <005001cf124f$3a40df00$aec29d00$@tutteli.ch> <20140116110127.202079vzjsj76n7b@webmail.tutteli.ch> <0B.B1.24763.139B7D25@pb1.pair.com> <002001cf12da$2bfbda90$83f38fb0$@tutteli.ch> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LW5aErjJSQ6O0sBJ0h5NefSfqPuIRtmPG" Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: rasmus@lerdorf.com (Rasmus Lerdorf) --LW5aErjJSQ6O0sBJ0h5NefSfqPuIRtmPG Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 1/19/14, 9:13 AM, Philip Sturgeon wrote: > I think its a nice logical improvement which syntactically offers a > replacement for looney boilerplate code, exactly like Variadics which > a LOT of people are excited about. Actually variadics solves a problem that can't be solved other ways, namely by-ref for an unknown number of arguments. There is no userspace boilerplate code, looney or otherwise, that can do that. I won't argue whether the base need is great enough here. I am sure it is to some people. I do have an issue with the idea that the right solution is a full hash table scan on every function call. I have a feeling that if this makes it in this is one of those features that will be high my list for optimization/refactoring when I run across it in code. As in, replace the per-call hash scan with a single userspace scan that is only done once earlier in the stack. From a performance perspective the only-done-once userspace version is extremely likely to outperform this built-in per-call check assuming more than a trivial amount of calls to the function in question. -Rasmus --LW5aErjJSQ6O0sBJ0h5NefSfqPuIRtmPG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iEYEARECAAYFAlLco+cACgkQlxayKTuqOuApNgCeJYyjXzbqvj6462c0uc5OGaUO G8oAnjcgs0G7ayCKAk19okBmsM73Ub4J =4zfm -----END PGP SIGNATURE----- --LW5aErjJSQ6O0sBJ0h5NefSfqPuIRtmPG--