About the Sh GPU Metaprogramming Language
Sh is a GPU metaprogramming language developed by RapidMind Inc., with copyright held from 2003 through 2006. It is released under the GNU Lesser General Public License, so developers are free to examine, share, and adapt the software.
Use the links below to explore the main areas of the site.
GNU Lesser General Public License, Version 2.1
Version 2.1, February 1999. Copyright (C) 1991, 1999 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Anyone may copy and distribute exact copies of this license document, but altering it is not permitted. This is the first released version of the Lesser GPL and also serves as the successor to version 2 of the GNU Library Public License, which is why the version number is 2.1.
Preamble
Most software licenses exist to limit your freedom to share and modify software. The GNU General Public Licenses work the other way around: they aim to guarantee your freedom to share and change free software, keeping it free for every user. This license, the Lesser General Public License, covers certain specially designated packages, usually libraries, from the Free Software Foundation and from other authors who adopt it. You are welcome to use it too, but we suggest first weighing carefully whether this license or the ordinary General Public License fits your situation better, based on the explanations that follow.
When we refer to free software, we mean freedom of use, not price. Our General Public Licenses are designed to guarantee that you may distribute copies of free software (and charge for that service if you choose), that you receive source code or can get it if you want it, that you may modify the software and reuse parts of it in new free programs, and that you are told you can do these things.
To safeguard your rights, we add restrictions that stop distributors from denying you these rights or asking you to give them up. These restrictions become specific responsibilities for you whenever you distribute copies of the library or modify it. For instance, if you distribute copies of the library, whether free of charge or for a fee, you must give recipients all the rights we gave you. You must make sure they also receive or can obtain the source code. If you link other code with the library, you must supply recipients with complete object files so they can relink them with the library after changing and recompiling it. And you must show them these terms so they understand their rights.
We protect your rights in two ways: first, we copyright the library; second, we offer you this license, which grants legal permission to copy, distribute, and/or modify the library. To protect each distributor, we state plainly that the free library carries no warranty. In addition, if someone else modifies the library and passes it on, recipients should know that what they have is not the original version, so the original author's reputation will not suffer from problems others might introduce.
Finally, software patents are a constant threat to any free program. We want to make sure a company cannot effectively restrict users of a free program by obtaining a restrictive license from a patent holder. For that reason, we require that any patent license obtained for a version of the library be consistent with the full freedom of use set out in this license.
Most GNU software, including some libraries, falls under the ordinary GNU General Public License. This license, the GNU Lesser General Public License, covers certain designated libraries and differs substantially from the ordinary General Public License. We apply it to certain libraries so those libraries can be linked into non-free programs.
When a program is linked with a library, whether statically or through a shared library, the two together are legally a combined work, a derivative of the original library. The ordinary General Public License therefore allows such linking only when the whole combination meets its freedom criteria. The Lesser General Public License sets more relaxed criteria for linking other code with the library.
We call this license the "Lesser" General Public License because it protects the user's freedom less than the ordinary General Public License does. It also gives other free software developers less of an advantage over competing non-free programs. These drawbacks are why we use the ordinary General Public License for many libraries. Still, the Lesser license brings advantages in certain special circumstances.
For example, on rare occasions there may be a special need to encourage the widest possible use of a certain library so that it becomes a de-facto standard. To achieve that, non-free programs must be allowed to use the library. A more common case is a free library that does the same job as widely used non-free libraries. Here there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, allowing a particular library to be used in non-free programs lets more people use a large body of free software. For example, permission to use the GNU C Library in non-free programs lets many more people use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.
Although the Lesser General Public License protects users' freedom less, it does ensure that the user of a program linked with the Library has the freedom and the means to run that program with a modified version of the Library.
The exact terms and conditions for copying, distribution, and modification follow. Pay close attention to the distinction between a "work based on the library" and a "work that uses the library." The first contains code derived from the library, while the second must be combined with the library in order to run.
Terms and Conditions for Copying, Distribution and Modification
0. This License Agreement applies to any software library or other program that carries a notice placed by the copyright holder or another authorized party stating it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is referred to as "you."
A "library" means a collection of software functions and/or data prepared so it can be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library," below, refers to any such software library or work distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification.")
"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for every module it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.
Activities other than copying, distribution, and modification are not covered by this License; they fall outside its scope. Running a program that uses the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (regardless of whether the Library was used in a tool for writing it). Whether that is the case depends on what the Library does and what the program that uses the Library does.
1. You may copy and distribute exact copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy a suitable copyright notice and warranty disclaimer; keep intact all notices that refer to this License and to the absence of any warranty; and give any other recipients of the Library a copy of this License together with the Library.
You may charge a fee for the physical act of transferring a copy, and you may, at your option, offer warranty protection in exchange for a fee.
The Sh project is distributed under the GNU Lesser General Public License, version 2.1, which balances freedom to share and modify the library with the ability to link it into other programs. Use the navigation above to reach the download, shader examples, and project history pages.
