Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6778C200C02 for ; Fri, 20 Jan 2017 18:24:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 66150160B48; Fri, 20 Jan 2017 17:24:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AC1DF160B34 for ; Fri, 20 Jan 2017 18:24:58 +0100 (CET) Received: (qmail 60358 invoked by uid 500); 20 Jan 2017 17:24:57 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 60348 invoked by uid 99); 20 Jan 2017 17:24:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2017 17:24:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4C4FAC03C3 for ; Fri, 20 Jan 2017 17:24:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1XWngpB9akW3 for ; Fri, 20 Jan 2017 17:24:53 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DA3095FC34 for ; Fri, 20 Jan 2017 17:24:52 +0000 (UTC) Received: by mail-vk0-f45.google.com with SMTP id x75so54291850vke.2 for ; Fri, 20 Jan 2017 09:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=1QHJmkY2pbY+Zy8ExB5/6YC6RkqQEqUbDaVV9rfXAgY=; b=IjRsoQMdaxC5PBKIC3a49coH7uRCxzbtropxLSRkN1Vz02y7Nhv2bij4L7gJq3g8LG LT3r2whnz8VLuGBMdj/X/gBzNKVKeFQfmOyfDA7E2iPlDUBq7DU86u0tDa/zM3wp8y92 avGHWXYZZRsLwl+m4TTvLe/dh5ey7LESrovjOMysz7Z+++ZIw1CGfuUg6Qygm9Y+vk6i VMT43jPiRZi1mhZXlZnUnNgbjPb/QEupNwAuRv3h5NvSTCcPfMNvhMw6NM3zr/g/odQp /SG7EAO/L4RcM58YnFKyg491X5TJcATTC+QCf2LB2OiPaB+UYXo0lX/Uk5C8DAUkCmTb U1Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1QHJmkY2pbY+Zy8ExB5/6YC6RkqQEqUbDaVV9rfXAgY=; b=B7lxmDaLB7MeA80CzOjMLwD7RxstVRcZRQy7v3nRdUBpnh8iHoHArr874i71mM6yJz RC1L32s+5wGm0++qpvyevLG7vmw25dt/DWMDhmOprW67eLNk7NN1XtVaSGI4OgA7odmu CWtwXyzbX+LikWYWYhS0+MWh+Ml3Nes2YvOiA8HwyVH4GgY9lwadGlDrK3AEZvh12ucR +JcygjKK9qpnqoJcuh4WdhJB7ZhB8POKaQ9feFNYOZYKRWsJjrzkovRc8KS13zKvNqIc p4YNKemflkNmjwAv/7uKxfvMRbHB0+lpNfM4589H893gRdVMLWDc8rD5ZtkABv4AdyqS WwYA== X-Gm-Message-State: AIkVDXKgPZyQzUGsBZkKaBVlHkFd40yieHhsXgH6cPbC3mZj9sUhdQTQ548eb/Gtc2T1lEaJSYCPLxA9EGow505O X-Received: by 10.31.174.85 with SMTP id x82mr7420333vke.38.1484933086472; Fri, 20 Jan 2017 09:24:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.68.132 with HTTP; Fri, 20 Jan 2017 09:24:46 -0800 (PST) From: Igor Sapego Date: Fri, 20 Jan 2017 20:24:46 +0300 Message-ID: Subject: Abandon of the non-throwing version of C++ client API To: dev@ignite.apache.org, user Content-Type: multipart/alternative; boundary=001a1143fdb82287a0054689ed75 archived-at: Fri, 20 Jan 2017 17:24:59 -0000 --001a1143fdb82287a0054689ed75 Content-Type: text/plain; charset=UTF-8 Hi Igniters, I'm the guy who mostly contribute in C++ Ignite client and I need your advice. Mostly I'd like to hear from our users and those who are experienced in C++. Currently we have two versions of most API methods - the throwing one and the one that returns error through output argument. This was initially done because we were not sure which way of error-reporting is going to be preferred by our users. Now this approach bloats C++ API a lot and makes it harder to maintain and optimize code. I propose like to abandon and deprecate non-throwing version of API and only leave throwing version, but first I want to hear from you guys - what do you think? Does anyone use non-throwing version of the API? Maybe your toolchain does not support exceptions or are you disabling them on purpose? For those who prefer disabling exceptions I propose to introduce some macros like IGNITE_DISABLE_EXCEPTIONS and add some thread-local error-storing mechanism like ignite::GetLastError(). What do you guys think? Best Regards, Igor --001a1143fdb82287a0054689ed75 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Igniters,

I'm the guy= who mostly contribute in C++ Ignite client and I=C2=A0
need your= advice. Mostly I'd like to hear from our users and=C2=A0
tho= se who are experienced in C++. Currently we have two=C2=A0
versio= ns of most API methods - the throwing one and the=C2=A0
one that = returns error through output argument. This was initially
done be= cause we were not sure which way of error-reporting=C2=A0
is goin= g to be preferred by our users.

Now this approach = bloats C++ API a lot and makes it harder to
maintain and optimize= code. I propose like to abandon and deprecate
non-throwing versi= on of API and only leave throwing version,
but first I want to he= ar from you guys - what do you think? Does
anyone use non-throwin= g version of the API? Maybe your toolchain
does not support excep= tions or are you disabling them on purpose?

For th= ose who prefer disabling exceptions I propose to introduce
so= me macros like IGNITE_DISABLE_EXCEPTIONS and add
some thread-loca= l error-storing mechanism like ignite::GetLastError().

=
What do you guys think?

Best Regards,
Igor
=
--001a1143fdb82287a0054689ed75--