Live data from Hacker News

CoreCLR is now open source

blogs.msdn.com

91–100 of 347 posts

Re: CoreCLR is now open source

#91
post #7

Quick link to what I think is the most interesting class in the CLR: https://github.com/dotnet/coreclr/blob/master/src/mscorlib/s...

That does answer an unanswered question I had on SO about string hashing. If strings are immutable, why isn't the hash code memoized? Seems like it would make HashSet/Dictionary lookups using string keys much faster.

Presumably because it's not worth the memory hit to store the hash.

Re: CoreCLR is now open source

#93
post #48

I would be curious to see the effects of completely open-sourcing Windows. Businesses would continue to use it, because it's Microsoft and they want enterprise support. I think it would get even more love than it already does from the development community. Piracy of Windows is already rampant, so they're not really in a worse position from that (plus I think that most people who can pay for Windows do so already). F…

Who is going to support 20 million lines of code other than Microsoft employees as amateurs bungle their way through thirty years of patches for backward compatibility wrapped around stupid and clever things OEM's and third party developers did to get their code to work? It's not like Linux because there isn't a team of experienced volunteers already working on the code base and the Windows code base contains a lot f…

No one "supports" it. People will improve the bits that bother them. In the aggregate, these activities amount to more than you could ever pay to have done.

The beauty of open source model is it gives the desperately motivated the means to fix their problems in a way that benefits everyone.

Re: CoreCLR is now open source

#95
post #7

Quick link to what I think is the most interesting class in the CLR: https://github.com/dotnet/coreclr/blob/master/src/mscorlib/s...

Since I wrote a string hash code function recently[1], I was interested to see what they use. Like many, they're using[2] the venerable djb hash. That sent me down a rabbit hole where I discovered that Bernstein was 19 when he wrote about it. Wow.

[1]: https://github.com/munificent/wren/blob/master/src/wren_valu...

[2]: https://github.com/dotnet/coreclr/blob/master/src/mscorlib/s...

Re: CoreCLR is now open source

#96

Earlier quoted context omitted.

That does answer an unanswered question I had on SO about string hashing. If strings are immutable, why isn't the hash code memoized? Seems like it would make HashSet/Dictionary lookups using string keys much faster.

Presumably because it's not worth the memory hit to store the hash.

That was my assumption, too. They do memoize the length, but I'm sure those bytes add up, having run into OutOfMemoryExceptions building huge amounts of strings before.

Re: CoreCLR is now open source

#97
post #25

Earlier quoted context omitted.

Could/Does Visual Studio run in Linux?

Funny thing is that internal to Microsoft, most devs don't use Visual Studio as an IDE. Maybe as an editor or a debugger, but there are a lot of build systems out within Microsoft and most of them don't plug into Visual Studio. IMO, open sourcing Visual Studio itself is not all that interesting vs. open sourcing the .NET platform.

I work at Microsoft and everything is done through Visual Studio (C#, C++, Javascript, X++, etc.). Where is VS not used inside Microsoft?

Re: CoreCLR is now open source

#98
post #48

I would be curious to see the effects of completely open-sourcing Windows. Businesses would continue to use it, because it's Microsoft and they want enterprise support. I think it would get even more love than it already does from the development community. Piracy of Windows is already rampant, so they're not really in a worse position from that (plus I think that most people who can pay for Windows do so already). F…

It's certainly not "official" but we already have Wine and Mono. I understand that they don't promise write once run anywhere but the support is pretty good. For awhile it was one of the only ways to get Netflix working on Linux based platforms.

Re: CoreCLR is now open source

#100
post #25

Earlier quoted context omitted.

Could/Does Visual Studio run in Linux?

Funny thing is that internal to Microsoft, most devs don't use Visual Studio as an IDE. Maybe as an editor or a debugger, but there are a lot of build systems out within Microsoft and most of them don't plug into Visual Studio. IMO, open sourcing Visual Studio itself is not all that interesting vs. open sourcing the .NET platform.

umm, source?
Post reply on HN