Date: Wed, 11 Apr 2018 15:16:35 +0000
Any volunteers for a first pass? Preferably someone with some experience in this area? (hint hint Boris Kolpackov)
The other person I’m thinking of that will probably have valuable (and strong) opinions on the matter is John Lakos, seeing as he has literally written a book on this kind of topic… though not with modules as a backing technology.
From: tooling-bounces_at_[hidden] <tooling-bounces_at_[hidden]> On Behalf Of Titus Winters
Sent: Wednesday, April 11, 2018 9:07 AM
To: WG21 Tooling Study Group SG15 <tooling_at_[hidden]>
Subject: Re: [Tooling] Request for modules recommendations
Yeah, those seem like great questions to be asking. Thanks, Ben.
On Wed, Apr 11, 2018 at 12:58 AM Boris Kolpackov <boris_at_[hidden]<mailto:boris_at_[hidden]>> wrote:
Ben Craig <ben.craig_at_[hidden]<mailto:ben.craig_at_[hidden]>> writes:
> * What granularity should I provide for my modules?
> ** Do I translate headers to modules one-to-one?
> ** Do I just have one big module for my entire library?
> ** Something in between?
>
> * What file extension(s) should I use for module files?
>
> * How should we map module names to file names? Just by replacing
> dots with slashes?
>
> * How should tools find modules?
>
> I know just enough about modules to ask subtly wrong questions, [...]
No, these are spot on. We had to answer[1] all of these (and some more)
while adding support for modules in build2.
The problem of mapping module names to file names is especially tricky:
1. We don't want it to become tedious like specifying the mapping for
each module explicitly would be.
2. We want decent performance from the build system so parsing each
module interface to find its name is probably not an option.
3. We want the file names to fit the project's overall scheme (some
might want FooBar, others foo_bar, I like foo-bar and you seem
to prefer foo/bar).
[1] https://build2.org/build2/doc/build2-build-system-manual.xhtml#cxx-modules<https://urldefense.proofpoint.com/v2/url?u=https-3A__build2.org_build2_doc_build2-2Dbuild-2Dsystem-2Dmanual.xhtml-23cxx-2Dmodules&d=DwMFaQ&c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&r=y8mub81SfUi-UCZRX0Vl1g&m=cAIMNLCbJW_NgXfrRG9r9fGktJq3Meju41ylEMm8pCs&s=FnKVt6XsCvcPL5uV4HPJsApSuYNapIqeYQ9-qVoRV1A&e=>
Boris
_______________________________________________
Tooling mailing list
Tooling_at_[hidden]<mailto:Tooling_at_[hidden]en-std.org>
http://www.open-std.org/mailman/listinfo/tooling<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.open-2Dstd.org_mailman_listinfo_tooling&d=DwMFaQ&c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&r=y8mub81SfUi-UCZRX0Vl1g&m=cAIMNLCbJW_NgXfrRG9r9fGktJq3Meju41ylEMm8pCs&s=JUXAev4FmbOCKuQhkIN-oi7eOQWlbLBpaFzhFjMBH8g&e=>
The other person I’m thinking of that will probably have valuable (and strong) opinions on the matter is John Lakos, seeing as he has literally written a book on this kind of topic… though not with modules as a backing technology.
From: tooling-bounces_at_[hidden] <tooling-bounces_at_[hidden]> On Behalf Of Titus Winters
Sent: Wednesday, April 11, 2018 9:07 AM
To: WG21 Tooling Study Group SG15 <tooling_at_[hidden]>
Subject: Re: [Tooling] Request for modules recommendations
Yeah, those seem like great questions to be asking. Thanks, Ben.
On Wed, Apr 11, 2018 at 12:58 AM Boris Kolpackov <boris_at_[hidden]<mailto:boris_at_[hidden]>> wrote:
Ben Craig <ben.craig_at_[hidden]<mailto:ben.craig_at_[hidden]>> writes:
> * What granularity should I provide for my modules?
> ** Do I translate headers to modules one-to-one?
> ** Do I just have one big module for my entire library?
> ** Something in between?
>
> * What file extension(s) should I use for module files?
>
> * How should we map module names to file names? Just by replacing
> dots with slashes?
>
> * How should tools find modules?
>
> I know just enough about modules to ask subtly wrong questions, [...]
No, these are spot on. We had to answer[1] all of these (and some more)
while adding support for modules in build2.
The problem of mapping module names to file names is especially tricky:
1. We don't want it to become tedious like specifying the mapping for
each module explicitly would be.
2. We want decent performance from the build system so parsing each
module interface to find its name is probably not an option.
3. We want the file names to fit the project's overall scheme (some
might want FooBar, others foo_bar, I like foo-bar and you seem
to prefer foo/bar).
[1] https://build2.org/build2/doc/build2-build-system-manual.xhtml#cxx-modules<https://urldefense.proofpoint.com/v2/url?u=https-3A__build2.org_build2_doc_build2-2Dbuild-2Dsystem-2Dmanual.xhtml-23cxx-2Dmodules&d=DwMFaQ&c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&r=y8mub81SfUi-UCZRX0Vl1g&m=cAIMNLCbJW_NgXfrRG9r9fGktJq3Meju41ylEMm8pCs&s=FnKVt6XsCvcPL5uV4HPJsApSuYNapIqeYQ9-qVoRV1A&e=>
Boris
_______________________________________________
Tooling mailing list
Tooling_at_[hidden]<mailto:Tooling_at_[hidden]en-std.org>
http://www.open-std.org/mailman/listinfo/tooling<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.open-2Dstd.org_mailman_listinfo_tooling&d=DwMFaQ&c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&r=y8mub81SfUi-UCZRX0Vl1g&m=cAIMNLCbJW_NgXfrRG9r9fGktJq3Meju41ylEMm8pCs&s=JUXAev4FmbOCKuQhkIN-oi7eOQWlbLBpaFzhFjMBH8g&e=>
Received on 2018-04-11 17:28:30