Skip to content

Commit f96b4cf

Browse files
committed
open source code release
0 parents  commit f96b4cf

File tree

2,817 files changed

+931266
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,817 files changed

+931266
-0
lines changed

.gitignore

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
build.xml
2+
.classpath
3+
.factorypath
4+
.project
5+
com.oracle.graal.python.iml
6+
com.oracle.graal.python.test.iml
7+
*.settings
8+
nbproject
9+
*.jar
10+
*.zip
11+
*.sha1
12+
env
13+
*.pyc
14+
currentAnnotationProcessors
15+
mxbuild/mx.graalpython/savedDeps
16+
mxbuild
17+
workingsets.xml
18+
.idea
19+
GRAALPYTHON.dist
20+
GRAALPYTHON_UNIT_TESTS.dist
21+
mx.graalpython/eclipse-launches
22+
asv
23+
*.json
24+
language
25+
*.bc
26+
*.iml
27+
/.metadata
28+
/dumps
29+
/graalpython/testfiles/
30+
/hs_err*.log
31+
*.dist
32+
.cache
33+
/scripts/setup_active_library_branch.sh
34+
/*.py
35+
*.o
36+
*.so
37+
/graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/antlr/Python3.g4.stamp
38+
/mx.imports
39+
.pydevproject
40+
## local dev and debug files
41+
/snapshots/
42+
/testpkg/
43+
/vcrlog
44+
/out
45+
/out?
46+
/*.py
47+
/*.c
48+
/request_cache/
49+
/org.eclipse.jdt.core.prefs
50+
Python3.g4.stamp
51+
*.orig
52+
/graalpython/com.oracle.graal.python.test/src/tests/cpyext/Py*.c
53+
/*.diff
54+
## generated from: pyhocon -i ci.hocon -f json -o ci.json
55+
/ci.json
56+
/*.err

LICENSE

Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
Except when otherwise stated in this file, in LICENSE files in distribution
2+
directories, or in information at the beginning of each file, all software and
3+
documentation is:
4+
5+
Copyright (c) 2018, Oracle and/or its affiliates.
6+
7+
The Universal Permissive License (UPL), Version 1.0
8+
9+
Subject to the condition set forth below, permission is hereby granted to any
10+
person obtaining a copy of this software, associated documentation and/or data
11+
(collectively the "Software"), free of charge and under any and all copyright
12+
rights in the Software, and any and all patent rights owned or freely
13+
licensable by each licensor hereunder covering either (i) the unmodified
14+
Software as contributed to or provided by such licensor, or (ii) the Larger
15+
Works (as defined below), to deal in both
16+
17+
(a) the Software, and
18+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
19+
one is included with the Software (each a “Larger Work” to which the Software
20+
is contributed by such licensors),
21+
22+
without restriction, including without limitation the rights to copy, create
23+
derivative works of, display, perform, and distribute the Software and make,
24+
use, sell, offer for sale, import, export, have made, and have sold the
25+
Software and the Larger Work(s), and to sublicense the foregoing rights on
26+
either these or other terms.
27+
28+
This license is subject to the following condition:
29+
30+
The above copyright notice and either this complete permission notice or at a
31+
minimum a reference to the UPL must be included in all copies or substantial
32+
portions of the Software.
33+
34+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40+
SOFTWARE.
41+
42+
43+
+-------------------------------------------------------------------------------+
44+
| This work includes code from the multiple other projects, under the following |
45+
| copyrights and licenses. Each file this applies to also includes the |
46+
| appropriate license and copyright in its header, or else a parent folder |
47+
| includes the license information in a LICENSE file |
48+
+-------------------------------------------------------------------------------+
49+
50+
51+
The project is derived from ZipPy:
52+
53+
Copyright (c) Regents of the University of California and individual
54+
contributors. All rights reserved.
55+
56+
The 2-Clause BSD License
57+
58+
Redistribution and use in source and binary forms, with or without
59+
modification, are permitted provided that the following conditions are met:
60+
61+
1. Redistributions of source code must retain the above copyright notice, this
62+
list of conditions and the following disclaimer.
63+
2. Redistributions in binary form must reproduce the above copyright notice,
64+
this list of conditions and the following disclaimer in the documentation
65+
and/or other materials provided with the distribution.
66+
67+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
68+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
69+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
70+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
71+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
72+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
73+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
74+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
75+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
76+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
77+
78+
79+
Some Java code is derived from Jython 2.7 source code:
80+
81+
Copyright (c) Jython Developers; All Rights Reserved.
82+
Copyright (c) Python Software Foundation; All Rights Reserved.
83+
84+
Python Software Foundation License Version 2
85+
86+
1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"),
87+
and the Individual or Organization ("Licensee") accessing and otherwise using
88+
this software ("Jython") in source or binary form and its associated
89+
documentation.
90+
91+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
92+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
93+
analyze, test, perform and/or display publicly, prepare derivative works,
94+
distribute, and otherwise use Jython alone or in any derivative version,
95+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
96+
i.e., "Copyright (c) 2007 Python Software Foundation; All Rights Reserved" are
97+
retained in Jython alone or in any derivative version prepared by Licensee.
98+
99+
3. In the event Licensee prepares a derivative work that is based on or
100+
incorporates Jython or any part thereof, and wants to make the derivative work
101+
available to others as provided herein, then Licensee hereby agrees to include
102+
in any such work a brief summary of the changes made to Jython.
103+
104+
4. PSF is making Jython available to Licensee on an "AS IS" basis. PSF MAKES
105+
NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT
106+
NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF
107+
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
108+
JYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
109+
110+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF JYTHON FOR ANY
111+
INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
112+
MODIFYING, DISTRIBUTING, OR OTHERWISE USING JYTHON, OR ANY DERIVATIVE THEREOF,
113+
EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
114+
115+
6. This License Agreement will automatically terminate upon a material breach
116+
of its terms and conditions.
117+
118+
7. Nothing in this License Agreement shall be deemed to create any
119+
relationship of agency, partnership, or joint venture between PSF and
120+
Licensee. This License Agreement does not grant permission to use PSF
121+
trademarks or trade name in a trademark sense to endorse or promote products
122+
or services of Licensee, or any third party.
123+
124+
8. By copying, installing or otherwise using Jython, Licensee agrees to be
125+
bound by the terms and conditions of this License Agreement.
126+
127+
128+
The standard library, some unittests, C headers, and parts of the C API
129+
implementation are derived from the Python project:
130+
131+
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
132+
2011, 2012, 2013, 2014, 2015, 2016, 2017 Python Software Foundation; All
133+
Rights Reserved
134+
135+
Python Software Foundation License Version 2
136+
137+
1. This LICENSE AGREEMENT is between the Python Software Foundation
138+
("PSF"), and the Individual or Organization ("Licensee") accessing and
139+
otherwise using this software ("Python") in source or binary form and
140+
its associated documentation.
141+
142+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
143+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
144+
analyze, test, perform and/or display publicly, prepare derivative works,
145+
distribute, and otherwise use Python alone or in any derivative version,
146+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
147+
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
148+
2011, 2012, 2013, 2014, 2015, 2016, 2017 Python Software Foundation; All Rights
149+
Reserved" are retained in Python alone or in any derivative version prepared by
150+
Licensee.
151+
152+
3. In the event Licensee prepares a derivative work that is based on or
153+
incorporates Python or any part thereof, and wants to make the derivative work
154+
available to others as provided herein, then Licensee hereby agrees to include
155+
in any such work a brief summary of the changes made to Python.
156+
157+
4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES
158+
NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT
159+
NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF
160+
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
161+
PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
162+
163+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY
164+
INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
165+
MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF,
166+
EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
167+
168+
6. This License Agreement will automatically terminate upon a material breach
169+
of its terms and conditions.
170+
171+
7. Nothing in this License Agreement shall be deemed to create any
172+
relationship of agency, partnership, or joint venture between PSF and
173+
Licensee. This License Agreement does not grant permission to use PSF
174+
trademarks or trade name in a trademark sense to endorse or promote products
175+
or services of Licensee, or any third party.
176+
177+
8. By copying, installing or otherwise using Python, Licensee agrees to be
178+
bound by the terms and conditions of this License Agreement.
179+
180+
181+
The standard library and parts of the core library are derived from the PyPy
182+
project:
183+
184+
Copyright (c) PyPy Copyright holders
185+
186+
The MIT License
187+
188+
Permission is hereby granted, free of charge, to any person obtaining a copy
189+
of this software and associated documentation files (the "Software"), to deal
190+
in the Software without restriction, including without limitation the rights
191+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
192+
copies of the Software, and to permit persons to whom the Software is
193+
furnished to do so, subject to the following conditions:
194+
195+
The above copyright notice and this permission notice shall be included in all
196+
copies or substantial portions of the Software.
197+
198+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
199+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
200+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
201+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
202+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
203+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
204+
SOFTWARE.
205+
206+
207+
The grammar and generated parser for Python is derived from a Python3 parser
208+
included with the ANTLR4 grammars project:
209+
210+
Copyright (c) 2014 by Bart Kiers
211+
212+
The MIT License
213+
214+
Permission is hereby granted, free of charge, to any person obtaining a copy
215+
of this software and associated documentation files (the "Software"), to deal
216+
in the Software without restriction, including without limitation the rights
217+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
218+
copies of the Software, and to permit persons to whom the Software is
219+
furnished to do so, subject to the following conditions:
220+
221+
The above copyright notice and this permission notice shall be included in all
222+
copies or substantial portions of the Software.
223+
224+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
225+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
226+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
227+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
228+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
229+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
230+
SOFTWARE.
231+
232+
233+
The ANTLR4 runtime bundled with andd required to run this project is licensed as
234+
follows:
235+
236+
Copyright (c) 2012 Terence Parr and Sam Harwell. All rights reserved.
237+
238+
Redistribution and use in source and binary forms, with or without
239+
modification, are permitted provided that the following conditions are met:
240+
241+
1. Redistributions of source code must retain the above copyright notice, this
242+
list of conditions and the following disclaimer.
243+
244+
2. Redistributions in binary form must reproduce the above copyright notice,
245+
this list of conditions and the following disclaimer in the documentation
246+
and/or other materials provided with the distribution.
247+
248+
3. Neither the name of the copyright holder nor the names of its contributors
249+
may be used to endorse or promote products derived from this software without
250+
specific prior written permission.
251+
252+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
253+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
254+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
255+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
256+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
257+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
258+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
259+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
260+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
261+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262+
263+
264+
A number of included benchmarks are adapted from The Computer Language
265+
Benchmarks Game:
266+
267+
Copyright 2008-2010 Isaac Gouy
268+
All rights reserved.
269+
270+
Revised BSD license
271+
272+
This is a specific instance of the Open Source Initiative (OSI) BSD license
273+
template http://www.opensource.org/licenses/bsd-license.php
274+
275+
Redistribution and use in source and binary forms, with or without
276+
modification, are permitted provided that the following conditions are met:
277+
278+
Redistributions of source code must retain the above copyright notice, this
279+
list of conditions and the following disclaimer.
280+
281+
Redistributions in binary form must reproduce the above copyright notice,
282+
this list of conditions and the following disclaimer in the documentation
283+
and/or other materials provided with the distribution.
284+
285+
Neither the name of "The Computer Language Benchmarks Game" nor the name of
286+
"The Computer Language Shootout Benchmarks" nor the name "nanobench" nor the
287+
name "bencher" nor the names of its contributors may be used to endorse or
288+
promote products derived from this software without specific prior written
289+
permission.
290+
291+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
292+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
293+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
294+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
295+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
296+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
297+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
298+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
299+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
300+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Graal.Python
2+
3+
A Python implementation on Graal in the early stages.
4+
5+
For additional information, consult the `doc` directory.

0 commit comments

Comments
 (0)