Live data from Hacker News

60x speed-up of Linux “perf”

eighty-twenty.org

91–100 of 224 posts

Re: 60x speed-up of Linux “perf”

#91
post #65

It is a tough feeling to see someone else's design for a library that would be literally perfect for my needs, but I'm unable to use it because of the license, so I have to spend weeks implementing my own inferior version while carefully avoiding making the code too similar to what I happen to remember. I'm past believing that I'm smart enough to always be able to come up with/reimplement a competent enough solution…

Curious, what license(s) prevented you from using a library? Or maybe rather, what does "use" mean here?

GPL, and in some cases source-available codebases produced by decompilation.

"Use" in this case means to have some feature that's implemented by those libraries reimplemented in an open-source project (MIT-licensed).

Re: 60x speed-up of Linux “perf”

#92
post #65

It is a tough feeling to see someone else's design for a library that would be literally perfect for my needs, but I'm unable to use it because of the license, so I have to spend weeks implementing my own inferior version while carefully avoiding making the code too similar to what I happen to remember. I'm past believing that I'm smart enough to always be able to come up with/reimplement a competent enough solution…

Curious, what license(s) prevented you from using a library? Or maybe rather, what does "use" mean here?

GPLv2, which is viral.

Re: 60x speed-up of Linux “perf”

#93

It is a tough feeling to see someone else's design for a library that would be literally perfect for my needs, but I'm unable to use it because of the license, so I have to spend weeks implementing my own inferior version while carefully avoiding making the code too similar to what I happen to remember. I'm past believing that I'm smart enough to always be able to come up with/reimplement a competent enough solution…

> carefully avoiding making the code too similar to what I happen to remember Is this really necessary? The GPL allows you to read and study the software. Is it really copyright infringement if you take your understanding and make your own program? Are people really forced to come up with convoluted new ways to solve the same problem just to avoid any similarity to existing work?

Dunno! For what it's worth I build a lot of MIT and MPL software professionally and the lawyers at several employers have suggested doing exactly what the GP does. My assumption has been that proving derivation in a court is an expensive process however it turns out, so why risk it.

Re: 60x speed-up of Linux “perf”

#94
post #42

Earlier quoted context omitted.

The most recent exploitation of opensource code comes from Amazon & friends making their own paid, hosted versions of redis, elastic search, mongodb, and so on. And not making any sort of proportionate contribution to the developers - whose free work their profits entirely rely on. And in this case I’m not sure how gpl helps. With gpl2 you only need to distribute source code if you distribute binaries - so they have…

Can someone with legalese knowledge make a license that states that you have to donate back 5% of the revenue you get from using a software?

Not really, or at least the license would be very unappealing.

You'd need a method of determining revenue and then apportioning revenue amongst the many parts of a system. Then there's transfer pricing issues. Not to mention audit requirements. See also Hollywood accounting.

One of the ways open source gets adoption is because using open source with an acceptable license is often much less hassle than paying for commercial software and complying with commercial software license requirements.

Re: 60x speed-up of Linux “perf”

#95

It is a tough feeling to see someone else's design for a library that would be literally perfect for my needs, but I'm unable to use it because of the license, so I have to spend weeks implementing my own inferior version while carefully avoiding making the code too similar to what I happen to remember. I'm past believing that I'm smart enough to always be able to come up with/reimplement a competent enough solution…

This is the comment that points out the issue.

perf is licensed under GPL v2 only and libbfd is a GNU tool that is licensed GPL v3 and higher.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911815

Really wish the Linux kernel would start mandating new patches to be GPL v2 and higher and get buy in from the largest contributors. A decade later new code would like replace the smaller contributors code and we could consider the software GPL v3 compatible.

Re: 60x speed-up of Linux “perf”

#96
FINALLY AN ACTUAL ANSWER!! :D

I had done a bunch of research into this a while ago and filed an issue with the Ubuntu bug tracker, but was told it was due to ABI stability (which did not make any sense).

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894407

Understanding that there is actually an underlying license problem is like finally being told all of the reasons for everything that happened on LOST ;P.

Re: 60x speed-up of Linux “perf”

#97
post #3

> Michał Sidor suggests building against libbfd, something that the Debian maintainers don’t want to do. "don't want to" isn't quite correct - they can't . Perf is licensed under the GPLv2, libbfd under the GPLv3. The licenses are incompatible, which makes the combination unredistributable - which is what Debian would be doing with it. Debian is legally not allowed to do this.

Kind of ironic that RMS campained against proprietary software to allow reuse of code. Now we have two islands of open source code ... .

RMS advises to use "GPLv2 or any later version", which is compatible with GPLv3, instead of "GPLv2 only" license.

Re: 60x speed-up of Linux “perf”

#98
post #88

Earlier quoted context omitted.

Kind of ironic that RMS campained against proprietary software to allow reuse of code. Now we have two islands of open source code ... .

Two? Are the AGPL licenses compatible? How about GPL licenses with exceptions for some APIs as used by OpenJDK?

The AGPL licenses are explicitly compatible with the GPL ones. FWIW, this issue is essentially entirely caused by Linus, who refuses to use or accept GPL3.

Re: 60x speed-up of Linux “perf”

#99
post #75
post #46

Earlier quoted context omitted.

This is kind of the crux of a long history of these licensing arguments. That dynamic linking is problematic because it potentially creates a derived work. And then you might distribute that derived work. But shelling out to something or in some cases having an automated script create or download the derived work automatically is sometimes acceptable. It’s a bit of a silly line in some ways. But it’s a long story.

I'm skeptical that there's a coherent legal distinction to be drawn between using a dynamic library with dlopen etc and running a similar executable with arguments. It's functionally identical usage of some public interface.

This has always been my perspective as well, but it goes against long-established norms—for example, it's for exactly this reason that the LGPL was created. I don't think either theory has been thoroughly tested in court, though. See https://sfconservancy.org/blog/2016/feb/25/zfs-and-linux/ for a countervailing position from the SFC and FSF.

Re: 60x speed-up of Linux “perf”

#100
post #94

Earlier quoted context omitted.

Can someone with legalese knowledge make a license that states that you have to donate back 5% of the revenue you get from using a software?

Not really, or at least the license would be very unappealing. You'd need a method of determining revenue and then apportioning revenue amongst the many parts of a system. Then there's transfer pricing issues. Not to mention audit requirements. See also Hollywood accounting. One of the ways open source gets adoption is because using open source with an acceptable license is often much less hassle than paying for comm…

Yeah it's frustrating, i would never work on a open source project as i don't really get why companies can make money using something from the unpaid labour of someone else, and for our society that's acceptable
Post reply on HN