corrigan.space
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
pastermil@sh.itjust.works to Open Source@lemmy.ml · 1 year ago

Microsoft Just Released MS-DOS Source Code!

github.com

external-link
message-square
112
link
fedilink
  • cross-posted to:
  • technology@lemmit.online
  • hackernews@lemmy.smeargle.fans
  • opensource@lemmy.ml
505
external-link

Microsoft Just Released MS-DOS Source Code!

github.com

pastermil@sh.itjust.works to Open Source@lemmy.ml · 1 year ago
message-square
112
link
fedilink
  • cross-posted to:
  • technology@lemmit.online
  • hackernews@lemmy.smeargle.fans
  • opensource@lemmy.ml
GitHub - microsoft/MS-DOS: The original sources of MS-DOS 1.25, 2.0, and 4.0 for reference purposes
github.com
external-link
The original sources of MS-DOS 1.25, 2.0, and 4.0 for reference purposes - microsoft/MS-DOS
alert-triangle
You must log in or # to comment.
  • herrcaptain@lemmy.ca
    link
    fedilink
    arrow-up
    185
    ·
    1 year ago

    I love that they specify that they’re not accepting pull requests.

    • QuazarOmega@lemy.lol
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      Even funnier when it’s their own platform and it has been missing the feature to disable them for so long afaik

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    115
    ·
    1 year ago

    The MS-DOS v1.25 and v2.0 files were originally shared at the Computer History Museum on March 25th, 2014 and are being (re)published in this repo to make them easier to find[.]

    • zarenki@lemmy.ml
      link
      fedilink
      English
      arrow-up
      99
      arrow-down
      1
      ·
      1 year ago

      In 2014, MS-DOS 1.25 and 2.0 were released under a Microsoft shared-source license (Microsoft Research License) which forbids redistribution

      In 2018, both versions were published to GitHub and relicensed as MIT, making them properly open-source

      Today, MS-DOS 4.00 was added to that repo, also under MIT.

    • laughterlaughter@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      Oh.

  • fubarx@lemmy.ml
    link
    fedilink
    arrow-up
    88
    arrow-down
    14
    ·
    1 year ago

    Ignore them. Send a pull request with the full source of Arch Linux.

    • deadbeef79000@lemmy.nz
      link
      fedilink
      arrow-up
      39
      ·
      edit-2
      1 year ago

      Nah, just a giant compiled binary blob. That’s what all the cool hackers do these days.

    • Aatube@kbin.melroy.org
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      is archived

      • ylai@lemmy.ml
        link
        fedilink
        arrow-up
        13
        arrow-down
        1
        ·
        1 year ago

        There is even a sentence in README.md that makes it explicit:

        The source files in this repo are for historical reference and will be kept static, so please don’t send Pull Requests suggesting any modifications to the source files […]

        • Captain Aggravated@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          Somebody fork it then?

        • laughterlaughter@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          Time to fork!

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      dumb question maybe, but where is the full source of arch Linux? My understanding is that its just vanilla Linux that uses the pacman package manager.

      Am I wrong in saying the pacman is the Arch source? Or is there more going on in the tar ball?

      • Aatube@kbin.melroy.org
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        https://archlinux.org/packages/core/any/base/

        • tetris11@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Cheers! It looks like this is then the PKGBUILD

          https://gitlab.archlinux.org/archlinux/packaging/packages/base/-/blob/main/PKGBUILD?ref_type=heads

          In which case, there are no packages defined there which are Arch specific except pacman. So… pacman is the Arch source, right?

          • Aatube@kbin.melroy.org
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            A lot of these packages have Arch-specific modifications. For example, filesystem doesn’t even have a non-Arch upstream as it defines the filesystem layout. That PKGBUILD and everything it depends on is the Arch source. Distributions are defined by which packages they include.

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    56
    ·
    1 year ago

    I guess we now have a timeframe in which to expect the release of Windows.

    • onlinepersona@programming.dev
      link
      fedilink
      English
      arrow-up
      30
      arrow-down
      1
      ·
      1 year ago

      30+ years after death. Better than 70+ years of copyright 🤷

      Anti Commercial-AI license

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    56
    arrow-down
    1
    ·
    1 year ago

    i remember writing .bat files and pretending they were really fancy update scripts when i was like ten they did nothing but it was still fun :)

    • Ms. ArmoredThirteen@lemmy.ml
      link
      fedilink
      arrow-up
      36
      ·
      1 year ago

      Like half of my job is writing .bat files to automate stuff locally and not tell my boss that all I do anymore is double click the right things in the right order…

      • SnipingNinja@slrpnk.net
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

        Next step, bind them to unused keys on your keyboard and press them in the right order

        • ebits21@lemmy.ca
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 year ago

          I suggest Autohotkey ;)

          • ☂️-@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            2 months ago

            deleted by creator

            • WhiskyTangoFoxtrot@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              Just set up a drinking bird to set off AHK.

              • ☂️-@lemmy.ml
                link
                fedilink
                arrow-up
                0
                ·
                edit-2
                2 months ago

                deleted by creator

        • A Wild Mimic appears!@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          i propose to create a menu in which you can define what batchfiles to run in what order. its been a while since i worked with batch files, but if memory serves right, that should be doable, no?

      • viking@infosec.pub
        link
        fedilink
        arrow-up
        8
        arrow-down
        1
        ·
        1 year ago

        You can put in a timeout command at the end, and then call the next .bat file.

        For example “TIMEOUT /T 60” waits for 60 seconds before resuming, or you can override it by pressing any key.

        So if you know how long the wait time between scripts is, just write a master.bat and call them in order, with adequate waiting time in between.

      • WhiskyTangoFoxtrot@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        Do you ever list your job title as Batman?

        • katy ✨@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          only if they keep the it room as dark as possible and whenever someone walks in for help they jump up onto the desk with a flashlight and yell "I’M BATMAN’ while wearing a cape and underpants.

        • kingthrillgore@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          No, because the IRS wants to tax Batman

      • DefederateLemmyMl@feddit.nl
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

      • AMPher@lemmy.dbzer0.com
        link
        fedilink
        Italiano
        arrow-up
        1
        ·
        5 months ago

        Me but with pythonautogui

    • KISSmyOSFeddit@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      They were important to boot games that needed most of your limited memory.

      • doublejay1999@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        640k should be enough for anybody

        • A Wild Mimic appears!@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          tell that my mouse driver, the soundblaster driver and the cdrom driver fighting over every single byte of that precious ram 😩

        • laughterlaughter@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Bill Gates denied saying this, by the way.

      • Klear@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Or to play the demo made by the warez group that cracked it before launching the game.

    • chiliedogg@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I still use bat h files and the system scheduler to automate a shocking amount of my job.

    • laughterlaughter@lemmy.world
      link
      fedilink
      arrow-up
      8
      arrow-down
      10
      ·
      1 year ago

      Please use punctuation.

      • katy ✨@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        12
        arrow-down
        2
        ·
        1 year ago

        punctuation is a scam created by the shadow government

        • billgamesh@lemmy.ml
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          1 year ago

          yeah punctuations is silly who cares

          • Eldritch@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Typicalcommingfromashillforbigwhitespace!

          • laughterlaughter@lemmy.world
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            1 year ago

            It isn’t. There’s a reason for it.

  • blindbunny@lemmy.ml
    link
    fedilink
    English
    arrow-up
    62
    arrow-down
    8
    ·
    edit-2
    1 year ago

    FreeDos is better anyways

    • Björn Tantau@swg-empire.de
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      I wonder if this is of any use to them or if they’re already too far ahead.

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        21
        ·
        1 year ago

        To my knowledge, FreeDOS has been a fairly complete implementation of DOS for a very long time, so this is probably not useful to them.

      • blindbunny@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Good question lmk if you find the answer. I just use FreeDos to play Chex quest

      • psud@aussie.zone
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        They couldn’t use it. MS DOS is released under a licence that restricts redistribution

        • Björn Tantau@swg-empire.de
          link
          fedilink
          Esperanto
          arrow-up
          1
          ·
          1 year ago

          They changed it to MIT. You can basically do what you want with it.

        • explodicle@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          It says here you can modify and distribute: https://github.com/Microsoft/MS-DOS/blob/main/LICENSE

  • viking@infosec.pub
    link
    fedilink
    arrow-up
    42
    ·
    1 year ago

    LOL, some of the comments in the source are gold.

    https://github.com/microsoft/MS-DOS/blob/main/v4.0/src/DOS/ABORT.ASM

    Note:  We do need to explicitly close FCBs.  Reasons are as follows:  If we
    ; are running in the no-sharing no-network environment, we are simulating the
    ; 2.0 world and thus if the user doesn't close the file, that is his problem
    ; BUT...  the cache remains in a state with garbage that may be reused by the
    ; next process.  We scan the set and blast the ref counts of the FCBs we own.
    ;
    ; If sharing is loaded, then the following call to close process will
    ; correctly close all FCBs.  We will then need to walk the list AFTER here.
    ;
    ; Finally, the following call to NET_Abort will cause an EOP to be sent to all
    ; known network resources.  These resources are then responsible for cleaning
    ; up after this process.
    ;
    ; Sleazy, eh?~
    
    • bane_killgrind@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      This is what people mean when they say hostile to users damn wow

  • JustMarkov@lemmy.ml
    link
    fedilink
    arrow-up
    34
    ·
    edit-2
    8 months ago

    deleted by creator

    • loathsome dongeater@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      1 year ago

      Laundering their reputation by open sourcing defunct historical code

    • GolfNovemberUniform@lemmy.ml
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      1 year ago

      Probably Microsoft is trying to “save” some of its reputation after adding ads to Windows 11 one more time

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      They found a new 0-day exploit

    • catloaf@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      They probably only got clearance from their lawyers (or IBM’s lawyers) just now.

      A lot of proprietary software includes bits from other proprietary software that they don’t have the rights to open-source. And untangling and removing those bits takes time and effort.

  • SuperNerd@programming.dev
    link
    fedilink
    arrow-up
    28
    ·
    1 year ago

    So cool, thanks. As a kid I spent so much time in DEBUG, stepping through DOS’s executables, and especially the Interrupt handlers. It’s so neat to see the actual source code-- way easier to read and follow. I didn’t know it was all written in assembly, from within Debug it sometimes seemed so messy and convoluted that I just assumed more was written in C.

  • moon@lemmy.ml
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    1 year ago

    What’s the use case that would upset Microsoft the most?

    • Samsy@lemmy.ml
      link
      fedilink
      arrow-up
      82
      arrow-down
      1
      ·
      1 year ago

      Idk, maybe fork it under the name MS-DOSNT

      • Murdoc@sh.itjust.works
        link
        fedilink
        arrow-up
        10
        arrow-down
        5
        ·
        1 year ago

        😆👏👍

    • Godort@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Use it to program an functional DOS emulator for MacOS 8?

  • Pennomi@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 year ago

    Woah MIT license. That’s a lot more permissive than I expected.

  • redcalcium@lemmy.institute
    link
    fedilink
    arrow-up
    15
    ·
    1 year ago

    Take that FreeDOS!

  • doublejay1999@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    1 year ago

    Would this have Bill’s code in it ? Or was he off the shop floor by then ??

    • ceasarlegsvin@kbin.social
      link
      fedilink
      arrow-up
      18
      arrow-down
      1
      ·
      edit-2
      1 year ago

      I’d be surprised if Windows 11 didn’t still have bill’s code in it

      • nomous@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        I’d be surprised if Bill had written anything substantial in decades tbh.

        • Norah (pup/it/she)@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          11
          ·
          1 year ago

          Both of these comments are probably true.

          • ForgotAboutDre@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Windows is just shit piled on top of shit and sold as something new. It’s so bloated so they can maintain backwards compatibility. So original code is definitely in Windows 11.

    • amigan@lemmy.dynatron.me
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      His last product was the OS for the Tandy model 100 in 1983.

    • MonkderDritte@feddit.de
      link
      fedilink
      arrow-up
      2
      arrow-down
      2
      ·
      edit-2
      1 year ago

      Did Gates write any code? Wasn’t he the marketing guy?

      • amigan@lemmy.dynatron.me
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        3
        ·
        edit-2
        1 year ago

        You’re thinking of Shit Jobs, the FruitCo charlatan. Gates’ pancake sort algorithm held the speed record for 30 years.

  • marx2k@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    1 year ago

    6.22 or foff

  • DogWater@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    1 year ago

    Is this useful for hobbyists besides poking around and seeking the design philosophy at work back then?

    Like would there be any advantage or reason to implement this in a home project? For example maybe that it’s lightweight and has some rare compatibility or anything like that?

    • vext01@lemmy.sdf.org
      link
      fedilink
      arrow-up
      22
      ·
      1 year ago

      I think its interesting from a historical perspective.

      I imagine people will examine the code, find easter eggs, bugs, unknown features, amusing comments etc.

      I look forward to seeing what is found.

      • Potatos_are_not_friends@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        Looking forward to the “when I wrote this code, only god and I knew how it works. Now only god knows” comments.

    • bigredcar@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      There are a lot of decades old embedded systems out there. Every so often you hear about a big company still relying on floppy disks and other old tech, including major railways and airplane companies. Having the source code will help with debugging better than having to disassemble or other reverse engineering.

    • MonkderDritte@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Maybe as a reference, if you want to build another abomination?

Open Source@lemmy.ml

opensource@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !opensource@lemmy.ml

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

  • Open Source Initiative
  • Free Software Foundation
  • Electronic Frontier Foundation
  • Software Freedom Conservancy
  • It’s FOSS
  • Android FOSS Apps Megathread

Rules

  • Posts must be relevant to the open source ideology
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !libre_culture@lemmy.ml
  • !libre_software@lemmy.ml
  • !libre_hardware@lemmy.ml
  • !linux@lemmy.ml
  • !technology@lemmy.ml

Community icon from opensource.org, but we are not affiliated with them.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 65 users / day
  • 1.35K users / week
  • 3K users / month
  • 10.6K users / 6 months
  • 1 local subscriber
  • 38.9K subscribers
  • 2.07K Posts
  • 31.1K Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • kevincox@lemmy.ml
  • CrypticCoffee@lemmy.ml
  • Lettuce eat lettuce@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org