5 ms·
The MSVC library has always been "source available" with Visual Studio, but I guess MS thought that they're very unlikely to actually make a profit from it[1] s
by userbinator 7y ago
The MSVC library has always been "source available" with Visual Studio, but I guess MS thought that they're very unlikely to actually make a profit from it[1] so they're giving it a permissive license instead.
[1] The "new MS" seems to delight a lot of people, but IMHO it's not all great; I'd much rather they not be "shedding" all this open-source stuff and kept selling software, if it meant they wouldn't stuff telemetry in everything they touch.
- muststopmyths 7y agoActually, the c++ lib has never been available to my recollection (only the base CRT). And they don't even ship the CRT with the compiler any more.
- intern4tional 7y agoCorrect, this is a net new release. Right now it's a little rough with lots of pieces missing, but once it's all out there it should have benefit. An example would be if any performance enhancements can be ported to other C++ implementations.
- puetzk 7y ago> And they don't even ship the CRT with the compiler any more Just in case you/any other reader didn't know: That's just because they don't consider the ucrt compiler-version-specific anymore, it's distribution (binaries and source) moved into the windows SDK, E.g. Windows Kits\10\Source\10.0.17763.0\ucrt. The vcruntime is still with MSVC. But this source never included the STL.
- muststopmyths 7y agoYou are correct. I'm using an obsolete name for the library that contains the dang functions I want to debug :) I honestly don't understand the rationale for putting it in the Windows SDK. It's not like any other compiler is going to use it and you could just update it with VC patches if it changed. The underlying OS API is even less likely to change anyway (UCRT being the C99 lib) so tying it to the Windows SDK is puzzling. I'll concede I'm probably missing some obvious gotcha.
- userbinator 7y agoBut this source never included the STL. You mean things like vector, map, etc. ? The source for those is already in the header files.
- Rusky 7y agoThey mean the entire C++ standard library. There's plenty of non-header code in there.
- StephanTLavavej 7y agoThe separately compiled parts of the C++ Standard Library have shipped in VS installations for many years (look for xrngdev.cpp in a subdirectory typically named crt/src, that should be distinctive enough). This was intended for debugging purposes, covered by the VS EULA as always. These parts weren’t standalone-buildable and we occasionally forgot to ship a file or two, but we always tried to make it all source-readable. Now, being open source enables much more.
- vedantroy 7y agoThat last statement was very bold. Do you think there is a direct link between open-sourcing this library and increased telemetry? What about VSCode and increased telemetry?
- UserIsUnused 7y agoI think the intent was not stating a connection but just a old vs new pros and cons.