graalpython
graalpython copied to clipboard
A Python 3 implementation built on GraalVM
Hi! I faced with problem when using python graal. When i create context `Context.newBuilder()` `.allowHostAccess(HostAccess.newBuilder(HostAccess.ALL).build())` `.engine(ENGINE)` `.allowAllAccess(true)` `.build();` and then get python bindings `Value js = context.getBindings("python");` it takes about...
The [`InteropLibrary`](https://www.graalvm.org/truffle/javadoc/com/oracle/truffle/api/interop/InteropLibrary.html) defines the notion of interop types for various truffle languages to communicate. At [Enso](https://github.com/enso-org/enso), we've integrated with GraalPython but run into a few bugs because it seems to...
It looks like there are different interop problems when working with large integers (larger than long, so probably `BigInteger`-related): ``` GraalVM MultiLanguage Shell 1.0.0-rc12 Copyright (c) 2013-2019, Oracle and/or its...
Embedded Graal Python Context fails if Jython enabled, when the second context instance is created
Hi, we trying to use Graal Python as an embedded scripting language, to replace Jython (with something that speaks Python3). Whenever I create an Graal context for Python execution with...
```python def myfunc(arg): y = 1 x = 2 ``` `findLocalScopes(node, null)` returns always `[arg, y, x]` for a node inside `myfunc(arg)` See SLLanguage.findLocalScopes() how it should be done collecting...
Docker support was recently backported to Java 8u212. This means that all java versions from 8 onwards now play nice with Docker. There is already an official Docker version of...
GitLab CI or AppVeyor can be used for that.
```Java import org.graalvm.polyglot.Context; import org.graalvm.polyglot.Engine; import org.graalvm.polyglot.Source; /** Created by revin on Oct.1,2018. */ public class BugReport{ public void trace(Object x){System.out.println(x);} public static void main(String...args)throws Exception{ Engine engine=Engine.create(); Context c0=Context.newBuilder().allowIO(true).engine(engine).build();...
Consider: ```sh $ cat repro.py import datetime import time def _get_unix_timestamp(day, month, year): dt = datetime.datetime(year = year, month = month, day = day) print(f"dt: {dt}") return dt.timestamp() endDate =...
I've been working on getting GraalPython tested on the Cython CI. It mostly works but it's really slow. One aspect of this is the time spent running Cython itself. Note...