From dev-return-2534-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Fri Mar 23 20:21:43 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id EC87618067E for ; Fri, 23 Mar 2018 20:21:42 +0100 (CET) Received: (qmail 45375 invoked by uid 500); 23 Mar 2018 19:21:41 -0000 Mailing-List: contact dev-help@mxnet.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mxnet.incubator.apache.org Delivered-To: mailing list dev@mxnet.incubator.apache.org Received: (qmail 45120 invoked by uid 99); 23 Mar 2018 19:21:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2018 19:21:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DADE0C018B for ; Fri, 23 Mar 2018 19:21:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.899 X-Spam-Level: * X-Spam-Status: No, score=1.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cs.washington.edu Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Z8Kq3Xly_02P for ; Fri, 23 Mar 2018 19:21:39 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1F46E60D42 for ; Fri, 23 Mar 2018 19:21:39 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id e79so16391627ioi.7 for ; Fri, 23 Mar 2018 12:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.washington.edu; s=goo201206; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=U9Ik31wBb+QCxzjlFJYnPevnuZBqyvSIr2bGKxJGt4Y=; b=g5Lg9TVo0JeYH5RxzFy/0ZGvrs1EXmCAEwwWVRdWJr7Y0FTaSyMi+sdlHaTECt/0Jm HyxQOYiDPiqIDuwxXmoEcyIH0V3qRnCH1OaK3GbLVbWfbcy3bxUB4Tw/lmCwg5ZfhWw+ 6s6KuFsx4bR+pofgpeE+YSqLfrSKFEf9mZfSQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=U9Ik31wBb+QCxzjlFJYnPevnuZBqyvSIr2bGKxJGt4Y=; b=ROGrKQVLnUp5VXZCZ6RCvXPGqJFqEPV5HpGCmP9NMz7WFPnr5LdTgCJ1QXA3HUnco7 QuCzJP3KyYYn2ALi6Z9QyunvxGiN93RMUNqCpkSyak2a/Fyq7L1YjzzeHhtzjuknhk5l EXQh6Nw6k72bcKrgBiR0zK4ALtHQ5Ul/VbQaVqljQPkVNrqxjMeIEHRwrAkg8RFI59lM byGaLKvF5T2ZshWEf3Sg0JUr4MHovQku9OPruTS07Q7RenFY/oBVxZIEkYtAJDle6rX+ 8t6Kd4X9uC+hYmOGRPd63eKq+EXqYukVf7+TiBgGV5KWeYJmbC/qS3Btej/7gnW/3Jne 3T5g== X-Gm-Message-State: AElRT7EtPFQdV78+Y1Mt95fBcyIFDQ4NW/o5h2W7IFDvy6pnzApLmRYp 8JpJ3WJhE9S/Vyp+DpbFJSOuKXo6+ij8msY+PlQ= X-Google-Smtp-Source: AG47ELtc/pWRQ6lK4akAZvZlPn8bdO4a+0iMxfj5Bq82iK6qa5lH1n6P1Zt7K6rnKyVgrxtz20osK1LF4w/ZhWvuHv8= X-Received: by 10.107.129.92 with SMTP id c89mr30512722iod.218.1521832898495; Fri, 23 Mar 2018 12:21:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tianqi Chen Date: Fri, 23 Mar 2018 19:21:28 +0000 Message-ID: Subject: Re: MXNet C++ package improvements To: dev@mxnet.incubator.apache.org, dev@mxnet.apache.org Content-Type: multipart/alternative; boundary="001a113ece8452b50005681955b3" --001a113ece8452b50005681955b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable One quote that I really liked and related to this topic =E2=80=9Cthe best d= esign is achieved not when you have nothing to add, but when there is nothing to be taken away=E2=80=9D. Most of the stable api decision we put into a project will become a technical debt, and a minimum clean design with equally powerful api adds more value than a bigger one On Fri, Mar 23, 2018 at 12:11 PM Tianqi Chen wrote: > +1 for hour-glass CAPI design. It is there for very good reason. For > example, if you are windows user an want to build your app using mingw, > current way works. While the raw c++ approach won=E2=80=99t due to the fa= ct cuda is > only supported by MSVC. > > The argument that c++ api itself is more elegant and fast is not > necessarily valid. Always remember Amdahl=E2=80=99s Law, the additional o= verhead > saved by directly using are not the bottleneck. > > The effectiveness of core engine, on the other hand will be on the > critical path, and we rely on constantly improving this which can mean > break backward compatibility if C++ api layer is exposed > > Tianqi > > > On Fri, Mar 23, 2018 at 11:45 AM Eric Xie wrote: > >> I see several issues with the design. I've commented in the document but >> for record here: >> >> 1. cpp-package is almost only used for inference. since you are planning >> a rewrite that's almost certainly non-backward-compatible, we might as w= ell >> create a new interface that's inference only. >> >> 2. The hour-glass CAPI design should be kept. >> >> On 2018/03/14 18:07:49, Anton Chernov wrote: >> > Dear MxNet Community, >> > >> > please find here >> > < >> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=3D75976= 112> >> the >> > design document for the proposed MXNet C++ package improvements for >> review >> > and consideration. >> > >> > Feedback is welcome and highly appreciated. Thank you! >> > >> > BR >> > Anton >> > >> > --001a113ece8452b50005681955b3--