Slashdot Mirror


Microsoft Finally Open Sources Windows 7 Tool

Jan writes "Microsoft has open sourced the Windows 7 USB/DVD Download Tool by releasing it under the GPLv2 license. The code is now available on CodePlex, Microsoft's Open Source software project hosting repository, over at wudt.codeplex.com. The actual installer for the tool is now again available for download at the Microsoft Store (2.59MB). (Microsoft previously took responsiblity for the violation.)"

63 of 284 comments (clear)

  1. Good. by dsavi · · Score: 4, Insightful

    It's good that Microsoft took responsibility for this, kudos to them.

    1. Re:Good. by Akido37 · · Score: 5, Insightful

      I suppose it's a testament to the strength of the GPL in the court system. If Microsoft thought for a minute that the courts wouldn't uphold the GPL, they wouldn't have bothered to open source anything.

    2. Re:Good. by nametaken · · Score: 3, Insightful

      It is good, but I'm uncomfortable with how this whole thing unfolded. It reads like, "Woot... caught em! Engage the GPL virus! F-U Microsoft!" As if a battle was won and they're over there shaking their heads about having lost something.

      Open Source is not supposed to be a punishment you get slapped with. It's about availability, encouraging development and creating better software. Let's not jeer too much, eh?

    3. Re:Good. by nacturation · · Score: 4, Insightful

      Because heaven forbid the alternative: that they were informed they did something wrong and then voluntarily did the right thing, regardless of how enforceable the license is.

      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    4. Re:Good. by canajin56 · · Score: 5, Interesting

      What legal principle allows a judge to void somebody's copyright because he doesn't like the terms of their license? If Microsoft successfully argued that they used GPL code because they thought the license was invalid, they just successfully argued that they committed willful copyright infringement by using code they, in good faith, believed they did not have a license to use.

      --
      ASCII stupid question, get a stupid ANSI
    5. Re:Good. by dsavi · · Score: 4, Insightful

      I'm not sure that it unfolded like that, unless you're talking about the comments on Slashdot. You would think that most people here would have grown out of the "M$" phase.

    6. Re:Good. by sunderland56 · · Score: 5, Insightful

      Or the other alternative: the marketing department decided that releasing this trivial small amount of code would make Microsoft look better to the open source community, whereas fighting the matter in court would make them look bad.

    7. Re:Good. by Locutus · · Score: 2, Insightful

      mod this funny people, I LOL'ed on this one.

      'Microsoft voluntarily do the right thing', ha. It probably had to go through 12 committee layers just to make sure it can't be used on any OS other than Windows and must not benefit anyone who does cross platform development. Because of the GPL, they probably had to run it through another 12 committee layers to clean up the code. This took loads more expense and effort than they probably wanted to put into it and you can thank the GPL for that. It's probably one reason why they really really dislike the GPL. Their code review and licensing policies are so bad that stuff like what happened with this tool costs them bucket loads of time, effort, and money and then they have to walk out into public and post their code. I can see Microsoft's executive team spitting every time they here "GPL" as if someone from Dog River said "Wullerton"

      LoB

      --
      "Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
    8. Re:Good. by DaveV1.0 · · Score: 2, Funny

      You stole my line!

      --
      There is no "-1 offended" or "-1 you don't agree with me" mod options for a reason.
    9. Re:Good. by Jah-Wren+Ryel · · Score: 3, Interesting

      Because heaven forbid the alternative: that they were informed they did something wrong and then voluntarily did the right thing, regardless of how enforceable the license is.

      [citation needed]

      No really, is there a citeable example of MS ever having acted like that before?

      I suppose there must be, but all I can think of is stuff like Stac which took losing a lawsuit to convince MS to do "the right thing."

      --
      When information is power, privacy is freedom.
    10. Re:Good. by Sponge+Bath · · Score: 2, Funny

      He reproduced that line lawfully under the SML (Slashdot Meme License).

    11. Re:Good. by quadrox · · Score: 5, Insightful

      Yes, it would really be nice if that were the case.

      I have long held a more or less neutral opinion on Microsoft for a very long time, until they pulled all those OOXML stunts. Since then I have become aware of more and more of their evil scheming to ruthlessly achieve their goals that I simply cannot believe in a good Microsoft any longer. I'm not even out there looking for stuff about Microsoft, I just happen upon it from time to time and each time my opinion is confirmed more and more.

      There may well be individuals in Microsoft who want to do the right thing - sadly none of them seem to be able to exert any power whatsoever. And while you might argue with me that this incident proves me wrong, from past experience I must still believe it more likely that Microsoft is acting out of pure self-interest.

      Microsoft needs to be boycotted at all costs. This company can not be allowed to continue to exist while one evil scheme after another is revealed with nobody doing anything about it.

    12. Re:Good. by insertwackynamehere · · Score: 2, Insightful

      A company is not a conscious entity and acts of capitalism are not "evil" on their own. You have witnessed Microsoft make money in a society based around the freedom to make and lose money. If Microsoft sold weapons to a foreign country that they knew were going to be used to kill innocent people, because it paid well, then the people who approved such deals would be evil, or at least morally wrong. Microsoft furthering it's company's agenda in the global marketplace is capitalism. And open source is included in the global marketplace always, not just when convenient. You can't run away crying because you played with the big kids and got hurt.

    13. Re:Good. by jpmorgan · · Score: 2, Insightful

      All I can think of is Stac vs. Microsoft was over 15 years ago.

    14. Re:Good. by shaitand · · Score: 2, Insightful

      "A company is not a conscious entity and acts of capitalism are not "evil" on their own."

      Actually it is an emergence consciousness like an ant colony or... a human brain. As for acts of capitalism being "evil" on their own, you need to back that up.

      "You have witnessed Microsoft make money in a society based around the freedom to make and lose money."

      I'm not sure which society that is. This society is based on freedom from government oppression. Capitalism is a tangent and this society won't lose what it is based on if those ideals are expanded to include freedom from oppression in the name of profit.

      "Microsoft furthering it's company's agenda in the global marketplace is capitalism."

      Microsoft has been intentionally stifling the advancement of technology from the very start when it intentionally sold an inferior system to run on IBM.

      What could man have accomplished without the interference from Microsoft in this time? Where would we be? Would we have stabalized the global market? Enhanced communication to the point of eliminating corruption? World peace? Colonized alien worlds? Developed penthouse clone sex slave bots who can cook and sell 2 for the price of one at walmart?

      Some of those are difficult to believe or impossible to imagine but all are theoretical improvements with advanced technology or facilitated by advanced technology.

    15. Re:Good. by egarland · · Score: 4, Insightful

      This is not simply a company furthering it's own agenda and competing as companies do. They intentionally break the rules and systematically use anti-competitive, sneaky, underhanded and illegal activity to further their agenda. Most people have to work with Microsoft in some way to get our jobs done but that doesn't mean we have to pretend they aren't evil.

      --
      set softtabstop=4 shiftwidth=4 expandtab nocp worlddomination
    16. Re:Good. by morgan_greywolf · · Score: 3, Insightful

      First of all, yes, a company is an emerging conscious. That's the reason why we have the entire body of corporate law in the first place. If you don't believe me, ask a lawyer who specializes in corporate law. Anyway, you don't really believe that Microsoft isn't a conscious entity yourself, since you've said that Microsoft has been witnessed 'making money" and "further it's [own] agenda". You can't your cake and eat it, too.

      I'm all for capitalism. After all, I'm an anarcho-capitalist. There is nothing wrong with the pursuit of capitalism, as long as everyone is playing by the rules.

      The problem is that Microsoft has a history of not playing by rules, and, in fact, deliberately ignoring them.

      The GPL is a permission to make and distribute copies of modified or unmodified code. If you use GPL'd code in a program you wrote, you gotta play by GPL's rules, which says that if you use the code in your program, you gotta GPL your program. If you don't agree, then you have no permission at all to make copies and you have just committed copyright infringement.

      We have no reason to believe that Microsoft is being honest of their own accord here because their track record speaks for itself. If what Microsoft did to the ISO committees on OOXML and ODF isn't illegal, it's downright dishonest and unethical.

      Without ethics, our society will devolve into chaos. Your choice: you can support an unethical company or not. But if you choose to act ethically for yourself, then why would you demand any less from the people you do business with?

    17. Re:Good. by Foredecker · · Score: 2, Informative

      The marketing department doesn't make these kinds of decisions, neither does the PR team. Yes, they may be involved but these things are decided (we use the term 'drivin') by the product teams.

      --
      Jibe!
    18. Re:Good. by im_thatoneguy · · Score: 2, Informative

      The problem is that it's also been morally defined now that it's the moral responsibility of executives to look after the best interests of the company and by extension shareholders. Turning down a lucrative weapons contract wouldn't well represent the interests of the shareholders.

      If executives are supposed to be responsible for their share holders, shareholders don't vote on most individual actions and a company is ammoral then you've got a problem since it's nobody's responsibility.

      You could say it's the shareholders then that have a responsibility to only buy stocks from ethical companies but most shareholders represent large brokerage firms who are responsible for acquiring the maximum possible returns for investment funds. So that leaves it to the consumer to determine which retirement plan is going to be the least evil when all of them include large portfolios of hundreds of companies. Good luck figuring out the ethical from the unethical ones. And if you find a company you like but have a grievance with good luck organizing and voicing your opposition when you're mixed in with several hundred thousand other shareholders who also all have grievances.

    19. Re:Good. by jonbryce · · Score: 4, Insightful

      Their legal department would have told them that they could either release the code or agree a compensation settlement with the copyright holder. Download managers are not core technology for Microsoft and there is nothing to be lost from releasing the code, so they did that.

    20. Re:Good. by mvdwege · · Score: 3, Interesting

      Two words: Vista Ready.

      Mart

      --
      "I know I will be modded down for this": where's the option '-1, Asking for it'?
    21. Re:Good. by man_of_mr_e · · Score: 2, Interesting

      We have no reason to believe that Microsoft is being honest of their own accord here because their track record speaks for itself. If what Microsoft did to the ISO committees on OOXML and ODF isn't illegal, it's downright dishonest and unethical.

      You seem to forget that what MS may have done in OOXML pales in comparison to what IBM and Sun did. IBM and Sun stacked more comittees, wrote more responses for said committees, paid astroturfers, got employees to blog against it while all but hiding their identities and connections... Do you REALLY think the controversy got stirred up to the froth it was organically? No, 95% of it was fueld by IBM and Sun employees, or people compensated indirectly by them.

      For example, did you know the Kenyan response to OOXML was written by an IBM employee? The malaysian response was written by IBM Employee? That it was, in fact, the same employee that wrote both?

      The fact of the matter is that OOXML is a non-issue, except to the financial concerns of Sun, IBM, Oracle, and a number of others. OOXML being a standard does not detract from ODF being a standard, but one would think that OOXML was being proposed as ODF version 2. If you don't like OOXML, don't use it. If it's such a bad standard, it will die by itself. And, if this whole issue had not been pushed by financial concerns on both sides, it would have simply occurred that way.

      ODF and OOXML are designed for different purposes, and ODF cannot, and never will be able to fulfil the requirements that OOXML was intended to fill, namely the ability to losslessly represent legacy MS Office documents in a format that makes them interoperable with other tools. IBM and Sun's refusal to accept proposals to ODF by its committee members for features that would make it more interoperable with Office ensures that.

      Make no mistake, both ODF and OOXML have serious failures, and serious political muscle behind them, and serious bullheadedness of it's proprieters. The open source community just got duped into believing this was a freedom issue, when in fact it was nothing of the kind.

      My point with this rant, is simply to point out that using the example of OOXML and ODF relating to ethics is a serious FAIL, because there was a gigantic lack of ethics on both sides.

  2. I give up by Anonymous Coward · · Score: 2, Informative

    I took a quick look at the article and I have no idea what this tool is supposed to do. I couldn't even venture a guess. So some tool that I know nothing about and have no idea what it does now has the source code available for it. I think the term "underwhelmed" would apply. What exactly is a USB/DVD download tool?

    1. Re:I give up by Java+Pimp · · Score: 2, Informative

      "The Windows 7 USB/DVD Download tool allows you to create a copy of your Windows 7 ISO file on a USB flash drive or a DVD. To create a bootable DVD or USB flash drive, download the ISO file and then run the Windows 7 USB/DVD Download tool. Once this is done, you can install Windows 7 directly from the USB flash drive or DVD."

      Source: http://wudt.codeplex.com/ from TFA.

      --
      Ascalante: Your bride is over 3,000 years old.
      Kull: She told me she was 19!
  3. Re:PROOF! by dsavi · · Score: 5, Informative

    As someone mentioned in the original story, Microsoft does not write all of its code itself but sometimes hires other companies to write a specific tool for them. Such was the case here. As for it taking a week, I think that's a pretty short period of time for something to take in a bureaucracy.

  4. Mod parent down by ericvids · · Score: 2, Informative

    It's a tool to download Windows 7 into a USB drive, hence it's a tool FOR Windows 7. Shortening it to "Windows 7 Tool" is just common English usage -- that's just like saying a drive for reading CD-ROMs is a CD-ROM drive. Get over it.

    --
    Pet peeve: Profane people propagating perfunctory pedantry.
    1. Re:Mod parent down by Daengbo · · Score: 2, Funny

      We've got a Windows 7 tool at work. He's unbelievably annoying.

  5. Re:PROOF! by 0racle · · Score: 2, Informative

    This is PROOF that Microsoft KNOWS they are producing bad code.

    Or it's proof that they made some changes so that the tool uses public API's instead of private windows internals and instead of just throwing it out the door, tested the changes made.

    --
    "I use a Mac because I'm just better than you are."
  6. For a company by Dartz-IRL · · Score: 4, Insightful

    For a company that believes so strongly in the inviolability of Software licensing, it's nice to see them practice what they preach when it comes to the rights of others. Fair play to Microsoft for meeting it's requirements, and score one for the GPL and Open Source.

    --
    So there I was, scribbling down some notes off the PC screen by hand, when I reached for the keyboard and Ctrl-S'd.
  7. Re:PROOF! by Saint+Stephen · · Score: 4, Interesting

    I've seen some of the Windows Source code when I worked there. Trust me, it's WAY more professional than the Linux source code.

    Microsoft's problem with code quality isn't the engineers - they're the same as everywhere else. In Windows 2000, they set out to eliminate BSOD, and they mostly did. In XP SP2, they set out to make it secure, and it's better.

    The problem is no one asks them to do the right things.

    Anyway, trust me - it's very professional, clean code, nice design, and not filled with hacks like the Big Global Lock that used to be in the Linux kernel.

  8. Re:PROOF! by badboy_tw2002 · · Score: 3, Insightful

    You apparently have never worked in a large company before. There were probably 27 meetings before someone high enough up the food chain stuck their neck out to say "ok". We're talking about opensourcing code from a company that generally doesn't do it. Legal was involved, top executives were involved, someone had to talk to PR about spinning a press release, etc etc. This isn't like some dev got emailed and said, "Shit! I better get that posted right away!"

  9. I must be getting old by pm_rat_poison · · Score: 3, Interesting

    First the SEGA logo brazenly appeared on a Nintendo console
    Now it's Microsoft publishing GPL licenced-code. TWICE (the other being their contribution to the kernel)
    Pigs expected to fly next week.

  10. Re:PROOF! by bmearns · · Score: 2, Interesting

    Wouldn't changing the code at this point still be a violation of the GPL? They released a certain version containing GPLd code, they need to make /that/ version available, right?

    Obviously there are plenty of other reasons it's likely to take a week to do anything at a megacompany like Microsoft.

    --
    Slashdot is not a game, Slashdot is not a game. Crap, I just lost points.
  11. The bigger news here by onyxruby · · Score: 5, Insightful

    The bigger news is not that Microsoft open sourced the tool after their GPL violation (that was inevitable). The news here is that Microsoft kept the open source tool instead of replacing it with one of their own. Microsoft has open sourced portions of their code before, that really isn't newsworthy. Keeping an open source tool that will be used to deploy their crown jewel operating system by millions of people - that's newsworthy.

  12. Re:PROOF! by Slothrup · · Score: 2, Interesting

    This is PROOF that Microsoft KNOWS they are producing bad code. They put something out there, and then when they had to open source the code, they were all like "Well now everyone will see how bad our coding is, better take a week to fix it up before releasing it to the public!"

    Having been involved with open source at Microsoft, I'd guess that the real reason for the delay was to "scrub" it to make sure that no intellectual property was inadvertently being given away.

    --
    The difference between theory and practice is that, in theory, there is no difference between theory and practice.
  13. Finally? by Rix · · Score: 3, Insightful

    It's been, what, a month since they were informed of the lapse, and less than that since they acknowledged the error?

    Show a reasonable amount of patience.

  14. /. Bias by Anonymous Coward · · Score: 5, Insightful

    I can't help but notice the "finally" in the title.
    Really slashdot, can't you post any MS related story without personal bias?

  15. Vaguely related questions... by sootman · · Score: 3, Interesting

    1) What programs do people here like for applying .ISO images to USB drives in Windows? Is this one "locked" to Windows 7 ISOs or can I use it to, say, put Puppy Linux onto a USB drive? I tried to install this one to find out but it's telling me "This application requires the Image Mastering API v2" and I don't want to put too much effort into this if it isn't for general use.

    2) Anyone know how to do the same thing in OS X? I tried using Disc Utility but it will only let me a) burn ISOs to CDs or b) apply Apple .DMGs to drives. I tried mounting the ISO and using that as a source to create a DMG and that worked, but then when I went to apply that DMG to a disk it gave up at the last minute. (Sorry, that machine is at home, I don't know the exact error message. It basically said "Sorry, can't" after I clicked 'restore'.)

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
    1. Re:Vaguely related questions... by jim_v2000 · · Score: 2

      Use UNetBootin for making bootable USB drives to install Linux.

      All this little MS app does is format you drive, mark the partition as Active, and extract the Windows 7 ISO to it. You can do it manually just like that if you wanted.

      --
      Don't take life so seriously. No one makes it out alive.
  16. Re:PROOF! by scharkalvin · · Score: 3, Interesting

    I'm sure Microsoft's source code looks much more professional than the Linux source code. The company probably has rigid coding standards that all programmers must adhere to. Not only standards that have to do with the kinds of constructs you are allowed to use, but how the code must look, how many spaces to indent, how to format your comments, and where to put comments. In other words they probably have a 'grammar police' for code. (Do they still use Hungarian notation?). OTHO the Linux kernel was written by coders from ALL walks of life with different views on how to write code. There is only a very loose coding standard for the kernel, if Linus can read it and understand it, it gets used as is.

    Does this make Microsoft source code work any better than Linux? No. Does it make it more supportable (for the programmers actually working on it)? Probably. But the people working on the Linux Kernel are used to the hodge-podge of coding standards in use. Still it could make it harder for someone to break into kernel support.

    BTW, I've heard of some diehard Mircosofties getting windows tats. Wonder if Linux coders have a Tux tat. (yuck).

  17. Re:PROOF! by Lemming+Mark · · Score: 2, Informative

    I think your comment about asking the engineers to solve the right problem is very insightful.

    But I'm curious - did Windows have more fine-grained locking than a single kernel lock at the time Linux introduced SMP support with 2.0? I can imagine Windows may well have been better re locking scalability back then. Both Linux and Windows have been using increasingly fine granularity locking over the years, which is nice. It's somewhat frustrating that the Big Kernel Lock is still hanging around but at least it's not on most / any important critical paths now. And one day hopefully it will go away properly :-)

  18. Re:Misleading by Arthur+Grumbine · · Score: 4, Funny

    Other reasons to stop calling it the "Windows 7 Tool" include the similarity between:
    "Microsoft Finally Open Sources Windows 7 Tool" and
    "Microsoft Finally Open Sources Windows 7 Too!"

    I spent the first 30 seconds in shocked disbelief as I tried to remember anything else they've open sourced.

    --
    Now that I think about it, I'm pretty sure everything I just said is completely wrong.
  19. Re:PROOF! by lewiscr · · Score: 2, Insightful

    filled with hacks like the Big Global Lock that used to be in the Linux kernel

    The spinning hourglass begs to differ.

  20. Re:PROOF! by Bill,+Shooter+of+Bul · · Score: 2, Insightful

    Eh... I understand what you are saying. And yet, Linux has never produced anything nearly as bad as Longhorn. Seriously, Long- freaking-horn. You can't praise them for 2000 and xp SP2 and ignore their obvious mistakes with xp/xp-sp1 and longhorn/vista. Every version of windows that is released is accompanied by a story interviewing some Microsoft fellow that describes how bad the source code for the previous version was and how no one really knows how all of the different parts of windows interact. I'm sure its not bad code full of obvious hackery and bad coding. I am however convinced that its a more difficult of a design than the Unix philosophy and it suffers because of that.

    Plus, as closed source we can just sort of imagine the code that causes the problems we run into, where as with linux we can actually see the code that caused the problem so we don't have to imagine any code crappier than what we find.

    --
    Well.. maybe. Or Maybe not. But Definitely not sort of.
  21. unusual trend. by shentino · · Score: 2, Interesting

    Microsoft's been doing this a lot lately (a lot being relative to their past conduct).

    It's good that they're doing good and paying down their negative karma, but sometimes I wonder if people are deliberately infecting their sources with GPL'ed code just to make them cough it up once it gets published. A windows 7 tool getting fingered for a GPL violation so quickly makes me think that the exposure had a bit of inside help.

    Time will tell.

    Kudos to Microsoft though if their efforts are sincere.

  22. Re:PROOF! by Jah-Wren+Ryel · · Score: 2, Insightful

    Anyway, trust me - it's very professional, clean code, nice design, and not filled with hacks like the Big Global Lock that used to be in the Linux kernel.

    Bad example. Just about every uniprocessor-developed OS had a Big Global Lock until they went multi-cpu - and even then it usually took a few releases before it was really eliminated. I would be hugely surprised to find that the Win9x series didn't have one too. When did the linux kernel deprecate it? Like a decade ago?

    --
    When information is power, privacy is freedom.
  23. Re:PROOF! by Josh04 · · Score: 2, Funny

    Frankly, I find htat hard to believe.

    Letter overflow!

  24. Re:PROOF! by DaveV1.0 · · Score: 3, Insightful

    This third party code would have been produced under contract as "work for hire". Presumably, the contract stated that the third party had to assign all rights to the code to Microsoft, like any other work for hire, and that the end product must be wholly assignable.

    Most likely, the third party actually violated their contract with Microsoft by creating a work that uses GPLed code.

    --
    There is no "-1 offended" or "-1 you don't agree with me" mod options for a reason.
  25. Re:PROOF! by Dionysus · · Score: 4, Informative

    When did the linux kernel deprecate it? Like a decade ago?

    Depends on your definition of "deprecate" and "decade". As late as last year (2008), the kernel people were still working on removing it.

    --
    Je ne parle pas francais.
  26. Re:I can't open it :p by DaveV1.0 · · Score: 2, Informative

    You downloaded the tool (a.k.a. application), not the source code.

    --
    There is no "-1 offended" or "-1 you don't agree with me" mod options for a reason.
  27. A better way to look at it. by KickInNutsAnalogyGuy · · Score: 3, Funny

    Microsoft did the right thing, they shouldn't be bashed for it. Consider the following:

    You're standing in line thinking that the guy next to you, Steve, is a pretty normal guy; perhaps you don't like him a lot, but he seems to keep to himself. Suddenly Steve turns to you and junk-kicks you right up in your man business. When you come to several minutes later, Steve apologizes profusely. Apparently there was a mix-up which unfortunately resulted in your swollen nuts. Wanting to make things right, Steve allows you to junk-kick him in his man business.

    I think it is safe to say Microsoft is doing the right thing allowing you to junk-kick their man business.

  28. Re:PROOF! by Locutus · · Score: 2, Interesting

    good point. It's easier for Microsoft to miss when the original source had the license text removed before handed over to Microsoft and if they had an agreement that all code and licensing were to be handed over to Microsoft.

    It does surprise me that Microsoft would hire out for little tools like this. Unless, it's in payment for some other more 'serving' task(s). Like how they hired Mainsoft to create Internet Explorer for UNIX while at the same time they just about quadrupled the cost of licensing their Windows sources needed to do the task. MainSoft had the dough to pay the higher licensing fees but none of the other Win32 on UNIX vendors could afford that expense. Mainsoft survived but all other products which allowed Win32 to compile on UNIX were shut down. It was a great trick to get vendors to port UNIX apps to Win32 and then eliminate the ability of those apps to be updated and run on UNIX.

    I wonder who the 3rd party was and why they were hired to do this little tool for Microsoft?

    LoB

    --
    "Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
  29. A peek by nyri · · Score: 3, Interesting

    As opposed almost everyone fussing about "teh M$" and nuances of "freedom", I decided to take a look as see this professionalism.

    The first, the first, line I read had a pre-processor no-no. Here:

    #define ReleaseStr(pwz) if (pwz) { StrFree(pwz); }

    You can read all about it here: http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.4

    Here's how it doesn't work:


    if ( something )
            ReleaseStr(pwz)
    else
            foobar;

    So there. The code might look professional. It might but it doesn't mean that it is.

    1. Re:A peek by nschubach · · Score: 2, Funny

      Maybe it was an auto-converter's version of ON ERROR RESUME NEXT.

      --
      Every time I start to have faith in humanity, I ruin it by driving to work between 7 and 8 am.
  30. Re:PROOF! by Foredecker · · Score: 2, Informative
    Sigh.... the CRT string APIs in the CRT have been banned for a long time. We don't use them any more - this also means getting rid of them. Same for a lot of other old bad practices.

    Note, this isn't a W7 thing ,this all happened 8 years ago for XP SP2.

    --
    Jibe!
  31. Re:PROOF! by theArtificial · · Score: 2, Insightful

    I'm sure its very pretty. But at the end of the day, it doesn't work as well as the Linux kernel.

    Obviously you haven't experienced the joy related to binary Linux drivers (WIFI and 3D come to mind). Let me guess you're doing studio audio production on Linux because of the low latency performance?

    Linux makes for an awesome hackable server and it is very flexible. The tools available for networking and development stand on their own but the awesome begins to fade after that. If only BeOS had lived (yes I've been following HaikuOS)...

    --
    Man blir trött av att gå och göra ingenting.
  32. Re:PROOF! by ShadowRangerRIT · · Score: 2, Informative

    And by banned, he doesn't just mean there is a policy against them. They run regular code scans for "illegal" functions and then send out high priority bug reports to the code owners if any are found. I had to fix a couple of them when I worked there (and they weren't for strcpy, it was more subtly problematic functions). In my entire time at MS, I never saw one instance of strcpy. Usually the code used StringCchLength and StringCchCopy, which are not only safe if called with the appropriate buffer size, but function well with both ASCII and UTF-16 strings environments (though in practice, all our code was compiled with unicode support).

    --
    $_ = "wftedskaebjgdpjgidbsmnjgcdwatb"; tr/a-z/oh, turtleneck Phrase Jar!/; print
  33. Re:PROOF! by MarkKB · · Score: 2, Insightful

    Linux audio. Just... Linux audio.

    ---

    Most of the senior engineers at the time were working on Windows Server 2003. The people working on Longhorn were less experienced, and after a bit they started to put their pet projects into Windows, similar to the Copland fiasco Apple went through. (The difference was probably pride rather than fear of getting fired, like "see that? That's my idea!", but meh.)

    Jim Allchin wrote his "I'd buy a Mac" memo here.

    After they shipped Server 2003, they tried to clean up the Longhorn mess - first by cutting out some of the projects, then by stripping it down and then building up to Server 2003-level. Only then did they decide it was too unworkable, and decided to rebuild straight from the Server 2003 codebase.

    Not trying to refute anything here, just giving some background info. Yeah, they definitely could have done a lot better, but they also could have done worse, and I'm not sure that open source would have helped them at all.

  34. Re:PROOF! by techno-vampire · · Score: 2, Informative
    In my entire time at MS, I never saw one instance of strcpy.

    Thank you; I sit corrected. However, if they are, as you say, using functions that don't allow unbounded copying, how do you explain all the buffer overflows. Granted, my programming skills are way out of date, but from where I sit it looks as though using copy functions with built-in bound-checking should prevent them.

    --
    Good, inexpensive web hosting
  35. Re:PROOF! by Foredecker · · Score: 2, Informative
    Hi Techno-Vampire,

    I'm not sure what buffer overflows you are refering to. We're very careful to use the bounds checked type of copies you are referring to. There are many ways to do this. The safe string copy functions are one, so is the new secure CRT. String handling C++ classes are anohter.

    Of course, its impossible to claim that there are no 'run of the mill' buffer overlows in Windows XPSP2, Vista, Win7. But we went to great lenghts to avoid them. This includes code reviews, and the use of automated tools (static analysis) among others. But there are very, very few.

    Of course, there are still things that need to be fixed and they may be due to simple coding errors, or they may be more complex.

    -Foredecker

    --
    Jibe!
  36. Re:PROOF! by fm6 · · Score: 2, Informative

    Indeed, something similar happened when at I was Sun. With modern servers you just have to have an IPMI client for remote lights-out management. The most popular one is IPMItool, an OS product that got support on Unix-like systems early on. But somebody managing a remote system might well be running Windows. IPMItool will run on Cygwin, but Sun can't redistribute Cygwin, so they needed to provide customers with a native Windows version. For that, they hired a software consulting firm to make the port, then released the source code in accordance with the original software license.

    The difference here is that Sun is a very bureaucratic place where you can't do anything without jumping through all the right hoops. So if you use OS software or code, you're required to tell the company lawyers so they can make sure you don't break any rules. At other places I've worked, it was pretty common for some engineer to see some OS code he wanted to borrow and just go ahead and use it. Any OS license requirements might be ignored or the engineer might try to interpret them on his own, with the resulting mistakes that amateur lawyers always make. Either way you have a violation of the OS license that has more to do with stupidity than with any grand conspiracy. A classic example of Hanlon's Razor.

  37. I would liken that to "attack" not defence by Steeltoe · · Score: 2, Interesting

    I see you like the play of devil's advocate.
    This goes against the spirit of the GPL.

    However, in legal perspective (IANAL), I don't think it will work out like that. You see, either you accept the license (GPL) and you get to redistribute the software under the GPL license.
    Or you don't accept the GPL license, in such case, copyright would still be with the original copyright holders.

    Now, any works under copyright doesn't have to have been sold yet. You can always discuss the price with the copyright holder for proprietary use.
    Better do it before using the code though, as you may have more bargaining power then.
    The fact that you didn't, even if you didn't know, copyright still stands. The copyright holder can make you have to pull all your violating binaries / code from any distribution, which could actually cost alot by itself if infringement is big.

    Price will be at market price, or whatever agreement with the copyright holder. Not sure if there are any limits to demands here.

    Just because the sourcecode can be distributed under the GPL license doesn't mean it no longer have any market value. It can be relicensed under any other free or non-free license by the actual copyright holder (not those who merely redistribute under GPL), with or without monetary or other compensation.

    This vibes very much with what other posters have said, that the GPL itself give value back in form of collaboration. If you don't want to collaborate with the rest of the world though, you gotta pay something else. Many companies are already using this strategy to make money off of GPLed software, selling their rights to companies who wants to do proprietary work.

    Always remember: GPL == free software, GPL != free beer