4 ms·
llli? Lightweight LLVM Interpreter? This is very cool since it doesn't depend on the (large) LLVM library. I'm eager to try it out! Edit: I don't see a license
by jevinskie 11y ago
llli? Lightweight LLVM Interpreter? This is very cool since it doesn't depend on the (large) LLVM library. I'm eager to try it out!
Edit: I don't see a license. May I kindly suggest WTFPL or something similar?
- dmm 11y agoISC is the shortest permissive free-software license with a warranty disclaimer under current law. Here it is: Copyright (c) Year(s), Company or Person's Name Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- ferbivore 11y agoIt's MIT-licensed. Look at src/vmir.c.
- dsp1234 11y agoNote that some of the code[0] is copy-pasta from the LLVM source[1] with the copyright section missing which is likely a license violation. [0] - https://github.com/andoma/vmir/blob/master/src/bitcode.h https://github.com/andoma/vmir/blob/master/src/bitcode.h [1] - https://llvm.org/svn/llvm-project/llvm/trunk/include/llvm/Bitcode/LLVMBitCodes.h https://llvm.org/svn/llvm-project/llvm/trunk/include/llvm/Bi...
- andoma 11y agoRight, my bad. Though there is hardly any 'code' in there. I copied the defines from LLVM initially as I couldn't find any good documentation except in the header file. I suppose I will have to retype it or something :-)
- jevinskie 11y agoThanks Oracle/Google. :) Sorry, it is just that I write code that ends up passing hands through multiple entities. Each time one entity has to include an attribution notice, their willingness to include the library drops dramatically. I'm in the camp of "I'm glad if anybody includes my code", and I still submit bug reports/patches to upstream projects with "public domain" licenses, even though I am not required to. It just makes sense, provided your employer recognizes the value it brings.
- dsp1234 11y agoOr you could just reproduce the original license, which is all that's required. It's really the stripping of the license out of the file that is the problem, since the original LLVM license specifically states that the license grant is incumbent upon keeping the license text in place. Even though in reality you copied/pasted the text out in to a new file, it's really the equivalent of removing the license text and all of the other code you didn't need.
- DannyBee 11y agoPlease don't use WTFPL, unless you enjoy getting sued over implied warranties, or arguing with people over what rights they've really given you, or ...