Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78188 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10314 invoked from network); 21 Oct 2014 09:25:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 09:25:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 74.125.82.47 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 74.125.82.47 mail-wg0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:40063] helo=mail-wg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/C1-02077-2A626445 for ; Tue, 21 Oct 2014 05:25:55 -0400 Received: by mail-wg0-f47.google.com with SMTP id x13so846157wgg.6 for ; Tue, 21 Oct 2014 02:25:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=e5Dd7MPNcT0/2a2XNk55VDsx2NE1Q/0zgaNDs61FKQM=; b=WsPlWPR/4OvJvyF3TFh+NfAvI+TDjOgf1W3rlkvHOqx6pIKKjY0eJAava/m7VQKs6i zIu+w8smIoDwtmnzjrhMDHxU+MhvgBmGTKEbybd8Zl+olhe13FNvEPPiYX06S7P+M9LH in0PKs+83TiHDBXQ575WU2qnmMXNGSpwFLEAHcNRoDyWANDaYS82rlrCFG+fHShvyy7+ kKKxqv3tzcEnff2uEW3rI/nZsZHfJTx9wdS64f9YApf0cs9Xkdwp5Ffngb/Nbu9mF3X/ MtMKvh7YdEhdPoBFW11Cm4voFBWnw6M6i62gSPWM+oczpmsMFZDgFL9yJbUtzQcz+bC6 bghw== X-Gm-Message-State: ALoCoQkPqdEyp2z4eweVWt6AIiUY6yy/U28WRGEsnbAocnQSmvYoOwLCBOTw6mCFvd5EYPJ55mY8 X-Received: by 10.180.74.47 with SMTP id q15mr26614391wiv.75.1413883552118; Tue, 21 Oct 2014 02:25:52 -0700 (PDT) Received: from [192.168.1.67] (host86-159-154-179.range86-159.btcentralplus.com. [86.159.154.179]) by mx.google.com with ESMTPSA id gm9sm4700115wib.18.2014.10.21.02.25.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 21 Oct 2014 02:25:51 -0700 (PDT) Message-ID: <1413883549.2624.22.camel@localhost.localdomain> To: Dmitry Stogov Cc: PHP Internals Date: Tue, 21 Oct 2014 10:25:49 +0100 In-Reply-To: References: <1413875212.2624.3.camel@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] UString From: pthreads@pthreads.org (Joe Watkins) On Tue, 2014-10-21 at 13:01 +0400, Dmitry Stogov wrote: > Hi Joe, > > > As an extension it looks fine. > > I assume, you don't propose to use UString objects in engine and other > extensions. I'm not proposing it now, no. > Unfortunately, it's yet another incomplete solution. > > It won't allow Unicode strings as array keys; The engine doesn't allow that, couldn't we find a way of using objects as array keys ?? It doesn't seem like a limitation of the extension, to me ;) > concatenation using "." (probably may be done), That's already done. > no auto-conversion from/to script/output encoding, That could be arranged. > no auto-conversion of strings coming from database extensions, etc I'm not sure how important that is, it's not a big deal to create a new object, nor would it be a big deal for those extensions that need to always return unicode strings to do so. > > The "right" approach, would be extending zend_string with "encoding" > and then adopting near all functions working with zend_string to take > "encoding" into account. But, of course, this is going to lead to much > more complicated solution (with some slowdown). That seems a lot like bashing our head against a wall. We tried to introduce support everywhere and it fails. Do we really want to step on the performance gains introduced by recent changes by making all strings unicode ? That doesn't seem like a sensible thing to want, at least right now. Having UString doesn't stop us approaching the problem differently in the future, but it would have to be a very different future to even make sense to me. > If we don't care about complete solution, UString proposal may make > sense at lest as a faster replacement of ext/mbstring. As the RFC states, we are only approaching one problem, the problem that ext/mbstring is not a good API. > > Thanks. Dmitry. > On Tue, Oct 21, 2014 at 11:06 AM, Joe Watkins > wrote: > Morning internalz, > > https://wiki.php.net/rfc/ustring > > This is the result of work done by a few of us, we > won't be opening any > vote in a fortnight. We have a long time before 7, there is no > rush > whatever. > > Now seems like a good time to start the conversation > so we can hash out > the details, or get on with other things ;) > > Cheers > Joe > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php Cheers Joe