220 26397 <1550791.ovymrLsGO4@tjmaciei-mobl1> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: iswalpha and locales
Date: Sat, 25 Jun 2016 21:07:51 -0700
Lines: 50
Approved: news@gmane.org
Message-ID: <1550791.ovymrLsGO4@tjmaciei-mobl1>
References: <5057e854-b2ea-4c39-81c7-367bc3e54080@isocpp.org> <84d2b9e6-a29b-4c79-8646-2f00dbc5087b@isocpp.org> <f8ce2288-8e06-41ad-8e58-0082d9d9982a@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1466914086 19068 80.91.229.3 (26 Jun 2016 04:08:06 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 26 Jun 2016 04:08:06 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBHFKXW5QKGQEFFORWTQ@isocpp.org Sun Jun 26 06:07:59 2016
Return-path: <std-proposals+bncBCB4TK757YBRBHFKXW5QKGQEFFORWTQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f71.google.com ([209.85.215.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBHFKXW5QKGQEFFORWTQ@isocpp.org>)
	id 1bH1MU-0001sm-IR
	for gclcip-std-proposals@m.gmane.org; Sun, 26 Jun 2016 06:07:58 +0200
Original-Received: by mail-lf0-f71.google.com with SMTP id l184sf99282358lfl.3
        for <gclcip-std-proposals@m.gmane.org>; Sat, 25 Jun 2016 21:07:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:user-agent:in-reply-to:references
         :mime-version:content-transfer-encoding:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=vtE0MR3BVeqKzUx4Vt4cRxDjvds8fCBy44L4dnxlFTo=;
        b=hyfSMSfBEd2VcE1Lq6yNxMC+Tbh0Up9Sbw/UPbfAf+4ZHlXQhxkDYk4W+hdhds7l3k
         hS2lB/cC29dDINQIaweHMrKVfFlqpsS4kk1J7KcO7hs0hrrDrdPOyZRbeJ7hwSSBdMYD
         1hO3bPslDZgl+WdxRpvrTAm9S7CgUNJUTlsFTYxrjBVclv2SrE4JqAHEmScVl5g/+xNb
         hVvqe+3kVyBqzhfof4/0jzVNCc8tCiYnsg0Fn0wg+lmkIx8eo2Jvn3EjGZHoNqobmD3V
         dmGKulC46eObP/OfpBzuYYFWq3VKNyV/AhoTdy3sP5hEfNo0aUyMqCvrkI/kFQW+oxRA
      
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:content-transfer-encoding
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=vtE0MR3BVeqKzUx4Vt4cRxDjvds8fCBy44L4dnxlFTo=;
        b=WxFL8oBmWG0hB7dLTnAk8boZMQEljAJDQLUTUa7eA1kDL720wlO5Ya4TbO0J0cHQRB
         LgbgQz3VWNP5v0coUSRW/fjkqMg74KidVg/Ir2XqFMN0d52tx1c/ZxB21tVNgB7syi5B
         khe7mom3Kp80M2JsnxfOSgOkg5au9fadIpWHUYMfdtIeoPYskZfBUZuHRoby+8eyK6Ra
         QJ+uNvpRNFi6805by5ZDEq32SVAzCD5cEPEZ/cmAUaHiOK7GnU85qfGN56XW6s7uWqEf
         r8PmhP63XrkRg8i+ReUJzfFesOBdDiz/J7LQAarD9zL14mSeN4nsm6rqbBlWje+JbEM3
  
X-Gm-Message-State: ALyK8tLgnvvuPKMOeMxGv83XhbFL2E3AOGd+NEJBmGJN39LA0elWAtQoDzX2S1WUdmFc9A==
X-Received: by 10.28.46.4 with SMTP id u4mr767272wmu.6.1466914076815;
        Sat, 25 Jun 2016 21:07:56 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.63.81 with SMTP id m78ls380863wma.21.gmail; Sat, 25 Jun
 2016 21:07:55 -0700 (PDT)
X-Received: by 10.28.69.134 with SMTP id l6mr4842128wmi.80.1466914075655;
        Sat, 25 Jun 2016 21:07:55 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id s130si5274477wmf.67.2016.06.25.21.07.55
        for <std-proposals@isocpp.org>;
        Sat, 25 Jun 2016 21:07:55 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:5803:81c9:4404:8260:60ba:e69a])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 9E4EA11BC4D
	for <std-proposals@isocpp.org>; Sat, 25 Jun 2016 21:07:53 -0700 (PDT)
User-Agent: KMail/5.2.2 (Linux/4.6.2-1-default; KDE/5.23.0; x86_64; ; )
In-Reply-To: <f8ce2288-8e06-41ad-8e58-0082d9d9982a@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:26397
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26397>

On s=C3=A1bado, 25 de junho de 2016 20:29:50 PDT asorenji@gmail.com wrote:
> Yes, there are ways to make them smaller. But this no way to make them
> *faster*. Sacrifice time for saving 100KB? We not load programs from flop=
py
> > anymore, we have gigabytes of RAM and at least gigabytes of disk space.=
 In

No, we don't. There are many modern microcontroller-class CPUs with less th=
an=20
1 MB of flash and a around a hundred kilobytes of RAM, or less. Why shouldn=
't=20
we program them with C++?

Another reason is that often the library gets supplied with the executable.=
=20
Once we load the entire set of Unicode tables for all attributes, it may be=
=20
well over a megabyte. In fact, the ICU data table is an 18 MB library. That=
=20
means your small 100-line C++ program is at least that big.

I don't mean to discourage you. I do think we need some more Unicode suppor=
t=20
in the standard library, like better conversion functions from the current=
=20
locale to UTF-16 and 32. Qt has provided that for 15 years, so why not the=
=20
standard library?

> > Also, there is no guarantee that `wint_t` can store a Unicode codepoint=
,
> > so that API isn't reasonable. If you're serious about Unicode support, =
you
> > need to focus on the types that actually store Unicode encodings.
>=20
> Okay, char32_t.

--=20
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/1550791.ovymrLsGO4%40tjmaciei-mobl1.

.
