• willington@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      21 hours ago

      Of course a rust program can be GPL.

      Rust is just a cool and powerful language, and it turns out assholes and legitimately nearsighted (foolish) people like it as much as those that see the big picture.

      Rain and sunshine fall equally on the saints and the thieves. We can’t blame Rust for what some want to do with it.

      I think some fraction is being paid to rewrite GPLed tools in MIT license, some are voluntarily evil without being paid, and some are frankly idiots who don’t mentally grasp the impact and don’t give a shit until it becomes very personal for them. It’s like a conservative who hates gays until their own daughter comes out as gay, then suddenly they are an ally and always have been. A lot of people who choose MIT are waiting for their MIT license choice to personally bite them before they will consider something else. They don’t give a shit if someone else suffers. They have to be the ones to feel the pain. Learning from first principles and logical deductions is not a thing for those folks.

    • Kevin@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      21 hours ago

      Just off of my understanding of this plus a helping of my own opinions and I may be wrong at some places so please take with a grain of salt: With Rust, practically all dependencies are statically compiled into the final binaries due to the language design (heavy use of type-parameterized code, the traits system having an effect on generated code across dependencies, and the safety guarantees that Rust has to make within its ecosystem). Incidentally, on a side note, this makes licenses like the LGPL equivalent to GPL for our purposes

      Individual projects absolutely could be GPL licensed, nothing really stopping people there. However, it’s likely a culture thing. Mozilla couldn’t really afford to license the standard lib under GPL because that would be too viral and hamper adoption in commercial spaces (pros and cons to this point, I’ll admit), and AFAIK the MPL wasn’t quite ready yet for Rust, but I’m a little hazy there

      Hence, you get a license system that tries to encourage as much compatibility between projects in the ecosystem as is possible, such that most people don’t have to worry about licensing trouble. You’ll see that this same point goes for Javascript (MIT prominent), Java (Apache prominent), and quite a bit in C++ especially for header-only libraries (BSD or equivalent)

    • mholiv@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      14 hours ago

      There are some legal complications around static compilation.

      BUT that is no excuse.

      MPL 2.0 is a strong copyleft license that is perfectly compatible with rust and static compilation.