A few people pointed out that many rust projects were MIT licensed and since then I indeed have seen MIT licensed projects everywhere in Rust. Then I found the link of this post and it looks like MIT was by far the most popular license in all of opensource in 2023.

Any ideas why?

  • Successful_Try543@feddit.org
    link
    fedilink
    arrow-up
    57
    arrow-down
    1
    ·
    5 days ago

    MIT allows the publication of derived work to be closed source, GPL doesn’t. Thus, at least for corporations, it is an advantage to publish some code, e.g. libraries with MIT licence, so that it can become a commonly used “standard implementation”, while their end user software remains closed source.

    • TheMightyCat@lemm.ee
      link
      fedilink
      arrow-up
      32
      ·
      5 days ago

      This is why i like publishing under LGPL, people can still use it in proprietary software but the library itself is better protected.

      • hemko@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        25
        arrow-down
        1
        ·
        5 days ago

        Do you maybe have a guess why non-corporations use MIT?

        “Here’s my project do what you want, or don’t, with it I don’t care”

        • vala@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          3 days ago

          Relicense it as GPL and see how little they care what you do with it.

          • hemko@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            3 days ago

            What a stupid argument, that’s literally only thing the license asks, is to keep the original license and not sue them because you shot at your own dick.

            It doesn’t change in any way or form how you can use the software though

            • bitfucker@programming.dev
              link
              fedilink
              arrow-up
              3
              ·
              3 days ago

              Isn’t it to keep the copyright notice and not the license itself? I.e, you may redistribute it with a different license term and conditions but the copyright notice must be retained. I don’t know how different it is tho in legal speak. Maybe they are equivalent.

        • Caveman@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          4 days ago

          One caveat is that if you fork and release it you have to release it under the same license.

          • bitfucker@programming.dev
            link
            fedilink
            arrow-up
            18
            arrow-down
            1
            ·
            5 days ago

            No.

            MIT : “Here is my project. Do whatever, I don’t care. Just put my name in a credit somewhere.”

            GPL (assuming FSF stance on linking is used) : “Here is my project. Oh, you want to use my project and distribute your project that uses my project? Make your whole project open source too.”

            BSD-3 : “Here is my project. Credit me and do whatever but, don’t use my name to promote your usage.”

            And many more nuances on other licenses like patents and whatnot. The problem is, the average person does not care to enforce it.

          • athairmor@lemmy.world
            link
            fedilink
            arrow-up
            17
            arrow-down
            1
            ·
            5 days ago

            I don’t think that’s what they’re saying.

            MIT license is more permissive than other open source licenses. That’s intentional. The authors want anyone to use their code anyway they like—open, closed, whatever.

          • hemko@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            7
            arrow-down
            1
            ·
            5 days ago

            No, but they want to have the most permissive license so that anyone with interest in it can take and use it, without having to worry about licenses.

      • nous@programming.dev
        link
        fedilink
        English
        arrow-up
        8
        ·
        5 days ago

        You would be surprised. A lot are written by people as part of their job or so they can use them for their job or being sponsored by a company to do the work. The people with the most time to contribute library code to rust are being paid to do it in one form or another.

      • bluGill@fedia.io
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        5 days ago

        If you want to spread rust corporations using it is part of spreading.

  • popcar2@programming.dev
    link
    fedilink
    English
    arrow-up
    35
    arrow-down
    1
    ·
    5 days ago

    MIT is the de-facto license that says “Do what you want with the software, just give me credit. Also, I don’t owe you anything”.

    It lets people do basically anything with it but protects you from:

    • People who would steal your project and claim they were the original creators (your name and copyright info is filled in the license which they have to include and mention)

    • Any sort of liability or warranty - people can’t blame you for any damage done by your software

      • The Quuuuuill@slrpnk.net
        link
        fedilink
        English
        arrow-up
        23
        arrow-down
        5
        ·
        5 days ago

        those are less permissive. mit license says “you want to make a new version and sell it? go ahead! be my guest” think of it as being the apache license with fewer words

        • hitwright@lemmy.world
          link
          fedilink
          arrow-up
          11
          ·
          5 days ago

          You can sell GPL software, even without any changes. The less permission part would be “You want to close-source it and not contribute back? Go ahead!”

      • Aatube@kbin.melroy.org
        link
        fedilink
        arrow-up
        9
        ·
        5 days ago

        GPL forces those who fork the project to open-source their contributions; same for MPL though GPL requires open-sourcing more things. EUPL is a bit obscure.

  • novaTopFlex@programming.dev
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    2
    ·
    5 days ago

    Unfortunately, open-source software is quickly being coopted in many communities, particularly due to corporate influences, such as Microsoft (with GitHub, WSL, etc.) or Red Hat (closing down RHEL). Corporations must use open-source, and GPL (which I am a strong believer of, by the way) does not allow most corporations to use the software, as the software must remain free-and-open-source (FOSS).

    • bitfucker@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      5 days ago

      Not really, you can charge for GPL software, but you must always provide the source and anyone may redistribute those

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      4 days ago

      MIT license predates the GPL. Tiny projects like X chose it many decades ago.

      Most Open Source software is written by corporations.

      Probably the largest developer of GPL software is Red Hat. I will avoid responding to the “closing down” of RHEL except to ask how Alma and Rocky are doing. Pretty well I believe.

      Permissive licenses like MIT and Apache require the software to “remain free-and-open-source (FOSS)”. That is “the software” released under those licenses (not some future software that has not been written yet).

      WSL is Open Source.

      But don’t let the facts get in the way.

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      3
      ·
      edit-2
      4 days ago

      Unfortunately

      Depends on how you look at it.

      I think some would argue that the competition and rapid innovation garnered by companies who are more freely able to leverage existing software in capitalist society, and the products and services they bring because of it, might be a net positive for the world, in comparison to the alternative.

      I think if you were to go down the path of what many FOSS zealots seem to want (not capitalism), you end up with a system that does not promote competition, and people get tired of nothing happening, and society as a whole may not progress much.

  • LeFantome@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    4 days ago

    Permissive licenses are trending in popularity vs copyleft. As a “newer” ecosystem, the Rest-dev culture skews towards permissive.

    Why are permissive licenses popular?

    Most Open Source software is written by companies.

    “Permissive” licenses offer more flexibility and compatibility while minimizing future legal complications. You can replace the word flexibility with the word freedom if you wish. By compatibility, I mean it can be combined with code using other licenses. So no “we cannot combine ZFS and Linux” type problems.

    MIT offers the absolute minimum of legal footprint and maximum compatibility.

    The above are attributes companies value.

    On the other side of the “freedom” front, licenses like MIT guarantee all of the “4 freedoms” that groups like the Free Software Foundation talks about with adding an restrictions on the freedoms of others.

    So, why doesn’t everybody use MIT? The patent guarantees in Apache 2.0 are useful if you are ok with the added complexity (still permissive but more legalese).

  • phlegmy@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    arrow-down
    2
    ·
    5 days ago

    If you’ve ever been in a position where you weren’t able to relicense an entire project as GPL, or were developing for a platform that doesn’t allow LGPL3 libraries to be used because users can’t replace the LGPL3-licensed binary (ios, android, game consoles, proprietary hardware), which I’m sure many people with programming careers have experienced at some point, you’ll quickly find that any copyleft-licensed library is effectively useless to you.
    I would wager that those who have had to deal with that before are much less likely to use a copyleft license for future projects.

    There’s also a lot of small projects where the developer doesn’t care about licensing. They just want the code out there, and for anyone to be able to use it, as long as they get some recognition for making it.

    Most people aren’t lawyers, and don’t care enough to read all the different licenses and compare them all. They pick the simplest one that ensures anyone can do anything with it, and they aren’t held liable for anything.

    Apache is too full of legalese for most people to bother reading. BSD has different versions which make it more complicated to pick which one you want. MIT has much less confusion about versions (there are different versions, but most people associate ‘MIT license’ with the most common one).

    And then the existing popularity helps lock in a license choice once you’ve picked a license category. “If MIT is good enough for ‘x’, it’s good enough for me.”

    • qaz@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      3 days ago

      …developing for a platform that doesn’t allow LGPL3 libraries to be used because users can’t replace the LGPL3-licensed binary (ios, android, game consoles, proprietary hardware)…

      TIL. I didn’t know that LGPL would add any additional restrictions except for inside the library

      Explanation from HN in case anyone else is wondering:

      In the case of the App Store, Apple is the one doing distribution, so Apple must also comply with the terms of the license (in addition to the app developer). Apple has decided they will not do that (that is, people they distribute to will not have the ability to modify the LGPL code, relink the final executable, and run it on their devices), so Apple cannot legally distribute binaries that contain LGPL code.

      It only makes sense, then, that Apple should preemptively reject apps that link in LGPL code, as they know that they will not abide by the licensing terms.

  • Corbin@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    It’s a multi-decade tradition that goes back to Project Athena, a collaboration between MIT, DEC, and IBM. X11’s reference implementation has been the main flag-bearer of the license, propagating it forward to many freedesktop.org projects.

  • bacon_pdp@lemmy.world
    link
    fedilink
    arrow-up
    25
    arrow-down
    4
    ·
    5 days ago

    The rust community cares more about the spread of rust than the long term user freedom problem that the GPL/AGPL solves.

  • nous@programming.dev
    link
    fedilink
    English
    arrow-up
    11
    ·
    5 days ago

    This is not a rust thing. Most popular languages with a library distribution system favour permissive licence like MIT Apache 2.0 or BSD or similar.

    More mainstream languages are that way because cooperations use them - most people learn a d use the language that will get them a job or the ones used by where they work. And if the language it tooling and libraries where not permissive they would likely not be allowed to be used in a lot of companies.

    And most of the libraries written for languages these days are done by people paid to do it, either directly by being hired or sponsored to do so or so they can be used when they are at work. The GPL would basically not allow the vast number of people who are writing code from using the library.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 days ago

      Standard libraries…sure, but I think OP is talking about general projects.

  • kata1yst@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    5 days ago

    I think it’s at least partially a cultural thing. I used to participate in the ZFS ecosystem. ZFS got kinda burned by having it’s spread limited due to it’s pre-existing license, but found a home in the BSD ecosystem.

    Once burned twice shy. So add-ons, extensions, etc were defacto BSD 3 Clause licensed in that community to avoid that issue moving forward.

    I could only speculate why MIT is used a lot in the rust community, but if you’re taking inspiration from a half dozen other successful projects and you see them all MIT licensed, you’re probably going to lean towards MIT when picking your own.