Live data from Hacker News

I found a bug in the .NET framework and fixed it by hand-altering the DLL

blog.nullspace.io

41–50 of 124 posts

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#41
post #9

Earlier quoted context omitted.

---Author here--- I should disclose that I actually work for Microsoft, and still chose the hard way. Fuck the police!

Out of curiosity, would you have been able to read the actual source if you wanted?

---Author here---

Yeah, I've never tried, but I have a copy of the actual Windows source tree, so I'm guessing the answer is yes.

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#42
post #24
post #20

Should have just used dotPeek instead of ilspy and writing IL code by hand. Recompiling would have certainly been easier. http://www.jetbrains.com/decompiler/

---Author here--- AWESOME TIP, stoked to try it out, thanks!

This kinda goes against a popular theory that Microsoft mine JetBrains for Visual Studio functionality improvement ideas (or more likely the blog author just doesn't work on VS or w/ the VS dev team all that much)

Awesome read btw!

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#43
post #36

Earlier quoted context omitted.

i'm glad someone who works at the company like you was able to enlighten us as to microsoft's internal practices oh wait

It's one of the things Nadella has talked about, and plans to address over time (the extreme compartmentalism of and fierce "not made here" attitude a lot of departments/groups within Microsoft have developed over the past few decades.

On the other hand, a defense of NIH: http://www.joelonsoftware.com/articles/fog0000000007.html

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#44
post #19
post #9

Earlier quoted context omitted.

---Author here--- I should disclose that I actually work for Microsoft, and still chose the hard way. Fuck the police!

For sure, those who complain about Microsoft not being open source are obviously trying to cover the fact that they are bad at reading assembly language.

Obviously?

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#45

Earlier quoted context omitted.

Microsoft already publishes the source code for the .net framework (and I think other projects like asp.net and mvc) at referencesource.microsoft.com

They do, but interestingly that particular assembly is not included. Or at least I couldn't find it there.

The namespace appears to have changed or something, I found it here:

http://referencesource.microsoft.com/#System.Core/Microsoft/...

Note: also MSFT employee, don't work on .NET though.

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#47
post #7

The real news here is that this is considered special. In most other languages, they'd have forked the source, fixed it, recompiled it for their own uses and submitted a pull request or patch. I'm a big .NET fan, but the fact that we have to jump through such hoops to find and fix a bug, and then still have near certainty that we're going to have to reapply the patch for many updates to come, well, that's just a bit…

1) You can file bug reports against .NET and they get fixed. (Typically very slowly, but that's enterprise vendors for you...) 2) The tools they used to find & fix the bug are all based on fully-specified, documented, and supported mechanisms: ildasm and ilasm are stock .NET tools, and ilspy is using Mono's IL decompiler/compiler library. 3) You can compile an app against your own builds of any of the standard librar…

Re "you can ship and version it yourself"... yeah, now that's where this gets onto shaky ground, isn't it... redistributing recompiled versions of .NET code? That's not really inside the licensing rules, is it.

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#48
post #36

Earlier quoted context omitted.

It's one of the things Nadella has talked about, and plans to address over time (the extreme compartmentalism of and fierce "not made here" attitude a lot of departments/groups within Microsoft have developed over the past few decades.

On the other hand, a defense of NIH: http://www.joelonsoftware.com/articles/fog0000000007.html

There are ways to get rid of NIH without losing code quality, testings, responsibility, etc. Nadella in particular is talking about encouraging collaboration between departments.

PS: While the linked article is very relevant here, I'm getting tired of people always linking to Joel's blog -- he's not the definitive software spokesperson; has strong opinions which have been shaped by years at Microsoft - and a lot of his opinions are boxed into those views.

Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL

#49
post #7

The real news here is that this is considered special. In most other languages, they'd have forked the source, fixed it, recompiled it for their own uses and submitted a pull request or patch. I'm a big .NET fan, but the fact that we have to jump through such hoops to find and fix a bug, and then still have near certainty that we're going to have to reapply the patch for many updates to come, well, that's just a bit…

1) You can file bug reports against .NET and they get fixed. (Typically very slowly, but that's enterprise vendors for you...) 2) The tools they used to find & fix the bug are all based on fully-specified, documented, and supported mechanisms: ildasm and ilasm are stock .NET tools, and ilspy is using Mono's IL decompiler/compiler library. 3) You can compile an app against your own builds of any of the standard librar…

I completely agree with everything you said. Exactly how are we disagreeing?

My point is that MS should open source .NET. With a good governance process (super dictatorial no problem! Just be open so we can chip in). It's good for them and for us .NET devs. There's nothing to lose. Like you write, there's a lot of things great about .NET. But being closed source is a disadvantage.

Post reply on HN