[Tooling] std::compile

Bjarne Stroustrup bjarne at stroustrup.com
Mon Sep 17 22:35:38 CEST 2018



On 9/17/2018 4:31 PM, Tony V E wrote:
> Also, if you give me a function called std::compile(), that compiles 
> code, it seems I can now write a compiler?
>
> int main(int argc, char ** argv)
> {
>     return std::compile(argc, argv);
> }
>
> Wow, that was easy.

:-)

> Can the paper explain what I'm misunderstanding? (Or maybe it does 
> explain, but I missed it)
>
>
> On Mon, Sep 17, 2018 at 4:26 PM Tony V E <tvaneerd at gmail.com 
> <mailto:tvaneerd at gmail.com>> wrote:
>
>     Yes, examples that use the function.
>
>     Any proposal for a function should include examples calling that
>     function.
>
>     I see that this isn't a normal function, but it would still help.
>     Maybe even more.
>
>
>     On Mon, Sep 17, 2018 at 4:22 PM Rene Rivera <grafikrobot at gmail.com
>     <mailto:grafikrobot at gmail.com>> wrote:
>
>         What specific example are you looking for? There are various
>         use cases
>         <https://rawgit.com/bfgroup/std_cpp/master/doc/std_compile_Dxxxx_R0.html#_use_cases>
>         mentioned. Some of those have specific examples. Maybe you
>         mean an example program that uses the function?
>
>         On Mon, Sep 17, 2018 at 3:17 PM Tony V E <tvaneerd at gmail.com
>         <mailto:tvaneerd at gmail.com>> wrote:
>
>             Could you include an example (more than one, actually) in
>             your paper?
>
>             Can (practically) all papers please include examples,
>             everyone?
>
>             On Mon, Sep 17, 2018 at 10:06 AM Rene Rivera
>             <grafikrobot at gmail.com <mailto:grafikrobot at gmail.com>> wrote:
>
>                 This is the second of two papers I would like SG15 to
>                 consider for the next meeting.
>
>                 <https://rawgit.com/bfgroup/std_cpp/master/doc/std_compile_Dxxxx_R0.html>
>
>                 This paper is a concrete proposal for one aspect of
>                 the Package Ecosystem Plan. It proposes to add an
>                 interface for transforming C++ source into usable
>                 executable programs. As such it aims to provide a
>                 common definition of compiler frontend tool options
>                 for transforming source code to translation units and
>                 linking those into executable programs.
>
>                 There is also a sample vendor specification to go
>                 along with it:
>
>                 <https://rawgit.com/bfgroup/std_cpp/master/doc/std_compile_vendor_gcc_SDxx.html>
>
>                 There is a growing implementation (it grows as I add
>                 options to the paper) here:
>
>                 <https://github.com/bfgroup/std_cpp>
>
>                 I am looking for feedback, and collaboration, to hone
>                 the paper and implementation ahead of the meeting.
>
>                 Note: I was hoping to post this with an actual paper
>                 number. But Hal hasn't been responding to emails this
>                 past week.
>
>
>                 -- 
>                 -- Rene Rivera
>                 -- Grafik - Don't Assume Anything
>                 -- Robot Dreams - http://robot-dreams.net
>                 <http://robot-dreams.net/>
>
>                 _______________________________________________
>                 Tooling mailing list
>                 Tooling at isocpp.open-std.org
>                 <mailto:Tooling at isocpp.open-std.org>
>                 http://www.open-std.org/mailman/listinfo/tooling
>
>
>
>             -- 
>             Be seeing you,
>             Tony
>             _______________________________________________
>             Tooling mailing list
>             Tooling at isocpp.open-std.org
>             <mailto:Tooling at isocpp.open-std.org>
>             http://www.open-std.org/mailman/listinfo/tooling
>
>
>
>         -- 
>         -- Rene Rivera
>         -- Grafik - Don't Assume Anything
>         -- Robot Dreams - http://robot-dreams.net
>         <http://robot-dreams.net/>
>
>         _______________________________________________
>         Tooling mailing list
>         Tooling at isocpp.open-std.org <mailto:Tooling at isocpp.open-std.org>
>         http://www.open-std.org/mailman/listinfo/tooling
>
>
>
>     -- 
>     Be seeing you,
>     Tony
>
>
>
> -- 
> Be seeing you,
> Tony
>
>
> _______________________________________________
> Tooling mailing list
> Tooling at isocpp.open-std.org
> http://www.open-std.org/mailman/listinfo/tooling

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/tooling/attachments/20180917/2bcbbbed/attachment-0001.html 


More information about the Tooling mailing list