220 26402 <CANh-dXmGSdNaEZZ2qY9-L6VkR52sNfVOKHMtkgDpOMgcWtO6Gw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "'Jeffrey Yasskin' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: iswalpha and locales
Date: Sun, 26 Jun 2016 11:28:13 +0300
Lines: 47
Approved: news@gmane.org
Message-ID: <CANh-dXmGSdNaEZZ2qY9-L6VkR52sNfVOKHMtkgDpOMgcWtO6Gw@mail.gmail.com>
References: <5057e854-b2ea-4c39-81c7-367bc3e54080@isocpp.org>
 <84d2b9e6-a29b-4c79-8646-2f00dbc5087b@isocpp.org> <f8ce2288-8e06-41ad-8e58-0082d9d9982a@isocpp.org>
 <1550791.ovymrLsGO4@tjmaciei-mobl1>
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 1466929718 25086 80.91.229.3 (26 Jun 2016 08:28:38 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 26 Jun 2016 08:28:38 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDDM34EO6QDRBMVEX25QKGQE2FJBEEQ@isocpp.org Sun Jun 26 10:28:37 2016
Return-path: <std-proposals+bncBDDM34EO6QDRBMVEX25QKGQE2FJBEEQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f71.google.com ([209.85.213.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDDM34EO6QDRBMVEX25QKGQE2FJBEEQ@isocpp.org>)
	id 1bH5Qi-0000R0-RZ
	for gclcip-std-proposals@m.gmane.org; Sun, 26 Jun 2016 10:28:37 +0200
Original-Received: by mail-vk0-f71.google.com with SMTP id v6sf139213624vkb.2
        for <gclcip-std-proposals@m.gmane.org>; Sun, 26 Jun 2016 01:28:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :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=pIbFwk+E8yoZJSrC+Un4KZsj9/UPiOpP4zUtBK27QOg=;
        b=Fv8BvWayHxbDedbvd/zHhh6X+ygoF79nJWwArHh3OtjNet+bCCzno/4A8qczDW7Juc
         LecusF0FKJ8RJ5s7bnWhVIU1pLp/ikQPbAgcVOFrbkvqnjbwr5mqt6uub8BFRVrPifcr
         NlQ7HYhS4Rc1/KMTZcWfusxNAFDUEueKZ24B9ALTPWLwHSmMegl1BTpqML6bOl9ykzU9
         8jzA961q4qrMyqzezZrN1ErQWEPuic5eD02isM9vkkov6bfszgdPuT7jTAweuaF0W/3v
         Mdc2TO7+awhUWQnvMvXHJuMeG66YI1PVJ2m0sr7H+BtGbK2hEAxDeTtVvxtPdO3cgLoQ
         YBYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to: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=pIbFwk+E8yoZJSrC+Un4KZsj9/UPiOpP4zUtBK27QOg=;
        b=FMm+P2lgh3+OY8FnXhKU1pNutOr+pk6dg/eZhCPgU7M40wEJ1e4I9S8iC3JxHRUanL
         RymBf4u/se69Ad+H8K5jxlA3gPfjrjZTQJvM8cl/HTcHI9nHVDzujmcESz78Vnn92KJ2
         VL52r3k01SbaHfL/B1W3P/8TrPddwl1dNJyy/+pWsDCSmjqB0y8X5sTYgDCUrRPEjlN7
         tZcrxleUyLNo19S8RMwIHJMSlglBLfi5t1+UYrWDAGBSmZpYiOPuOH5/DbHqZ5T32lxW
         6Sk+3n2EmQpGeBP+sCKSLSHUILHf6/XxAwDUD56+FoETOov1sOsrVwr5FQ/WncFn5GQu
         KPw 
X-Gm-Message-State: ALyK8tK3tZOewib+7LaKoeib45Yo9H08ORtgZlmxMzt5a2TnA5clcNAUyxksv72CjPsPZA==
X-Received: by 10.200.55.98 with SMTP id p31mr11795007qtb.27.1466929715268;
        Sun, 26 Jun 2016 01:28:35 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.26.137 with SMTP id a131ls1663101ioa.66.gmail; Sun, 26 Jun
 2016 01:28:34 -0700 (PDT)
X-Received: by 10.36.107.88 with SMTP id v85mr4050490itc.51.1466929713988;
        Sun, 26 Jun 2016 01:28:33 -0700 (PDT)
Original-Received: from mail-it0-x232.google.com (mail-it0-x232.google.com. [2607:f8b0:4001:c0b::232])
        by mx.google.com with ESMTPS id t14si12371613ioe.52.2016.06.26.01.28.33
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 26 Jun 2016 01:28:33 -0700 (PDT)
Received-SPF: pass (google.com: domain of jyasskin@google.com designates 2607:f8b0:4001:c0b::232 as permitted sender) client-ip=2607:f8b0:4001:c0b::232;
Original-Received: by mail-it0-x232.google.com with SMTP id g127so44647505ith.0
        for <std-proposals@isocpp.org>; Sun, 26 Jun 2016 01:28:33 -0700 (PDT)
X-Received: by 10.36.138.197 with SMTP id v188mr4453236itd.82.1466929713604;
 Sun, 26 Jun 2016 01:28:33 -0700 (PDT)
Original-Received: by 10.64.225.228 with HTTP; Sun, 26 Jun 2016 01:28:13 -0700 (PDT)
In-Reply-To: <1550791.ovymrLsGO4@tjmaciei-mobl1>
X-Original-Sender: jyasskin@google.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@google.com;       spf=pass (google.com: domain of
 jyasskin@google.com designates 2607:f8b0:4001:c0b::232 as permitted sender)
 smtp.mailfrom=jyasskin@google.com;       dmarc=pass (p=REJECT dis=NONE) header.from=google.com
X-Original-From: Jeffrey Yasskin <jyasskin@google.com>
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:26402
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26402>

On Sun, Jun 26, 2016 at 7:07 AM, Thiago Macieira <thiago@macieira.org> wrot=
e:
> 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 flo=
ppy
>> > 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 =
than
> 1 MB of flash and a around a hundred kilobytes of RAM, or less. Why shoul=
dn't
> we program them with C++?
>
> Another reason is that often the library gets supplied with the executabl=
e.
> Once we load the entire set of Unicode tables for all attributes, it may =
be
> well over a megabyte. In fact, the ICU data table is an 18 MB library. Th=
at
> means your small 100-line C++ program is at least that big.

ICU does have ways to subset its data tables to include only the parts
you use. The proposal author should probably validate that to show us
what kinds of subsets are already possible, but it'll also be possible
to add new subsets if the C++ library wants to make finer-grained
distinctions.

Standard libraries targeting microcontrollers may need ways to only
ship subsets of unicode according to user assertions about which
characters they actually use, but I'm pretty confident it's possible
to make the size reasonable.

Jeffrey

--=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/CANh-dXmGSdNaEZZ2qY9-L6VkR52sNfVOKHMtkgDpOMgcWtO=
6Gw%40mail.gmail.com.

.
