-
Notifications
You must be signed in to change notification settings - Fork 290
Minor license issues #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am not a lawyer, but at least for the code part: as far as I know, copyright applies to code in source form, not algorithms. If we take Clang's implementation and rewrite it in Rust, there is no issue with the licensing, since they can't copyright the steps of the implementation itself. As for the documentation, I wonder if the LLVM people would be willing to grant us a waiver? Otherwise we will have to rewrite tons of doc comments. Also, in theory, these doc comments are more or less taken from Intel's software manuals, so I don't know if they are even elegible for copyright. Best consult with a real lawyer on this one before we start ripping out comments. EDIT: also the |
I actually linked to the LLVM pages in a few of my doc comments because parapharasing the comments was such a pain. Perhaps we can find a way to re-host llvm's comments in a way which doesn't imply copying (like a script to pull things down from their webpage which runs client-side?) |
We already have a script for verifying the intrinsics against the spec. We can also add a script to verify that the comments map to the clang comments (or some transformation thereof, e.g. from doxygen format to rustdoc). The comments are not part of the binary library generated by compiling For the code, even though its translated to Rust, I don't know. I agree that we should ask a lawyer. Even if we are legally safe, we should still inform the LLVM folks that we are doing this so that nobody gets surprised later on. That will probably require an email to the LLVM mailing list at some point in the future. What I am going to do is informally contact @chandlerc today, tell him what we are already doing, and what we plan to do. And ask him what he thinks about this and how to proceed. |
These are legal questions that need to be asked to lawyers and github issues aren't great for that really... Please send me a private email and I can try to set up a conversation about this. @llvm.org and/or @google.com address preferably here. |
While at it, it would probably be a good idea to clarify what the language in the README about both MIT and Apache means. I expect it not to mean what it says but to mean "Apache License 2.0 or, at your option, MIT". |
Uh oh!
There was an error while loading. Please reload this page.
While updating #247 I realized that some of the comments have been copy&pasted 1:1 from clang, e.g. in
googling the comment "Compares the 8-bit integer elements of two 64-bit integer vectors of [8 x i8] to determine if the element of the first vector is greater than the corresponding element of the second vector." returns a single result and that's the clang source code.
Since clang is licensed under the University of Illinois/NCSA Open Source License (with portions dual licensed under the MIT License) we should:
stdsimd
under these two licenses as well,I don't know how this affects including
stdsimd
instd
, but if this is not acceptable we should probably ask for legal counsel if removing the copy & pasted comments would be enough to be safe. Other intrinsics like:must do exactly what clang does to generate the same code, which means they are necessarily going to look a lot like clang's implementation:
The text was updated successfully, but these errors were encountered: