220 24886 <20160302231527.GA30046@noemi.bahnhof.se> article
Path: news.gmane.org!not-for-mail
From: Magnus Fromreide <magfr@lysator.liu.se>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Modules are hard for build tools
Date: Thu, 3 Mar 2016 00:15:27 +0100
Lines: 37
Approved: news@gmane.org
Message-ID: <20160302231527.GA30046@noemi.bahnhof.se>
References: <a9ff0d91-dea2-49f1-8285-072732360d60@isocpp.org>
 <CAOfiQqnM09zTWXR_0NDj3f=Q1mqoO66hNeg5SPEPU9MX0eM_Ng@mail.gmail.com>
 <d30abb01-3e49-424a-a410-556b60b1b833@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
X-Trace: ger.gmane.org 1456960542 25038 80.91.229.3 (2 Mar 2016 23:15:42 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 2 Mar 2016 23:15:42 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDELLREETMBRBEXI3W3AKGQEKBNWAHQ@isocpp.org Thu Mar 03 00:15:34 2016
Return-path: <std-proposals+bncBDELLREETMBRBEXI3W3AKGQEKBNWAHQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f71.google.com ([74.125.82.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDELLREETMBRBEXI3W3AKGQEKBNWAHQ@isocpp.org>)
	id 1abFzP-0005iz-Vk
	for gclcip-std-proposals@m.gmane.org; Thu, 03 Mar 2016 00:15:32 +0100
Original-Received: by mail-wm0-f71.google.com with SMTP id u13sf2807833wmd.2
        for <gclcip-std-proposals@m.gmane.org>; Wed, 02 Mar 2016 15:15:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:subject:message-id:mail-followup-to:references
         :mime-version:content-disposition:in-reply-to:user-agent
         :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=24pEQ0jUirmzOIokm/tpWODgR4b9YnhZLt9Y2vB6L3I=;
        b=hSG1YgKRZ1taYon7L5uTablXsq9MwpilbfN93JvlfXoZNH85a85L59bx1X2a6gq1Mm
         1lAHHzRLRKKdtRBazE0M8z52Dr18BFg87T9/TRr5dSeAvfEiH1CselwifWq8cQ1dCV1d
         deVJ6GgQ8CM10JfnXG6dLj55gsGekKlMIbh0jC5Bh8adP2rVJMEKwd6lPilPhdv8eCzS
         hH+vg97My+3b0peNSIfsoIMa3PgTxdiwiqZ71kGkWlpLVba8+UG0g9quLDmMbigj8w1X
         Xy9HhD3aU2gpBlQT4aMrpmlITtlMq2ydGXFWhjd5Q2Q1/Ff3K6eXBYMvppR92qt 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to
         :references:mime-version:content-disposition:in-reply-to:user-agent
         :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=24pEQ0jUirmzOIokm/tpWODgR4b9YnhZLt9Y2vB6L3I=;
        b=iqun4Y1iN+xMlg/02gT7Kh1j4EUuBRyoYky1tWZ0yIzNz1TCjRxs+w7t0UV+89mTGb
         WMozJtQHMlAH1wiXNhjDajdAkfB72oV3PJs3q8ncbUHXgXM03KxbI/Lpz5MDfK72UU3s
         yvmMF6Sa8u52/hjMKjDixa4r2nggmv9Z6c02BjNY0d5MzUMT7dw/m+iJ6geb0wSRHXaW
         Ry1dMjhrdNDjzGLGbgKIE33VC7K8679OTbF71R1wOtpNAWiGg+FHgZbWBLez9UQM1OfR
         Tn7fsxNb1wZkvlneNy9q7OpuoPgJ7aulbHogDKLx94uC/Bc0T07q8SBfy+z 
X-Gm-Message-State: AD7BkJKS+bODPvZOuBpsNH/L5hS7aPZV1ztb9Y9F168Fe/GgUMizWpMJ4Hat7zRwf64Kiw==
X-Received: by 10.112.162.101 with SMTP id xz5mr3435133lbb.20.1456960531431;
        Wed, 02 Mar 2016 15:15:31 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.218.20 with SMTP id r20ls851450lfg.61.gmail; Wed, 02 Mar
 2016 15:15:29 -0800 (PST)
X-Received: by 10.25.40.210 with SMTP id o201mr8912385lfo.44.1456960529504;
        Wed, 02 Mar 2016 15:15:29 -0800 (PST)
Original-Received: from mail.lysator.liu.se (mail.lysator.liu.se. [2001:6b0:17:f0a0::3])
        by mx.google.com with ESMTPS id m136si1899155lfe.39.2016.03.02.15.15.29
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 02 Mar 2016 15:15:29 -0800 (PST)
Received-SPF: pass (google.com: domain of magfr@lysator.liu.se designates 2001:6b0:17:f0a0::3 as permitted sender) client-ip=2001:6b0:17:f0a0::3;
Original-Received: from mail.lysator.liu.se (localhost [127.0.0.1])
	by mail.lysator.liu.se (Postfix) with ESMTP id 1EFC440004
	for <std-proposals@isocpp.org>; Thu,  3 Mar 2016 00:15:29 +0100 (CET)
Original-Received: from noemi.bahnhof.se (h-176-10-249-241.na.cust.bahnhof.se [176.10.249.241])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by mail.lysator.liu.se (Postfix) with ESMTPSA id F0ECE40002
	for <std-proposals@isocpp.org>; Thu,  3 Mar 2016 00:15:28 +0100 (CET)
Mail-Followup-To: std-proposals@isocpp.org
Content-Disposition: inline
In-Reply-To: <d30abb01-3e49-424a-a410-556b60b1b833@isocpp.org>
User-Agent: Mutt/1.5.24 (2015-08-30)
X-Virus-Scanned: ClamAV using ClamSMTP
X-Original-Sender: magfr@lysator.liu.se
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of magfr@lysator.liu.se designates 2001:6b0:17:f0a0::3 as permitted
 sender) smtp.mailfrom=magfr@lysator.liu.se
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:24886
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24886>

On Sun, Feb 28, 2016 at 05:41:06PM -0800, Sean Middleditch wrote:
> 
> That said, your option 3 is the obvious solution. It's roughly what most 
> other modern languages with module systems do, and C++ implementations and 
> the build tools we use are going to have to modernize to adopt to a world 
> where the compiler plays a more integral role in the build chain than it 
> did before.
>  

How does this handle cases where the .cpp file is an intermediary on the
build path and the real source file is some .yy or .ll or something file
that have been preprocessed by some other tool?

/MF

> 
> >
> > 3) You ask your compiler to implicitly build (and cache) module 
> > interfaces on demand. This requires that your compiler has some way to 
> > map from an imported module name to the relevant interface file(s). 
> > That could happen via some implementation-defined means (such as 
> > Clang's module map files) or by making the module names directly 
> > correspond to module interface files (as suggested in 
> > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0273r0.pdf). 
> 
> -- 
> 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.
> To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/d30abb01-3e49-424a-a410-556b60b1b833%40isocpp.org.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/20160302231527.GA30046%40noemi.bahnhof.se.

.
