220 8858 <CADfx-VTObdNpN2-xrgwpiH5f7X1jrp9_py1CH+BL5apNLZYpSw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Felipe Magno de Almeida <felipe.m.almeida@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Comments on 2d api for c++ N3888.pdf
Date: Mon, 27 Jan 2014 15:45:25 -0200
Lines: 44
Approved: news@gmane.org
Message-ID: <CADfx-VTObdNpN2-xrgwpiH5f7X1jrp9_py1CH+BL5apNLZYpSw@mail.gmail.com>
References: <9105f9b2-e15d-4bf8-a4a1-65ebc3657eb0@isocpp.org>
 <CADfx-VTAcBtnbEKntmRRcU4ChHuDsLsk1Yu0pSnUyi2LJFW0hg@mail.gmail.com> <3766829.y6foiXVjg7@tjmaciei-mobl2>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1390844751 8159 80.91.229.3 (27 Jan 2014 17:45:51 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 27 Jan 2014 17:45:51 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCL7ZKXVZICRBVFWTKLQKGQE75EZV2Y@isocpp.org Mon Jan 27 18:46:00 2014
Return-path: <std-proposals+bncBCL7ZKXVZICRBVFWTKLQKGQE75EZV2Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f72.google.com ([74.125.82.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCL7ZKXVZICRBVFWTKLQKGQE75EZV2Y@isocpp.org>)
	id 1W7qFx-0003iz-Mv
	for gclcip-std-proposals@m.gmane.org; Mon, 27 Jan 2014 18:45:57 +0100
Original-Received: by mail-wg0-f72.google.com with SMTP id y10sf12425841wgg.7
        for <gclcip-std-proposals@m.gmane.org>; Mon, 27 Jan 2014 09:45:57 -0800 (PST)
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:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=0jVlYHOKjrhl/yVKRJq4C/PkFFnnCXcVG5fbyoSdOgM=;
        b=ZmkX+iQ+gGarWXcNq3lDu1hg/5Bth5vXM4Ft0EgbBGtv4vo4leZMoT/S2ckvrLuKmc
         dKpT8l5I43D6ZK7JjnoKOP4m5Nlnx93aOAMHMVpMMkcBYZlnH7teU/ikaQoQ/WKzd7tU
         CGxyE96csOPJkNmrZsqqd+lGRrj8qTI3APYmL36/eIcwPxp+oGuaa6hQeCvVkZa5ZjQN
         MXUoLcCDI0FfwWMa9biVmjv/bLUgHrHCwWGASyw53XiZ5C/pYPKvzqlNgmzEdhs9sdtA
         apG4YUzz0bgtdRJQxKH4sOXwL/OudG7zBgead4Ws2Q92S/5hJ9wJSmM49ksiZGgy36ty
         cz+A==
X-Gm-Message-State: ALoCoQkTHWKhjJUjv3XrszzUQL//XCUptO1tqzsWivFfISctOlv9oiXFux3UCUpwhdQ9ASi+YWWx
X-Received: by 10.14.246.4 with SMTP id p4mr16652977eer.3.1390844757370;
        Mon, 27 Jan 2014 09:45:57 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.24.37 with SMTP id r5ls1027743wif.38.canary; Mon, 27 Jan
 2014 09:45:56 -0800 (PST)
X-Received: by 10.205.43.200 with SMTP id ud8mr21487813bkb.39.1390844756437;
        Mon, 27 Jan 2014 09:45:56 -0800 (PST)
Original-Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [2607:f8b0:4001:c05::22a])
        by mx.google.com with ESMTPS id k2si15193781bkr.185.2014.01.27.09.45.56
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 27 Jan 2014 09:45:56 -0800 (PST)
Received-SPF: pass (google.com: domain of felipe.m.almeida@gmail.com designates 2607:f8b0:4001:c05::22a as permitted sender) client-ip=2607:f8b0:4001:c05::22a;
Original-Received: by mail-ig0-f170.google.com with SMTP id m12so11932638iga.1
        for <std-proposals@isocpp.org>; Mon, 27 Jan 2014 09:45:55 -0800 (PST)
X-Received: by 10.50.66.208 with SMTP id h16mr23262615igt.0.1390844755105;
 Mon, 27 Jan 2014 09:45:55 -0800 (PST)
Original-Received: by 10.50.150.196 with HTTP; Mon, 27 Jan 2014 09:45:25 -0800 (PST)
In-Reply-To: <3766829.y6foiXVjg7@tjmaciei-mobl2>
X-Original-Sender: felipe.m.almeida@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of felipe.m.almeida@gmail.com designates 2607:f8b0:4001:c05::22a as
 permitted sender) smtp.mail=felipe.m.almeida@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8858
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8858>

On Mon, Jan 27, 2014 at 3:34 PM, Thiago Macieira <thiago@macieira.org> wrote:
> On segunda-feira, 27 de janeiro de 2014 15:19:16, Felipe Magno de Almeida
> wrote:
>> I don't know why we would want a object oriented drawing library. I
>> think it should be completely value-based and algorithms should be
>> templatized.
>
> You most definitely do not want to run the image-based algorithms like alpha
> blending or the Porter-Duff composition modes in inline template code. You want
> highly optimised, vector versions of them using the resources of the CPU and
> GPU, and not inline.

This is easily doable in a templated library with specialization or
SFINAE (or better yet, concepts if already available). Can't see the
problem with
giving a generic programming API and I don't see how OO would help here.

> You could call it a quality-of-implementation issue and allow the
> implementation to use extern templates for the known and common image formats.
> But I suggest that we *first* get the algorithms for what really matters
> settled down, then we figure out how or if they should be made generic.

Isn't it what Cairo has already done? What C++ needs is a generic
drawing library, not another wrapper over cairo. IMO.

> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>    Software Architect - Intel Open Source Technology Center
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


Regards,
-- 
Felipe Magno de Almeida

-- 

--- 
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 email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
