V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
c0011
V2EX  ›  C++

MSVC's STL 开源的意义是什么?

  •  
  •   c0011 · Sep 17, 2019 · 6045 views
    This topic created in 2427 days ago, the information mentioned may be changed or developed.
    8 replies    2019-09-18 09:53:37 +08:00
    ysc3839
        1
    ysc3839  
       Sep 17, 2019
    装了 MSVC 之后会带上这些代码的,我认为这次“开源”的意义在于授权协议以及接受开源社区的贡献。
    by73
        2
    by73  
       Sep 17, 2019
    你不是都贴了链接嘛:

    > Q: Why are you doing this?
    >
    > A: There are several reasons. Working on the STL in GitHub will allow our customers to follow our development as it happens, try out our latest changes, and help improve our pull requests by reviewing them. As C++ Standardization accelerates, with more large features being voted in every year, we believe that accepting major features as open source contributions will be important. (For example, C++20’s chrono and format libraries are potential candidates.) We also want to contribute back to the C++ community by making it possible to take our implementations of major features. (For example, C++17’s charconv.)

    简而言之就是微软想摸鱼了(雾),想让大家提交 pull requests。
    zhuangzhuang1988
        3
    zhuangzhuang1988  
       Sep 17, 2019
    给华为施加压力?
    kuroismith
        4
    kuroismith  
       Sep 17, 2019
    @zhuangzhuang1988 stl 作为模板库的代码本来就是公开的...
    kqz901002
        5
    kqz901002  
       Sep 17, 2019
    @kuroismith #4 公开!=开源
    66450146
        6
    66450146  
       Sep 17, 2019
    @kuroismith 虽然源代码都能看到,但是 MSVC 的许可证不允许。如果在其他地方使用这套代码的话是侵犯 MSVC 的许可,这事就可大可小了,上规模的公司都会远离的,甚至禁止员工阅读。现在许可证允许了这些行为就可以光明正大阅读和提交修改了,当然也要在许可证允许的范围内

    用 LLVM Apache 2.0 也是很重要的一部分,基本上排除了其他公司商业应用的障碍
    Mithril
        7
    Mithril  
       Sep 18, 2019
    估计是觉得 C++标准每年新出的东西太多实在做不完了,几个 STL 库大家互相帮助一下算了。
    新出的功能一家做一个,互相一抄就全有了。
    开源以后 License 都改成一样的就完全没问题了。
    wangkai0351
        8
    wangkai0351  
       Sep 18, 2019
    @Mithril STL 没区别,剩下全靠编译器优化??这比的多累啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4686 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    ♥ Do have faith in what you're doing.